1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 15:04:11 +01:00
This commit is contained in:
Kris Maglione
2013-03-24 13:23:31 -07:00
parent b5ffc5680d
commit 7c3b7b91f6

View File

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