Fix incorrect instanceofs, r=vlad (no bug)

This commit is contained in:
gavin@gavinsharp.com 2007-09-04 12:01:38 -07:00
parent fac9f6462e
commit ab18032a16

View File

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