-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 639134 - update check for document colors #5511
Conversation
This checks for both prefs on the understanding that we need to work on older versions of Firefox. If that isn't the case, the first part of the if isn't necessary. This should only land if bug 639134 is resolved - I'd make the patch part of that bug, but AIUI pdfjs's canonical repo is on github, so...
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/ffe9923db37a0d1/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/ffe9923db37a0d1/output.txt Total script time: 0.91 mins Published
|
https://bugzilla.mozilla.org/show_bug.cgi?id=639134 is landed in FF37 and patch looks good -- trying to figure out when we regressed the warning bar |
We might want to hold off with this PR, since there's apparently questions regarding the new pref, see https://groups.google.com/forum/#!topic/mozilla.dev.platform/th7gTtRSgo0. |
When I'm looking at the code that should trigger the warning, viewer.js#L1741-L1749, I'm not sure how it ever worked :-) |
Do we need to wait for the resolution of https://bugzilla.mozilla.org/show_bug.cgi?id=1118032, or can we land this now? Also, should we use preprocessor tags? E.g. if (getIntPref('browser.display.document_color_use', 0) === 2) {
return false;
}
//#if !MOZCENTRAL
if (!getBoolPref('browser.display.use_document_colors', true)) {
return false;
}
//#endif
return true; |
We don't need to wait; that bug will only change the representation of the pref in the preference pages, not the values of the pref |
Bug 639134 - update check for document colors
Thanks for the patch! |
Bug 639134 - update check for document colors
This checks for both prefs on the understanding that we need to work on older versions of Firefox. If that isn't the case, the first part of the if isn't necessary. This should only land if bug 639134 is resolved - I'd make the patch part of that bug, but AIUI pdfjs's canonical repo is on github, so...