Open Bug 639928 Opened 14 years ago Updated 2 years ago

XUL persistence should ignore fragments in the page URL

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: mossop, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently persistence considers urls like chrome://global/content#foo and chrome://hlobal/content#bar as different and so persists different data. It should consider them as the same.
Blocks: 639931
Attached patch patch rev 1Splinter Review
Fairly straightforward stuff. We just want to consider only the part of the URL before the first # for persistence purposes so everything after gets stripped off whenever persisting values or retrieving persisted values. The test case cycles through cases for chrome: and about: to verify that persistence works.
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #518587 - Flags: review?(bzbarsky)
Comment on attachment 518587 [details] [diff] [review] patch rev 1 Why not use existing url functionality for this instead of reinventing the parsing wheel? And note that if mDocumentURI is a jar: URI this code is just wrong. Consider: jar:file:///home/me/foo.jar#bar!/baz.html#woops
Attachment #518587 - Flags: review?(bzbarsky) → review-
I don't have the time for this anymore
Assignee: dtownsend → nobody
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: