diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-14 09:52:37 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-11-14 09:52:37 +0100 |
commit | 3438b20bd731184a838abaa159ccd9c00be1593b (patch) | |
tree | d4fc292f1c0da7138fd93849b77f7d5caed2d0ec /application/palemoon/components | |
parent | 0cded9cf5ab8dc838efd233d65acc9f51f620e1b (diff) | |
parent | 81c27113a3e5389badf543557eaf25850ba3418b (diff) | |
download | UXP-3438b20bd731184a838abaa159ccd9c00be1593b.tar UXP-3438b20bd731184a838abaa159ccd9c00be1593b.tar.gz UXP-3438b20bd731184a838abaa159ccd9c00be1593b.tar.lz UXP-3438b20bd731184a838abaa159ccd9c00be1593b.tar.xz UXP-3438b20bd731184a838abaa159ccd9c00be1593b.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'application/palemoon/components')
-rw-r--r-- | application/palemoon/components/feeds/FeedWriter.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/application/palemoon/components/feeds/FeedWriter.js b/application/palemoon/components/feeds/FeedWriter.js index cfea150e2..d704835bb 100644 --- a/application/palemoon/components/feeds/FeedWriter.js +++ b/application/palemoon/components/feeds/FeedWriter.js @@ -692,16 +692,6 @@ FeedWriter.prototype = { }, /** - * Get moz-icon url for a file - * @param file - * A nsIFile object for which the moz-icon:// is returned - * @returns moz-icon url of the given file as a string - */ - _getFileIconURL: function FW__getFileIconURL(file) { - return "moz-icon://dummy.exe?size=16"; - }, - - /** * Helper method to set the selected application and system default * reader menuitems details from a file object * @param aMenuItem @@ -712,7 +702,10 @@ FeedWriter.prototype = { _initMenuItemWithFile: function(aMenuItem, aFile) { this._contentSandbox.menuitem = aMenuItem; this._contentSandbox.label = this._getFileDisplayName(aFile); - this._contentSandbox.image = this._getFileIconURL(aFile); + // For security reasons, access to moz-icon:file://... URIs is + // no longer allowed (indirect file system access from content). + // We use a dummy application instead to get a generic icon. + this._contentSandbox.image = "moz-icon://dummy.exe?size=16"; var codeStr = "menuitem.setAttribute('label', label); " + "menuitem.setAttribute('image', image);" Cu.evalInSandbox(codeStr, this._contentSandbox); |