Closed Bug 779513 Opened 12 years ago Closed 7 years ago

Infinite Loop of opening tabs

Categories

(Firefox :: File Handling, defect)

16 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 218257

People

(Reporter: mail.recycling, Unassigned)

References

()

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/16.0 Firefox/16.0
Build ID: 20120801042010

Steps to reproduce:

In my online banking website, I clicked on a link that leads to a .pdf download which opened the dialog "open file with.... [select a program]". Out of curiosity, I selected "Firefox" instead of Mac OS X's "Preview" or Adobe Reader. I have the checkbox activated that says "Always choose this option". Then I clicked "ok".


Actual results:

The setting caused Firefox to open one blank tab after another. This could only be stopped by exiting  the program or terminating the process. It's a little bit like with the early MS Internet Explorers that you could crash by creating popups in an infinite loop. Also checked the behaviour in Aurora. It's the same issue there.


Expected results:

Firefox should have either displayed the PDF or detected that this will become an infinite loop and prevent it from happening by showing the "open with..." dialog again.
Component: Untriaged → File Handling
Link markup is as follows: <a target="_blank" onclick="changeLocation('/tx', '[int_1]', '[int_2]')" href="/tx/pdf/.pdf?dokNo=[int_3]&amp;lfdNo=1&amp;target=dpwt.req/[filename].pdf">
[Link_title]
</a>

For privacy reasons, I have replaced GET params with [int_x] (numeric) or a description (text string).
I can reproduce this issue with the latest Aurora (build ID: 20131031004003) on Mac OS X 10.6.8 in 32-bit mode.

If I go to Preferences -> Applications, and select for pdf files the "Always ask" option, and then open https://www.comdirect.de/cms/media/corp0058.pdf I can see the "open file with.... [select a program]" dialog. Then I selected "Firefox Aurora" to open the file and activated the "Do this automatically for files like this from now on" checkbox. After clicking OK, I can see the faulty behavior described in comment 0.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can reproduce on Windows 10, just happened to me this morning without me realising it, it drained all the memory of my computer.
See Also: → 218257
The same problem occurs if you double-click a desktop "url" icon in Linux.  
It happens with an ordinary https url (nothing to do with PDFs):

1. Create a file in $HOME/Desktop/Test.url containing the following two lines:

[InternetShortcut]
URL=https://www.mozilla.org/

(an icon should appear on your X desktop)

2. Double-click on the icon


However, running "firefox https://www.mozilla.org/" in a terminal does not mis-behave.
=> So something in the way firefox is notified of "clicking" a link is different.
Attached image amusing ff screen shot
Status: NEW → RESOLVED
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Closed: 7 years ago
Resolution: --- → DUPLICATE
See Also: 218257
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: