Closed
Bug 1156114
Opened 10 years ago
Closed 10 years ago
Incorrectly escaped regexp in browser/app/profile/firefox.js - warning preserving unexpected JS escape sequence: file modules/libpref/prefread.cpp, line 393
Categories
(Firefox :: Tours, defect)
Firefox
Tours
Tracking
()
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: asqueella, Assigned: jaws)
References
Details
Attachments
(1 file)
1.29 KB,
patch
|
jruderman
:
review+
|
Details | Diff | Splinter Review |
In browser/app/profile/firefox.js:255 <http://hg.mozilla.org/mozilla-central/annotate/a32e3b93c8d8/browser/app/profile/firefox.js#l254>
> pref("browser.uitour.readerViewTrigger", "^https:\/\/www\.mozilla\.org\/[^\/]+\/firefox\/reading\/start");
(added in bug 1134501) triggers 9 warnings on a startup in a debug build:
WARNING: preserving unexpected JS escape sequence: file modules/libpref/prefread.cpp, line 393
Backslashes are supposed to be escaped in pref files. I'm guessing "https:\\/\\/" and so on, but I didn't test.
(a similar case was recently fixed in bug 1146097)
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Iteration: --- → 40.2 - 27 Apr
Points: --- → 1
Flags: qe-verify-
Flags: firefox-backlog+
OS: Mac OS X → All
Hardware: x86 → All
Comment 2•10 years ago
|
||
Comment on attachment 8594547 [details] [diff] [review]
Patch
Review of attachment 8594547 [details] [diff] [review]:
-----------------------------------------------------------------
Looks right to me. I think it would also work with / in place of \\/, since you call the RegExp constructor rather than eval'ing a literal delimited by slashes.
Attachment #8594547 -
Flags: review?(jruderman) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the r+. I'll leave it as-is for now wrt the backslashes being necessary.
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
You need to log in
before you can comment on or make changes to this bug.
Description
•