Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

When viewing a pdf in external viewer (qpdfview ) in firefox closing pdfviewer, the tab in firefox stll exists.

more options

It is very annoying when I open a mail for example in my comdirect postbox. I use qpdfview on ubuntu 18.04 as external viewer. If I close the external viewer a tab in firefox with no context exists. So when I read some mails, I have to close a lot of tabs in firefox. How can I prevent this ? Often I have more then 6-10 documents . So imaging how boring it is to X all the tabs

It is very annoying when I open a mail for example in my comdirect postbox. I use qpdfview on ubuntu 18.04 as external viewer. If I close the external viewer a tab in firefox with no context exists. So when I read some mails, I have to close a lot of tabs in firefox. How can I prevent this ? Often I have more then 6-10 documents . So imaging how boring it is to X all the tabs

Chosen solution

It's normal when you copy a link that it is just the URL and not all of the HTML of the <a> tag. That does not surprise me.

You probably know, if you click the small download arrow on the PDF viewer's toolbar, it will display the download dialog so you can open the PDF in a different viewer or save it to a safer location is desired. (Example screenshot attached.)

Read this answer in context 👍 1

All Replies (7)

more options

Hi hhgoten, if the new tab opened due to a directive from the page -- for example, having target="_blank" in the link -- then Firefox should close it automatically when displaying the Open/Save/Cancel dialog or following previously saved instructions to use a particular application.

A blank tab can be left behind when the user directs the PDF link to a new tab, for example, by middle-clicking the link.

Is that the pattern you're seeing?

more options

link is like <a id="f1-posteingangDokumente-2-urlAbfrageGelesen" href="/itx/nachrichten/dokumentenabruf/dokNr/552719101/lfdNr/1/Steuermitteilung_WKN_LB1L1J(LBBW_RC_1719_BAS)_vom_23.08.2018719101.pdf" target="_blank" rel="noopener norefferer" class="link link--primary">Steuermitteilung WKN LB1L1J(LBBW RC 17/19 BAS) vom 23.08.2018</a>

more options

That should work, meaning, Firefox should close that tab.

What is your setting for Portable Document Format on the Preferences page? Do you have "Always Ask"?

more options

No , I know about this.

I use :

"Open with qpdfview ( Standard) " in German : "Mit qpdfview öffnen ( Standard) "

Thats why I am surprised . Had thougt , no tab will open than.

more options

Add on. If I copy just the link from the original site, there is no target="_blank" in it . its just like https://kunde.comdirect.de/itx/nachrichten/dokumentenabruf/dokNr/552719101/lfdNr/1/Steuermitteilung_WKN_LB1L1J(LBBW_RC_1719_BAS)_vom_23.08.2018719101.pdf

But inspect element does have target="_blank"

more options

@jscher2000 : Don't put too much work in this ( albeit preferred :-) I can use "preview in firefox" , then it works as supposed. So my problem isn't too big. I switched to qpdfview for some additional feature and if I remember correct, preview did not work in some former Firefox release / older Ubuntu combination. Thanks for your efforts and if you find a solution this would be great.

more options

Chosen Solution

It's normal when you copy a link that it is just the URL and not all of the HTML of the <a> tag. That does not surprise me.

You probably know, if you click the small download arrow on the PDF viewer's toolbar, it will display the download dialog so you can open the PDF in a different viewer or save it to a safer location is desired. (Example screenshot attached.)