X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fdisable-acr.jsm;fp=common%2Fcontent%2Fdisable-acr.jsm;h=5f5b4feac44bd6f47c21e97aa1ed412ef8182f1f;hb=9044153cb63835e39b9de8ec4ade237c03e3888a;hp=3481cda8bc70755849b15c955ec24a107492caa7;hpb=70740024f9c028c1fd63e1a1850ab062ff956054;p=dactyl.git diff --git a/common/content/disable-acr.jsm b/common/content/disable-acr.jsm index 3481cda..5f5b4fe 100644 --- a/common/content/disable-acr.jsm +++ b/common/content/disable-acr.jsm @@ -8,8 +8,7 @@ const OVERLAY_URLS = [ "chrome://mozapps/content/extensions/extensions.xul" ]; -const Ci = Components.interfaces; -const Cu = Components.utils; +let { interfaces: Ci, utils: Cu } = Components; Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); @@ -64,7 +63,10 @@ function chromeDocuments() { let docShells = window.docShell.getDocShellEnumerator(Ci.nsIDocShellTreeItem[type], Ci.nsIDocShell.ENUMERATE_FORWARDS); while (docShells.hasMoreElements()) + try { yield docShells.getNext().QueryInterface(Ci.nsIDocShell).contentViewer.DOMDocument; + } + catch (e) {} } } }