From 05a312f6d0f0c4c2d953f297fa5ae1717d596792 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 10 Dec 2017 17:09:35 -0500 Subject: [PATCH] fix #621 --- src/js/contentscript.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index 0eb861d..5af0c1b 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -19,7 +19,7 @@ Home: https://github.com/gorhill/uMatrix */ -/* global HTMLDocument */ +/* global HTMLDocument, XMLDocument */ 'use strict'; @@ -33,8 +33,11 @@ /******************************************************************************/ // https://github.com/chrisaljoudi/uBlock/issues/464 -if ( document instanceof HTMLDocument === false ) { - //console.debug('contentscript.js > not a HTLMDocument'); +// https://github.com/gorhill/uMatrix/issues/621 +if ( + document instanceof HTMLDocument === false && + document instanceof XMLDocument === false +) { return; }