Calling XMLHttpRequest.SetRequestHeader() for a forbidden header silently fails (as per spec step 5), only logging an NS_WARNING. It might be worthwhile to also log the result to the console as well/instead, so developers get better feedback.
Created attachment 8781574 [details] [diff] [review] 1295128-log_setRequestHeader_with_forbidden_header.diff Here's a simple patch which just logs a message to the web console instead of doing the NS_WARNING.
Assignee: nobody → wisniewskit
Status: NEW → ASSIGNED
Attachment #8781574 - Flags: review?(mrbkap)
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/7497dca8bbb5 Log attempts to use SetRequestHeader to set a forbidden header to the web console. r=mrbkap
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
status-firefox51: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.