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:
bugzilla%arlen.demon.co.uk 2005-02-27 22:08:19 +00:00
parent 15d4b611a7
commit 12a56b93b4

View File

@ -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);