Closed Bug 1189852 Opened 9 years ago Closed 9 years ago

link broken which a line break on hash part after Bug 1144398

Categories

(Core :: Networking, defect)

38 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: yfdyh000, Assigned: valentin)

References

Details

(Keywords: dev-doc-complete, regression, site-compat)

Attachments

(2 files)

According to https://url.spec.whatwg.org/#fragment-state new line (aka U+000A) isn't allowed in the fragment.
Bug 1189852 enforced that constraint, even though before we would strip whitespace characters from the end of the URL.

I'll try to fix this. Thanks for the bug report and regression window.
Assignee: nobody → valentin.gosu
Blocks: 1190027
I changed the code to reject only \0s in SetSpec and SetHash. \r\n\t will be stripped in SetSpec, and encoded in SetHash just as before, and similar to Chrome's behaviour (see table in Bug 1190027 comment 0)
Attachment #8641977 - Flags: review?(mcmanus)
Attachment #8641977 - Flags: review?(mcmanus) → review+
https://hg.mozilla.org/mozilla-central/rev/134cb6e4b7ea
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: