Bug 856712 - HTTPS certificate Visit Site/Add permanent exception buttons are not working
authorRodrigo Silveira <rsilveira@mozilla.com>
Tue, 28 May 2013 10:51:17 -0700
changeset 133192 1739d95b627bd987c844af3095dde3dce78a19bd
parent 133191 779a5cfb53951419c456861854c2ad602dc5c70c
child 133193 482b8c3e91f76e3ba38706b7c42eb75855355f1a
push id28650
push userrsilveira@mozilla.com
push dateTue, 28 May 2013 23:22:40 +0000
treeherdermozilla-inbound@f57219a206a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs856712
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 856712 - HTTPS certificate Visit Site/Add permanent exception buttons are not working
browser/metro/base/content/browser.js
--- a/browser/metro/base/content/browser.js
+++ b/browser/metro/base/content/browser.js
@@ -614,19 +614,19 @@ var Browser = {
     } else {
       // Handle setting an cert exception and reloading the page
       try {
         // Add a new SSL exception for this URL
         let uri = Services.io.newURI(json.url, null, null);
         let sslExceptions = new SSLExceptions();
 
         if (json.action == "permanent")
-          sslExceptions.addPermanentException(uri, errorDoc.defaultView);
+          sslExceptions.addPermanentException(uri, window);
         else
-          sslExceptions.addTemporaryException(uri, errorDoc.defaultView);
+          sslExceptions.addTemporaryException(uri, window);
       } catch (e) {
         dump("EXCEPTION handle content command: " + e + "\n" );
       }
 
       // Automatically reload after the exception was added
       aMessage.target.reload();
     }
   },