mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 23:03:35 +01:00
Fix bug.
This commit is contained in:
@@ -301,7 +301,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
|||||||
if (!Ci.nsILoadContext)
|
if (!Ci.nsILoadContext)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (thing instanceof Ci.nsIDOMNode)
|
if (thing instanceof Ci.nsIDOMNode && thing.ownerDocument)
|
||||||
thing = thing.ownerDocument;
|
thing = thing.ownerDocument;
|
||||||
if (thing instanceof Ci.nsIDOMDocument)
|
if (thing instanceof Ci.nsIDOMDocument)
|
||||||
thing = thing.defaultView;
|
thing = thing.defaultView;
|
||||||
|
|||||||
Reference in New Issue
Block a user