Stop about:blank loads in new tabs in case we're loading a javascript: URL. Bug 357437, r=mconnor for toolkit, r=neil for xpfe

This commit is contained in:
bzbarsky@mit.edu 2007-08-21 22:02:21 -07:00
parent 6844fbe568
commit 1296df6273

View File

@ -1206,6 +1206,11 @@
t.setAttribute("afterselected", true);
if (!blank) {
// Stop the existing about:blank load. Otherwise, if aURI
// doesn't stop in-progress loads on its own, we'll get into
// trouble with multiple parallel loads running at once.
b.stop();
// pretend the user typed this so it'll be available till
// the document successfully loads
b.userTypedValue = aURI;