Open Bug 1795590 Opened 3 years ago Updated 2 years ago

PDFs open in different windows if you click on different window when batch opening PDFs - related to bug 1792466 (Video)

Categories

(Firefox :: File Handling, defect, P5)

Firefox 105
defect

Tracking

()

People

(Reporter: anzepintar, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached video Video about the bug.mp4

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

Clicking on different firefox window when batch opening PDFs when the first PDF is loaded and the remaining PDFs are still loading. Related to bug 1792466

Actual results:

First PDF opens in one window and other open in second window.

Expected results:

All PDFs should open in the window, which was last in focus before opening PDFs.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

It's likely a file handling issue rather than a pdf.js one: pdf.js renders the pdf but doesn't "choose" the window/tab where to render it.

Component: PDF Viewer → File Handling

In BrowserContentHandler I see
handURIToExistingBrowser (resource:///modules/BrowserContentHandler.jsm#941)
dch_handle (resource:///modules/BrowserContentHandler.jsm#1188)
with urilist.length == 1

See https://bugzilla.mozilla.org/show_bug.cgi?id=1792466#c9, the problem is that Firefox in invoked by Windows multiple times, one per each file selected, and because of that we don't know which window was used for the first pdf or for the whole operation, it's totally separate operations from our point of view.

This is a lower priority than bug 1792466, since apart from the annoyance it's not a huge problem that pdfs are opened in different windows.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
See Also: → 1792466
Depends on: 1797979
Attachment #9384730 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: