Fix missing colored tag swatches on Windows/Linux

In Firefox 41, file: URIs can no longer be loaded (at least via Image)
from the hidden window on Windows/Linux, but chrome: URIs still work.
Not sure why I was using a file: URI to begin with.
This commit is contained in:
Dan Stillman 2015-09-24 23:55:45 -04:00
parent 974a07bf73
commit ce72b450bf

View file

@ -729,9 +729,6 @@ Zotero.Tags = new function() {
let ios = Components.classes['@mozilla.org/network/io-service;1'] let ios = Components.classes['@mozilla.org/network/io-service;1']
.getService(Components.interfaces["nsIIOService"]); .getService(Components.interfaces["nsIIOService"]);
let uri = ios.newURI(extraImage, null, null); let uri = ios.newURI(extraImage, null, null);
uri = Components.classes['@mozilla.org/chrome/chrome-registry;1']
.getService(Components.interfaces["nsIChromeRegistry"])
.convertChromeURL(uri);
var img = new win.Image(); var img = new win.Image();
img.src = uri.spec; img.src = uri.spec;