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

Always attempt to dispatch the "webviewerloaded" event at the embedding document (PR 10318 follow-up, issue 11829) #11837

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

This is necessary in order to support cases where the default viewer is embedded in a dynamically created <iframe> element.

In order to also support a use-case where there's multiple <iframe> elements (containing default viewers) on the same page, the "webviewerloaded" event now includes a source detail parameter such that it's possible to associate an event with the relevant DOM element.

Fixes #11829

@Snuffleupagus Snuffleupagus force-pushed the webviewerloaded-top branch 2 times, most recently from 116ff4a to 2ef9f6e Compare April 22, 2020 18:05
…ng `document` (PR 10318 follow-up, issue 11829)

This is necessary in order to support cases where the default viewer is embedded in a *dynamically* created <iframe> element.

In order to also support a use-case where there's *multiple* <iframe> elements (containing default viewers) on the same page, the "webviewerloaded" event now includes a `source` detail parameter such that it's possible to associate an event with the relevant DOM element.
@Snuffleupagus Snuffleupagus changed the title Always dispatch the "webviewerloaded" event at the top-level document (PR 10318 follow-up, issue 11829) Always attempt to dispatch the "webviewerloaded" event at the embedding document (PR 10318 follow-up, issue 11829)up, issue 11829) Apr 22, 2020
@Snuffleupagus Snuffleupagus changed the title Always attempt to dispatch the "webviewerloaded" event at the embedding document (PR 10318 follow-up, issue 11829)up, issue 11829) Always attempt to dispatch the "webviewerloaded" event at the embedding document (PR 10318 follow-up, issue 11829) Apr 22, 2020
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/c77f8d306a23503/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/c77f8d306a23503/output.txt

Total script time: 2.56 mins

Published

@timvandermeij timvandermeij merged commit e23d5f6 into mozilla:master Apr 23, 2020
@timvandermeij
Copy link
Contributor

Thank you for improving this!

@Snuffleupagus Snuffleupagus deleted the webviewerloaded-top branch April 24, 2020 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set locale don't work.
4 participants