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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Assigned: lmandel)

Details

Attachments

(1 file, 1 obsolete file)

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'.
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.
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: nobody → lmandel
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+
Spot testing shows the patch to be effective.
Keywords: checkin-needed
John, can you land this please?
Flags: needinfo?(jhford)
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)
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)
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 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+
I tested on my unagi against master.
Thanks Dave!
Keywords: checkin-needed
Let's try that again!
Flags: needinfo?(jhford)
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.

Attachment

General

Created:
Updated:
Size: