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

[Bug 1194700] Ensure that the customScaleOption is hidden in e10s #7242

Merged
merged 1 commit into from
May 3, 2016
Merged

[Bug 1194700] Ensure that the customScaleOption is hidden in e10s #7242

merged 1 commit into from
May 3, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

When Firefox is run in e10s mode, which will soon be the default, the PDF.js zoom dropdown menu doesn't look right. This is apparently because the <select> DOM element is rendered in the parent, and that all the necessary style information isn't sent up from the child. See the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=910022.

Besides this causing the PDF.js UI to look worse in e10s, notably it also means that the customScaleOption isn't hidden like it ought to be.
To work-around that, this patch utilizes the hidden attribute, since https://bugzilla.mozilla.org/show_bug.cgi?id=1242450 at least made that work in e10s.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1194700.


e10s-zoom

When Firefox is run in e10s mode, which will soon be the default, the PDF.js zoom dropdown menu doesn't look right. This is apparently because the `<select>` DOM element is rendered in the parent, and that all the necessary style information isn't sent up from the child. See the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=910022.

Besides this causing the PDF.js UI to *look* worse in e10s, notably it also means that the `customScaleOption` isn't hidden like it ought to be.
To work-around that, this patch utilizes the `hidden` attribute, since https://bugzilla.mozilla.org/show_bug.cgi?id=1242450 at least made that work in e10s.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1194700.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/3621d533ace11c6/output.txt

@Snuffleupagus
Copy link
Collaborator Author

Given that https://bugzilla.mozilla.org/show_bug.cgi?id=910022 affects the visual appearance of the PDF Viewer that is shipped in e10s Firefox, we might be able to use that to get the bug re-prioritized!?
@yurydelendik In the meantime, since this patch avoids one visual glitch in e10s, can we take it?

@yurydelendik yurydelendik merged commit 8adddf0 into mozilla:master May 3, 2016
@yurydelendik
Copy link
Contributor

Thank you for the patch

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

Successfully merging this pull request may close these issues.

3 participants