Closed
Bug 771348
Opened 13 years ago
Closed 12 years ago
Work - Fix SecurityChange events so that they will fire for SSL-encrypted pages
Categories
(Firefox for Metro Graveyard :: App Bar, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: jwilde, Assigned: TimAbraldes)
References
Details
(Whiteboard: feature=work)
Attachments
(1 file, 1 obsolete file)
3.26 KB,
patch
|
TimAbraldes
:
review+
|
Details | Diff | Splinter Review |
On the current elm tip, SecurityChange events that would cause the browser to identify the current site as SSL (EV or not) don't fire.
As a result, when you browse to an encrypted page and tap the identity icon, the UI incorrectly shows that there's no identifying information for the current site.
Reporter | ||
Updated•13 years ago
|
Summary: SecurityChange events not fired for SSL-encrypted pages → Fix SecurityChange events so that they will fire for SSL-encrypted pages
![]() |
||
Updated•12 years ago
|
Product: Firefox → Firefox for Metro
Version: unspecified → Trunk
Updated•12 years ago
|
Whiteboard: [metro-mvp?] [LOE:?]
![]() |
||
Updated•12 years ago
|
Whiteboard: [metro-mvp?] [LOE:?] → [metro-mvp] [LOE:1]
Updated•12 years ago
|
Whiteboard: [metro-mvp] [LOE:1] → [metro-mvp] [LOE:1] feature=work
Updated•12 years ago
|
Summary: Fix SecurityChange events so that they will fire for SSL-encrypted pages → Work - Fix SecurityChange events so that they will fire for SSL-encrypted pages
Whiteboard: [metro-mvp] [LOE:1] feature=work → feature=work
![]() |
||
Updated•12 years ago
|
Component: General → App Bar
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → tabraldes
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
Background:
toolkit/content/widgets/browser.xml defines a property "securityUI" whose getter is responsible for instantiating a new "@mozilla.org/secure_browser_ui;1", initializing it, and setting it as a property of the docshell [1]. This getter is invoked from the constructor that is also defined in toolkit/content/widgets/browser.xml [2].
The problem:
browser/metro/base/content/bindings/browser.xml ALSO defines a "securityUI" property, and that property's getter does none of the initialization that the other "securityUI" property does [3]. When the constructor in toolkit/content/widgets/browser.xml calls the securityUI getter, the getter in browser/metro/base/content/bindings/browser.xml is invoked instead of the one in toolkit/content/widgets/browser.xml. As a result, the "@mozilla.org/secure_browser_ui;1" is never created, and the docshell does not have a securityUI property.
This patch fixes the issue by removing the securityUI property from toolkit/content/widgets/browser.xml.
[1] https://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/browser.xml?rev=f926fbeab6af#617
[2] https://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/browser.xml?rev=f926fbeab6af#714
[3] https://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/bindings/browser.xml?rev=b05237492a4c#57
Attachment #748333 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 2•12 years ago
|
||
Note: The patch for this bug doesn't have any visible effect until you also apply the patch in bug 801090
![]() |
||
Comment 3•12 years ago
|
||
(In reply to Tim Abraldes (:TimAbraldes) from comment #1)
> This patch fixes the issue by removing the securityUI property from
> toolkit/content/widgets/browser.xml.
Did you mean browser/metro/base/content/bindings/browser.xml ? :)
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #3)
> (In reply to Tim Abraldes (:TimAbraldes) from comment #1)
> > This patch fixes the issue by removing the securityUI property from
> > toolkit/content/widgets/browser.xml.
>
> Did you mean browser/metro/base/content/bindings/browser.xml ? :)
Good catch, Jim. Just making sure that everyone who is reading along is paying attention ;)
Comment 5•12 years ago
|
||
Comment on attachment 748333 [details] [diff] [review]
Patch v1
Review of attachment 748333 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/metro/base/content/bindings/browser.xml
@@ +498,5 @@
> + if (!currentURI) {
> + result.isException = false;
> + } else {
> + result.isException = !!this._overrideService.hasMatchingOverride(currentURI.asciiHost, currentURI.port, cert, {}, {});
> + }
Minor nits: Remove the "!!" while you're here; it's not needed.
I think I'd find this slightly clearer in the opposite order:
if (currentURI) {
// blah blah blah
} else {
result.isException = false;
}
Attachment #748333 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Review comments addressed
Attachment #748333 -
Attachment is obsolete: true
Attachment #750580 -
Flags: review+
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•