mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix incorrect instanceofs, r=vlad (no bug)
This commit is contained in:
parent
fac9f6462e
commit
ab18032a16
@ -222,7 +222,7 @@ function plRecordTime(time) {
|
||||
function plLoadHandlerCapturing(evt) {
|
||||
// make sure we pick up the right load event
|
||||
if (evt.type != 'load' ||
|
||||
(!evt.originalTarget instanceof Ci.nsIDOMHTMLDocument ||
|
||||
(!(evt.originalTarget instanceof Ci.nsIDOMHTMLDocument) ||
|
||||
evt.originalTarget.defaultView.frameElement))
|
||||
return;
|
||||
|
||||
@ -242,7 +242,7 @@ function plLoadHandlerCapturing(evt) {
|
||||
function plLoadHandler(evt) {
|
||||
// make sure we pick up the right load event
|
||||
if (evt.type != 'load' ||
|
||||
(!evt.originalTarget instanceof Ci.nsIDOMHTMLDocument ||
|
||||
(!(evt.originalTarget instanceof Ci.nsIDOMHTMLDocument) ||
|
||||
evt.originalTarget.defaultView.frameElement))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user