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

[Firefox] Restore opening of PDF attachments (issue 17353, bug 1867764) #17363

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Dec 1, 2023

This unfortunately broke in PR #17060, since I had completely forgotten about https://bugzilla.mozilla.org/show_bug.cgi?id=1632644#c5 when writing that patch.
The easiest solution, while slightly unfortunate, seems to be to add a couple of non-standard hash parameters specifically for the PDF attachment use-case in the Firefox PDF Viewer. (Note that we cannot use "nameddest" here, since we also need to support the stringified destination-Array case.)

Fixes #17353

@Snuffleupagus Snuffleupagus force-pushed the issue-17353 branch 2 times, most recently from 2628694 to d7271c4 Compare December 1, 2023 11:13
@Snuffleupagus Snuffleupagus changed the title [Firefox] Re-store opening of PDF attachments (issue 17353) [Firefox] Restore opening of PDF attachments (issue 17353) Dec 1, 2023
This unfortunately broke in PR 17060, since I had completely forgotten about https://bugzilla.mozilla.org/show_bug.cgi?id=1632644#c5 when writing that patch.
The easiest solution, while slightly unfortunate, seems to be to add a couple of non-standard hash parameters specifically for the PDF attachment use-case in the Firefox PDF Viewer. (Note that we cannot use "nameddest" here, since we also need to support the stringified destination-Array case.)
@marco-c
Copy link
Contributor

marco-c commented Dec 1, 2023

@Snuffleupagus if this is a regression in Firefox, could you open a Bugzilla bug so we can track it?

@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Dec 1, 2023

if this is a regression in Firefox, could you open a Bugzilla bug so we can track it?

Is that still necessary even if I don't believe that this requires uplifting?

Please note that this regression doesn't mean a total loss of functionality, a PDF attachment will just fallback to trigger the (browser) save-dialog rather than being opened in a new tab.

@marco-c
Copy link
Contributor

marco-c commented Dec 1, 2023

It would be ideal in general to file a bug whenever there is a regression (even if severity will be low, S3 or S4), so we have more complete data we can use to identify changes that caused regressions and changes that didn't and for statistic purposes.

@Snuffleupagus Snuffleupagus changed the title [Firefox] Restore opening of PDF attachments (issue 17353) [Firefox] Restore opening of PDF attachments (issue 17353, bug 1867764) Dec 1, 2023
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/7c5bab7b84cf1f0/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/a8ce0a3826e6ab6/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/7c5bab7b84cf1f0/output.txt

Total script time: 5.50 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/a8ce0a3826e6ab6/output.txt

Total script time: 16.38 mins

  • Integration Tests: Passed

@Snuffleupagus Snuffleupagus merged commit a1d84f5 into mozilla:master Dec 1, 2023
7 checks passed
@Snuffleupagus Snuffleupagus deleted the issue-17353 branch December 1, 2023 17:12
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.

4 participants