Detect and add fallback if document colors are disabled in Firefox - address comment

This commit is contained in:
Jonas 2013-04-03 18:49:03 +02:00
parent 6ad7bd6be8
commit ee83df1338
4 changed files with 25 additions and 1 deletions

View file

@ -383,6 +383,9 @@ ChromeActions.prototype = {
var prefGfx = getBoolPref('gfx.downloadable_fonts.enabled', true);
return (!!prefBrowser && prefGfx);
},
supportsDocumentColors: function() {
return getBoolPref('browser.display.use_document_colors', true);
},
fallback: function(url, sendResponse) {
var self = this;
var domWindow = this.domWindow;