Closed
Bug 1103181
Opened 10 years ago
Closed 10 years ago
Remove String.prototype.quote
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: evilpie, Assigned: evilpie)
References
(Blocks 1 open bug)
Details
(Keywords: addon-compat, dev-doc-complete, site-compat)
Attachments
(2 files, 3 obsolete files)
6.56 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
4.34 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → evilpies
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•10 years ago
|
||
I am basically convinced we can remove this here and now. We have almost no uses in the browser and very low add-on usage. No other browser implements this either.
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8527034 -
Attachment is obsolete: true
Updated•10 years ago
|
Keywords: dev-doc-needed,
site-compat
Assignee | ||
Updated•10 years ago
|
Attachment #8527033 -
Flags: review?(jorendorff)
Assignee | ||
Updated•10 years ago
|
Attachment #8527037 -
Flags: review?(wjohnston)
Updated•10 years ago
|
Attachment #8527033 -
Flags: review?(jorendorff) → review+
Assignee | ||
Updated•10 years ago
|
Attachment #8527037 -
Attachment is obsolete: true
Attachment #8527037 -
Flags: review?(wjohnston)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8532044 -
Flags: review?(rnewman)
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8532044 [details] [diff] [review]
v2 - Remove quote browser/mobile usage
I believe pref names are relatively sane, so we don't need to escape anything.
Attachment #8532044 -
Attachment description: remove-quote-browser → v2 - Remove quote browser/mobile usage
Comment 6•10 years ago
|
||
Comment on attachment 8532044 [details] [diff] [review]
v2 - Remove quote browser/mobile usage
Review of attachment 8532044 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/chrome/content/config.js
@@ +86,5 @@
> return;
> }
>
> // If item already in list, it's being changed, else added
> + let item = document.querySelector(".pref-item[name=\"" + aPrefName + "\"]");
I'm not particularly happy removing this quoting without figuring out an alternative: finding another escaping method, or mapping keys in a more sophisticated way that doesn't require escaping.
I tested. about:config allows me to create prefs with backslashes and quotes in their names, and there is certainly an extant pattern to have computed pref names like:
extensions.bookmarkdeduplicator@foxhatdev.install-event-fired
or
urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/getkey?client=navclient-auto-ffox2.0&
In short: this is a change you need to _prove_ is safe, because I see nothing to suggest that it won't break.
Attachment #8532044 -
Flags: review?(rnewman) → review-
Assignee | ||
Comment 7•10 years ago
|
||
Okay let's use CSS.escape there as well. I indeed didn't consider this case. I don't consider about:config to be critical anyway.
CSS.escape(' \\"') gives "\ \\\\""
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8532044 -
Attachment is obsolete: true
Attachment #8532111 -
Flags: review?(rnewman)
Updated•10 years ago
|
Attachment #8532111 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7794fca7bda8
https://hg.mozilla.org/mozilla-central/rev/3bdce03e9ec0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Keywords: dev-doc-needed → dev-doc-complete
Updated•10 years ago
|
Keywords: addon-compat
Comment 11•10 years ago
|
||
Added to the compat doc: https://developer.mozilla.org/en-US/Firefox/Releases/37/Site_Compatibility
You need to log in
before you can comment on or make changes to this bug.
Description
•