Fix BrowserOnCommand() to use the correct content document for error pages in frames. b=407369 r=gavin a=blocking-firefox3

git-svn-id: svn://10.0.0.236/trunk@240978 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
johnath%mozilla.com 2007-12-13 15:03:43 +00:00
parent 8a9da86afc
commit f6fc92ada2

View File

@ -2147,7 +2147,7 @@ function BrowserOnCommand(event) {
case 2 : // Pre-fetch & pre-populate
params.prefetchCert = true;
case 1 : // Pre-populate
params.location = content.location.href;
params.location = errorDoc.location.href;
}
} catch (e) {
Components.utils.reportError("Couldn't get ssl_override pref: " + e);
@ -2158,7 +2158,7 @@ function BrowserOnCommand(event) {
// If the user added the exception cert, attempt to reload the page
if (params.exceptionAdded)
content.location.reload();
errorDoc.location.reload();
}
else if (ot == errorDoc.getElementById('getMeOutOfHereButton')) {
// Redirect them to a known-functioning page, default start page