Closed
Bug 711487
Opened 14 years ago
Closed 12 years ago
User Agent Override May Disable the Source Editor (with Orion)
Categories
(DevTools :: Source Editor, defect, P3)
DevTools
Source Editor
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kdevel, Unassigned)
References
Details
(Keywords: regression, Whiteboard: [sourceeditor][orion])
Attachments
(1 file)
|
3.43 KB,
patch
|
Details | Diff | Splinter Review |
User Agent:
Steps to reproduce:
1. about:config
2. general.useragent.override = "test"
3. Shift-F4
Actual results:
2. Scratchpad opens with work area disabled (greyed out).
Expected results:
2. Ignore UA value.
Bug found in 2011-12-16-03-11-40-mozilla-central (5efcb9c3b375)
last good 2011-12-14-03-11-34-mozilla-central 221eccfa6a3f
first bad 2011-12-15-03-11-53-mozilla-central beac16509534
Comment 3•14 years ago
|
||
Regression window(m-c):
Works:
http://hg.mozilla.org/mozilla-central/rev/efab5016434f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0a1) Gecko/20111214 Firefox/11.0a1 ID:20111214052826
Fails:
http://hg.mozilla.org/mozilla-central/rev/80bb6b209ea7
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0a1) Gecko/20111214 Firefox/11.0a1 ID:20111214062919
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=efab5016434f&tochange=80bb6b209ea7
Regression window(fx-team):
Works:
http://hg.mozilla.org/integration/fx-team/rev/a3002672881e
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0a1) Gecko/20111213 Firefox/11.0a1 ID:20111213040311
fails:
http://hg.mozilla.org/integration/fx-team/rev/ff164dca09bc
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0a1) Gecko/20111213 Firefox/11.0a1 ID:20111213055523
Pushlog:
http://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=a3002672881e&tochange=ff164dca09bc
Suspected:
847e7bead2db Mihai Sucan — Bug 702331 - Update Orion from upstream; r=rcampbell
Blocks: 702331
Status: UNCONFIRMED → NEW
Component: General → Developer Tools
Ever confirmed: true
Keywords: regression
OS: Other → All
QA Contact: general → developer.tools
Hardware: Other → All
Comment 5•14 years ago
|
||
ah, lovely. Good find.
Mihai, can we do something to prevent Orion from using the system-provided UserAgent string? That could also cause interesting issues if a user's masquerading as another browser, say IE.
Comment 6•14 years ago
|
||
This was expected.
This is not a regression, it has been like this since we first landed Orion. The manifestation of this problem has probably changed over time.
(In reply to Rob Campbell [:rc] (robcee) from comment #5)
> ah, lovely. Good find.
>
> Mihai, can we do something to prevent Orion from using the system-provided
> UserAgent string? That could also cause interesting issues if a user's
> masquerading as another browser, say IE.
From SourceEditor we should be able to overwrite window.navigator.platform to make sure that the value from about:config is ignored.
Would this be an acceptable approach?
Updated•14 years ago
|
Summary: User Agent Override May Disable Scratchpad → User Agent Override May Disable the Source Editor (with Orion)
Whiteboard: [sourceeditor][orion]
Updated•14 years ago
|
Priority: -- → P3
Comment 7•13 years ago
|
||
Moving to Source Editor component.
Filter on CHELICERAE.
Component: Developer Tools → Developer Tools: Source Editor
(In reply to Mihai Sucan [:msucan] from comment #6)
> This was expected.
Isn't user agent sniffing considered deprecated thing that should never be used?
Comment 10•12 years ago
|
||
(In reply to JK from comment #9)
> (In reply to Mihai Sucan [:msucan] from comment #6)
> > This was expected.
>
> Isn't user agent sniffing considered deprecated thing that should never be
> used?
Sure, user agent sniffing is not to be used. However, I doubt you can find a big web app that doesn't use it. Feature detection only gets you so far. Workarounds for browser bugs still need to rely on some kind of user agent sniffing. You endup having to know which browser and version your web apps runs in.
Comment 12•12 years ago
|
||
This is not an issue anymore.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•