Skip to content
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

Merged
merged 1 commit into from
Jun 12, 2014

Conversation

yurydelendik
Copy link
Contributor

... when preferences read

@yurydelendik
Copy link
Contributor Author

Addresses regression mentioned in #4898 (comment)

@yurydelendik
Copy link
Contributor Author

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/ee09f6499a48e83/output.txt

@yurydelendik
Copy link
Contributor Author

Trivial

yurydelendik added a commit that referenced this pull request Jun 12, 2014
Protects PDFJS.disableXXX == true from change
@yurydelendik yurydelendik merged commit a75b685 into mozilla:master Jun 12, 2014
@yurydelendik yurydelendik deleted the protdisable branch June 12, 2014 18:35
@@ -223,21 +223,33 @@ var PDFView = {

var initializedPromise = Promise.all([
Preferences.get('enableWebGL').then(function resolved(value) {
if (PDFJS.disableWebGL === true) {
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants