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)

x86
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 24

People

(Reporter: jwilde, Assigned: TimAbraldes)

References

Details

(Whiteboard: feature=work)

Attachments

(1 file, 1 obsolete file)

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.
Summary: SecurityChange events not fired for SSL-encrypted pages → Fix SecurityChange events so that they will fire for SSL-encrypted pages
Product: Firefox → Firefox for Metro
Version: unspecified → Trunk
Whiteboard: [metro-mvp?] [LOE:?]
Whiteboard: [metro-mvp?] [LOE:?] → [metro-mvp] [LOE:1]
Blocks: 831905
Whiteboard: [metro-mvp] [LOE:1] → [metro-mvp] [LOE:1] feature=work
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
Component: General → App Bar
Assignee: nobody → tabraldes
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) — Splinter Review
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)
Note: The patch for this bug doesn't have any visible effect until you also apply the patch in bug 801090
(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 ? :)
(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 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+
Attached patch Patch v2Splinter Review
Review comments addressed
Attachment #748333 - Attachment is obsolete: true
Attachment #750580 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: