Closed
Bug 917965
Opened 11 years ago
Closed 11 years ago
UA overrides are disabled if update is invalid
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(1 file)
(deleted),
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
If an update is invalid (i.e. request succeeds but the content is invalid), the UA override list will be set to null, effectively disabling overrides. We should keep the old list instead.
Assignee | ||
Comment 1•11 years ago
|
||
Prevent null UA override list
Attachment #807789 -
Flags: review?(fabrice)
Updated•11 years ago
|
Attachment #807789 -
Flags: review?(fabrice) → review+
Updated•11 years ago
|
blocking-b2g: koi? → koi+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 3•11 years ago
|
||
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 5•11 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox25:
--- → wontfix
status-firefox26:
--- → fixed
status-firefox27:
--- → fixed
Comment 6•11 years ago
|
||
Is there any way I can simulate invalid updates in order to reproduce/verify this bug?
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Ioana Budnar, QA [:ioana] from comment #6)
> Is there any way I can simulate invalid updates in order to reproduce/verify
> this bug?
It's a bit complicated. With the latest build of B2G,
1) Verify r7.com in the browser displays the mobile site and not the desktop site
2) Set the pref "general.useragent.updates.url" to "http://people.mozilla.org/~nchen/ua/ua-invalid.json"
3) Set the pref "general.useragent.updates.interval" to 60
4) Wait 5 minutes for the update to occur
5) Verify r7.com still displays the mobile site and not the desktop site
Comment 8•11 years ago
|
||
Thanks for the steps but, unfortunately, I don't have access to B2G devices. Does this bug also affect Firefox for desktop somehow?
Flags: needinfo?(nchen)
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Ioana Budnar, QA [:ioana] from comment #8)
> Thanks for the steps but, unfortunately, I don't have access to B2G devices.
> Does this bug also affect Firefox for desktop somehow?
Unfortunately the code only runs on B2G. Maybe a B2G QA can verify this.
Flags: needinfo?(nchen)
Comment 10•11 years ago
|
||
Dropping verifyme because the flag was added for Firefox Desktop.
Keywords: verifyme
Updated•11 years ago
|
OS: All → Gonk (Firefox OS)
You need to log in
before you can comment on or make changes to this bug.
Description
•