mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 283262 "event is not defined" when pressing alt+enter in the url bar, (BrowserLoadURL)
p=gavin.sharp@gmail.com r=mconnor
This commit is contained in:
parent
15d4b611a7
commit
12a56b93b4
@ -1677,10 +1677,10 @@ function BrowserLoadURL(aTriggeringEvent, aPostData)
|
||||
var t = gBrowser.addTab(url, null, null, aPostData); // open link in new tab
|
||||
gBrowser.selectedTab = t;
|
||||
gURLBar.value = url;
|
||||
event.preventDefault();
|
||||
event.preventBubble();
|
||||
event.preventCapture();
|
||||
event.stopPropagation();
|
||||
aTriggeringEvent.preventDefault();
|
||||
aTriggeringEvent.preventBubble();
|
||||
aTriggeringEvent.preventCapture();
|
||||
aTriggeringEvent.stopPropagation();
|
||||
}
|
||||
else
|
||||
loadURI(url, null, aPostData);
|
||||
|
Loading…
Reference in New Issue
Block a user