mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 15:04:11 +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)
|
||||
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