-
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
Protects PDFJS.disableXXX == true from change #4925
Conversation
Addresses regression mentioned in #4898 (comment) |
/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/ee09f6499a48e83/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/ee09f6499a48e83/output.txt Total script time: 0.88 mins Published
|
Trivial |
Protects PDFJS.disableXXX == true from change
@@ -223,21 +223,33 @@ var PDFView = { | |||
|
|||
var initializedPromise = Promise.all([ | |||
Preferences.get('enableWebGL').then(function resolved(value) { | |||
if (PDFJS.disableWebGL === true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the default value is true
, see https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L122-L123, shouldn't this have been === false
instead?
With this PR merged, WebGL is now disabled even though I've set the pref to true
in about:config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, you are right. let's remove that check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... when preferences read