Closed
Bug 800157
Opened 12 years ago
Closed 12 years ago
Make User Agent overrides affect navigator.userAgent in addition to the HTTP header
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file, 2 obsolete files)
11.40 KB,
patch
|
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Bug 795348 might need this unless that site can be evangelized. Either way, it will be good to have the ability to override navigator.userAgent up our sleeve.
I suppose UserAgentOverrides.jsm needs to converted to an XPCOM service, or an XPCOM services utilizing UserAgentOverrides.jsm needs to be added, such that Navigator.cpp can use that. Does this sound reasonable?
Comment 1•12 years ago
|
||
Seems fine to me, yes.
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
You can test this on <https://direktnet.raiffeisen.hu/rai/direktnet/home.do>. With the override applied, the login form should be present.
Comment 4•12 years ago
|
||
Comment on attachment 670305 [details] [diff] [review]
patch
>+++ b/dom/base/Navigator.cpp
> Navigator::GetUserAgent(nsAString& aUserAgent)
>+ NS_ENSURE_SUCCESS(rv, NS_OK);
Second arg should be rv.
>+ nsCOMPtr<nsIDocument> doc = do_QueryInterface(win->GetExtantDocument());
nsIDocument* doc = win->GetExtantDoc();
r=me with those.
Attachment #670305 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #670305 -
Attachment is obsolete: true
Attachment #670306 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #6)
> https://bugzilla.mozilla.org/attachment.cgi?id=670558
wrong link...
https://hg.mozilla.org/integration/mozilla-inbound/rev/9f28c28e988f
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 670558 [details] [diff] [review]
patch, review comments addressed
[Approval Request Comment]
Extends our ability to react to sites that are broken due to bad UA sniffing.
Bug caused by (feature/regressing bug #): n/a
User impact if declined: n/a
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low, I think
String or UUID changes made by this patch: none
Attachment #670558 -
Flags: approval-mozilla-beta?
Attachment #670558 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Attachment #670558 -
Flags: approval-mozilla-beta?
Attachment #670558 -
Flags: approval-mozilla-beta+
Attachment #670558 -
Flags: approval-mozilla-aurora?
Attachment #670558 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/717bd76378cc
https://hg.mozilla.org/releases/mozilla-beta/rev/3c067c8fb7fd
status-firefox17:
--- → fixed
status-firefox18:
--- → fixed
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•