diff --git a/browser/metro/base/content/browser.js b/browser/metro/base/content/browser.js index 828588dab34..a348a38ddbc 100644 --- a/browser/metro/base/content/browser.js +++ b/browser/metro/base/content/browser.js @@ -619,9 +619,9 @@ var Browser = { 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" ); }