mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
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:
parent
6844fbe568
commit
1296df6273
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user