Back out bug 662867 (changeset 3453df4d6852)

This commit is contained in:
Philipp von Weitershausen 2011-06-15 17:43:24 +02:00
parent 4b3f5e35e5
commit da8f152f19
3 changed files with 9 additions and 14 deletions

View File

@ -2734,18 +2734,13 @@ Tab.prototype = {
if ("delayLoad" in aParams && aParams.delayLoad)
return;
// Give the browser binding a chance to attach completely before trying to
// load. Trying to load an invalid about: page from a remote browser causes
// a crash when trying to display the warning dialog.
setTimeout(function() {
try {
let flags = aParams.flags || Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
let postData = aParams.postData ? aParams.postData.value : null;
browser.loadURIWithFlags(aURI, flags, aParams.referrerURI, aParams.charset, postData);
} catch(e) {
dump("Error: " + e + "\n");
}
}, 0);
try {
let flags = aParams.flags || Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
let postData = aParams.postData ? aParams.postData.value : null;
browser.loadURIWithFlags(aURI, flags, aParams.referrerURI, aParams.charset, postData);
} catch(e) {
dump("Error: " + e + "\n");
}
},
destroy: function destroy() {

View File

@ -1021,7 +1021,7 @@ var FormSubmitObserver = {
addMessageListener("Browser:TabClose", this);
},
receiveMessage: function receiveMessage(aMessage) {
receiveMessage: function findHandlerReceiveMessage(aMessage) {
let json = aMessage.json;
switch (aMessage.name) {
case "Browser:TabOpen":

View File

@ -96,7 +96,7 @@ SSLExceptions.prototype = {
var req = new XMLHttpRequest();
try {
if (aURI) {
if(aURI) {
req.open("GET", aURI.prePath, false);
req.channel.notificationCallbacks = this;
req.send(null);