commit 025eed93bea343ed79da24cbaf0be346c8f619a2 parent 3fc4bc2efe2ed998e0d321f5fc320b1b31ba9530 Author: aurimasv <aurimas.dev@gmail.com> Date: Sun, 11 Nov 2012 01:50:26 -0600 Fix CSS url() links when served from zotero:// protocol Diffstat:
| M | components/zotero-protocol-handler.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js @@ -819,6 +819,11 @@ function ChromeExtensionHandler() { var fileURI = ph.newFileURI(file); } var channel = ioService.newChannelFromURI(fileURI); + //set originalURI so that it seems like we're serving from zotero:// protocol + //this is necessary to allow url() links to work from within css files + //otherwise they try to link to files on the file:// protocol, which is not allowed + channel.originalURI = uri; + return channel; } catch (e) {