DescriptionThis CL is migrated to https://codereview.chromium.org/1378543002/ due to repository merge.
Make deprecation warnings on XHR's setRequestHeader more accurate
The deprecation warnings were shown for the following three kinds of header values:
1. Header values with control octets,
2. Header values with leading/trailing whitespaces,
but normalization doesn't have effect (because other parts of Chromium
strip such whitespaces before sent to network), and
3. Header values with leading/trailing whitespaces
and normalization does have effect. For example, in the case of calling
setRequestHeader('test', 'a ') and setRequestHeader('test', ' b'),
the whitespaces remains in the middle of the header value ('test: a , b')
and will be removed by normalization.
This CL
- Suppresses deprecation warnings for 2.
- Creates a separate deprecation counter for 3.
- Mentions in the warning message that we are experimenting.
- Adds tests.
BUG=455099
Patch Set 1 #Patch Set 2 : Avoid PRESUMIT error. #Patch Set 3 : Support CRLF on Windows. #
Total comments: 13
Patch Set 4 : Reflect tyoshino's comments. #Depends on Patchset: Messages
Total messages: 20 (7 generated)
|