Closed
Bug 1105677
Opened 9 years ago
Closed 9 years ago
Remove GetURLSearchParams from nsDocShell
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: kohei, Assigned: baku)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
13.79 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
|location.searchParams| implemented in Bug 1037715 is not available in the latest Aurora (35) nor Nightly (36). The source still has the attribute: http://dxr.mozilla.org/mozilla-central/source/dom/webidl/URLUtils.webidl A workaround is |new URLSearchParams(location.search.substr(1))| but I just wanted to it. Any ideas?
Comment 1•9 years ago
|
||
It was disabled in bug 1082734.
Reporter | ||
Comment 2•9 years ago
|
||
I cannot access Bug 1082734 but understood. I'll update the docs and close the bug.
Keywords: dev-doc-needed
Assignee | ||
Comment 3•9 years ago
|
||
Annevk, do we have a solution for this? updating the spec, or proposing a new approach?
Flags: needinfo?(annevk)
Reporter | ||
Comment 4•9 years ago
|
||
https://developer.mozilla.org/en-US/Firefox/Releases/34$revision/703351 https://developer.mozilla.org/en-US/docs/Web/API/Location$revision/703353
Keywords: dev-doc-needed → dev-doc-complete
Reporter | ||
Comment 5•9 years ago
|
||
Closing for now.
Comment 6•9 years ago
|
||
So what I think we should do is remove searchParams completely and make URLSearchParams take (URL or HTMLAreaElement or HTMLAnchorElement or Location or WindowLocation) as argument to extract a url's query more easily.
Status: RESOLVED → REOPENED
Flags: needinfo?(annevk)
Resolution: INVALID → ---
![]() |
||
Comment 7•9 years ago
|
||
You mean WorkerLocation, not WindowLocation, right? I'm probably fine with that....
Comment 8•9 years ago
|
||
Did it shipped in a released version (34), then has been removed in 35, or has it been removed before 34 released? (Can't get the information from the security bug)
Reporter | ||
Comment 9•9 years ago
|
||
I cannot find this in 34 as well.
![]() |
||
Comment 10•9 years ago
|
||
> Did it shipped in a released version (34)
No. location.searchParams has never shipped in a release version.
Comment 11•9 years ago
|
||
Thanks, so the wiping of this in MDN was the right thing to do :-)
Comment 12•9 years ago
|
||
Reset the ddn keyword, so that we document what is proposed in comment 6, once defined and implemented.
Keywords: dev-doc-complete → dev-doc-needed
Updated•9 years ago
|
Assignee | ||
Comment 13•9 years ago
|
||
The spec is changed. Currently we don't have URLSearchParams in location so we can get rid of the URLSearchParam obj in the docShell.
Attachment #8625474 -
Flags: review?(bugs)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → amarchesini
Comment 14•9 years ago
|
||
Anne, is the idea then to have something like .clear() in URLSearchParams? Though, I guess one can always use url.search = "";
Flags: needinfo?(annevk)
Comment 15•9 years ago
|
||
Hrm, that comment was for Bug 1174731.
Updated•9 years ago
|
Flags: needinfo?(annevk)
Comment 16•9 years ago
|
||
Comment on attachment 8625474 [details] [diff] [review] usp1.patch Uh, URLSearchParams was odd when it could be used with several things implementing URLUtils. I wonder why searchParams ever was non-readonly attribute. Please remove the comment from Location.webidl
Attachment #8625474 -
Flags: review?(bugs) → review+
Comment 17•9 years ago
|
||
And change the title of this bug ;)
Assignee | ||
Comment 18•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1e2fe1098aab
Summary: location.searchParams is missing → Remove GetURLSearchParams from nsDocShell
![]() |
||
Comment 19•9 years ago
|
||
Landed with the wrong number (missing the second 7) - https://hg.mozilla.org/mozilla-central/rev/1e2fe1098aab
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Comment 20•8 years ago
|
||
Basically, we need to finish this page: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
Comment 21•8 years ago
|
||
Yes, and this is covered by the dev-doc-needed on bug 887836 (initial implementation, Fx 29) and bug 1174731 (making it read-only, Fx 41). Calling this specific bug as done.
Keywords: dev-doc-needed → dev-doc-complete
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•