We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: invalid 'instanceof' operand doc.defaultView.ImageDocument Source:
Private_Tab/bootstrap.js
Line 758 in f5524fc
This is side-effect of this fix: #56
Firefox 22: view-source:chrome://browser/content/tabbrowser.xml
<method name="useDefaultIcon"> <parameter name="aTab"/> <body> <![CDATA[ var browser = this.getBrowserForTab(aTab); var docURIObject = browser.contentDocument.documentURIObject; var icon = null; if (browser.contentDocument instanceof ImageDocument) { if (Services.prefs.getBoolPref("browser.chrome.site_icons")) { let sz = Services.prefs.getIntPref("browser.chrome.image_icons.max_size"); try { let req = browser.contentDocument.imageRequest; if (req && req.image && req.image.width <= sz && req.image.height <= sz) icon = browser.currentURI; } catch (e) { } } }
Firefox 25.0a1:
<method name="useDefaultIcon"> <parameter name="aTab"/> <body> <![CDATA[ var browser = this.getBrowserForTab(aTab); var documentURI = browser.documentURI; var icon = null; if (browser.imageDocument) { if (Services.prefs.getBoolPref("browser.chrome.site_icons")) { let sz = Services.prefs.getIntPref("browser.chrome.image_icons.max_size"); if (browser.imageDocument.width <= sz && browser.imageDocument.height <= sz) { icon = browser.currentURI; } } }
view-source:chrome://global/content/bindings/browser.xml
<property name="imageDocument" readonly="true"> <getter> <![CDATA[ var document = this.contentDocument; if (!document || !(document instanceof Ci.nsIImageDocument)) return null; try { return {width: document.imageRequest.image.width, height: document.imageRequest.image.height }; } catch (e) {} return null; ]]> </getter> </property>
So we should also checks for instanceof Ci.nsIImageDocument instead of instanceof ImageDocument.
instanceof Ci.nsIImageDocument
instanceof ImageDocument
The text was updated successfully, but these errors were encountered:
4c1e856
This caused by https://bugzilla.mozilla.org/show_bug.cgi?id=885177 "Make window.ImageDocument ChromeOnly".
Sorry, something went wrong.
No branches or pull requests
Error: invalid 'instanceof' operand doc.defaultView.ImageDocument
Source:
Private_Tab/bootstrap.js
Line 758 in f5524fc
This is side-effect of this fix: #56
Firefox 22:
view-source:chrome://browser/content/tabbrowser.xml
Firefox 25.0a1:
view-source:chrome://global/content/bindings/browser.xml
So we should also checks for
instanceof Ci.nsIImageDocument
instead ofinstanceof ImageDocument
.The text was updated successfully, but these errors were encountered: