mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 21:32:31 +02:00
Fix bug.
This commit is contained in:
1 parent
b5ffc5680d
commit
7c3b7b91f6
1 file changed
+1
-1
@@ -301,7 +301,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
||||
if (!Ci.nsILoadContext)
|
||||
return null;
|
||||
|
||||
if (thing instanceof Ci.nsIDOMNode)
|
||||
if (thing instanceof Ci.nsIDOMNode && thing.ownerDocument)
|
||||
thing = thing.ownerDocument;
|
||||
if (thing instanceof Ci.nsIDOMDocument)
|
||||
thing = thing.defaultView;
|
||||
|
||||
Reference in new issue
Block a user