mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Back out bug 662867 (changeset 3453df4d6852)
This commit is contained in:
parent
0a6fc03617
commit
b99486a082
@ -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() {
|
||||
|
@ -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":
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user