Server applications can get things logged to the user's browser console. We should investigate whether that is a problem in our context (first, does this only have an affect if the user has the console open and is monitoring network requests?).
We probably should bind that to a pref as I can imagine this is quite handy for debugging purposes.
This feature allows the server to send JSON data for display in the web or browser console. I don't see any particular danger from this, particularly because it does not result in any data being sent from the client to the server, as far as I can tell. (Am I missing something?) Additionally, the feature is preffed off by default:
When the prefs are disabled, does the browser still parse the data sent in the X-ChromeLogger-Data headers? I don't think this feature raises an obvious security or privacy issue, but it would be bad to leave server logging enabled if it turns out that there is a bug in how the JSON data is parsed or presented.
When the prefs are disabled, does the browser still parse the data sent in the X-ChromeLogger-Data headers? I don't think this feature raises an obvious security or privacy issue, but it would be bad to leave server logging enabled if it turns out that there is a bug in how the JSON data is parsed or presented.
Good question. I added a dump statement to the part of the code where the "X-ChromeLogger-Data" header value is parsed. I was able to manually confirm that this code is not called except when "Server" logging is enabled (through the button in the devtools UI, or in the prefs). Here's my test code in case anyone is interested:
Good question. I added a dump statement to the part of the code where the "X-ChromeLogger-Data" header value is parsed. I was able to manually confirm that this code is not called except when "Server" logging is enabled (through the button in the devtools UI, or in the prefs).
Thanks for investigating. I think this ticket can be closed, assuming gk agrees.