Skip to content

[GENERIC viewer] Remove the errorWrapper UI#15533

Merged
timvandermeij merged 2 commits into
mozilla:masterfrom
Snuffleupagus:rm-errorWrapper
Oct 1, 2022
Merged

[GENERIC viewer] Remove the errorWrapper UI#15533
timvandermeij merged 2 commits into
mozilla:masterfrom
Snuffleupagus:rm-errorWrapper

Conversation

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

In the Firefox PDF Viewer this has never been used, with the error message simply printed in the web-console, and (somewhat) recently we've also updated the viewer code to avoid bundling the relevant code there. Furthermore, in the Firefox PDF Viewer we're not even display the browser fallback bar any more; see https://bugzilla.mozilla.org/show_bug.cgi?id=1705327.

Hence it seems slightly strange to keep this UI around in the GENERIC viewer, and this patch proposes that we simply remove it to simplify/unify the relevant code in the viewer. In particular this also allows us to remove a couple of l10n-strings, which have always been unused in the Firefox PDF Viewer.

In the Firefox PDF Viewer this has never been used, with the error message simply printed in the web-console, and (somewhat) recently we've also updated the viewer code to avoid bundling the relevant code there. Furthermore, in the Firefox PDF Viewer we're not even display the *browser* fallback bar any more; see https://bugzilla.mozilla.org/show_bug.cgi?id=1705327.

Hence it seems slightly strange to keep this UI around in the GENERIC viewer, and this patch proposes that we simply remove it to simplify/unify the relevant code in the viewer. In particular this also allows us to remove a couple of l10n-strings, which have always been unused in the Firefox PDF Viewer.
Given that the Firefox PDF Viewer uses the *browser* print UI, this fallback l10n-string isn't necessary in the MOZCENTRAL build.
@Snuffleupagus
Copy link
Copy Markdown
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link
Copy Markdown

pdfjsbot commented Oct 1, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/2f3bf7622047f20/output.txt

@pdfjsbot
Copy link
Copy Markdown

pdfjsbot commented Oct 1, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/2f3bf7622047f20/output.txt

Total script time: 2.19 mins

Published

@timvandermeij timvandermeij merged commit beff913 into mozilla:master Oct 1, 2022
@timvandermeij
Copy link
Copy Markdown
Contributor

Sounds like valid reasons to me; thanks!

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.

3 participants