Add another preference check to detect if web fonts are disabled in Firefox
This commit is contained in:
parent
71d257ce5b
commit
f607e89a65
@ -376,8 +376,9 @@ ChromeActions.prototype = {
|
|||||||
'updateControlState' in getChromeWindow(this.domWindow).gFindBar;
|
'updateControlState' in getChromeWindow(this.domWindow).gFindBar;
|
||||||
},
|
},
|
||||||
supportsDocumentFonts: function() {
|
supportsDocumentFonts: function() {
|
||||||
var pref = getIntPref('browser.display.use_document_fonts', 1);
|
var prefBrowser = getIntPref('browser.display.use_document_fonts', 1);
|
||||||
return !!pref;
|
var prefGfx = getBoolPref('gfx.downloadable_fonts.enabled', true);
|
||||||
|
return (!!prefBrowser && prefGfx);
|
||||||
},
|
},
|
||||||
fallback: function(url, sendResponse) {
|
fallback: function(url, sendResponse) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user