Honour preventDefault() on modified link clicks b=319554 r+sr=jag

git-svn-id: svn://10.0.0.236/trunk@202179 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk 2006-07-14 21:15:46 +00:00
parent 0fdd89124a
commit 92f3681d90

View File

@ -170,7 +170,7 @@
// should always return true for click to go through
function contentAreaClick(event)
{
if (!event.isTrusted) {
if (!event.isTrusted || event.getPreventDefault()) {
return true;
}
@ -193,7 +193,6 @@
}
if (pref && !isKeyPress && event.button == 1 &&
!event.getPreventDefault() &&
pref.getBoolPref("middlemouse.contentLoadURL")) {
if (middleMousePaste(event)) {
event.stopPropagation();