Closed
Bug 843437
Opened 12 years ago
Closed 12 years ago
Warning message in debug builds due to UA overrides
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: lmandel, Assigned: lmandel)
Details
Attachments
(1 file, 1 obsolete file)
24.86 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
Dave Hylands noted in bug 827635 comment 1:
I'm seeing a ton of messages in the log files in debug builds:
20:01:55.616 635/635 Gecko I WARNING: preserving unexpected JS escape sequence: file /home/dhylands/work/B2G-unagi/mozilla-inbound/modules/libpref/src/prefread.cpp, line 397
I added some more debug and one (of the many) prefs in question was:
pref_DoCallback 'general.useragent.override.facebook.com' value '\(Mobile#(Android; Mobile'
We can change the overrides either to '\\(Mobile#(Android; Mobile' or 'Mobile#Android; Mobile'.
Comment 1•12 years ago
|
||
I'm guessing that we should be using one of these:
'\\(Mobile#(Android; Mobile' or '(Mobile#Android; Mobile'
but I don't know which one is appropriate.
Comment 2•12 years ago
|
||
I just read your comment in bug 827635 about '(Mobile#Android; Mobile' not working. So I'll shutup now. You can ignore comment 1.
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #742522 -
Flags: review?(dhylands)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → lmandel
Comment 4•12 years ago
|
||
Comment on attachment 742522 [details] [diff] [review]
Correct the UA overrides to prevent warning messages
Review of attachment 742522 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
I verified that the warnings go away in a debug build.
I'm not sure how to test if the UA overrides are still working, so I'll assume that you've done that.
Attachment #742522 -
Flags: review?(dhylands) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Spot testing shows the patch to be effective.
Keywords: checkin-needed
Comment 7•12 years ago
|
||
This patch doesn't apply on master branch, unfortunately.
Did you use a sed script to do this patch? If so, it might make sense for you to provide that sed script and I can run it when I commit.
Flags: needinfo?(jhford) → needinfo?(lmandel)
Assignee | ||
Comment 8•12 years ago
|
||
I didn't use a sed script. As I only noticed this was sitting two weeks later, I wonder if the patch is just out of date. I'll take a look.
Flags: needinfo?(lmandel)
Updated•12 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 9•12 years ago
|
||
Dave, can you please review to confirm that the warnings no longer appear after applying this patch?
Attachment #742522 -
Attachment is obsolete: true
Attachment #759915 -
Flags: review?(dhylands)
Comment 10•12 years ago
|
||
Comment on attachment 759915 [details] [diff] [review]
Cleanup UA override warnings - take 2
Review of attachment 759915 [details] [diff] [review]:
-----------------------------------------------------------------
I can confirm that the "WARNING: preserving unexpected JS escape sequence: file /home/work/B2G-unagi/birch/modules/libpref/src/prefread.cpp, line 393" messages no longer appear with this patch applied.
Attachment #759915 -
Flags: review?(dhylands) → review+
Comment 11•12 years ago
|
||
I tested on my unagi against master.
Comment 14•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(jhford)
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•