Closed Bug 1329465 Opened 8 years ago Closed 8 years ago

Add limit to window.open()

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

50 Branch
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1310659

People

(Reporter: mystiquewolf, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0 Build ID: 20161208153507 Steps to reproduce: Make an HTML document with the following code: http://pastebin.com/2qKd149H Click the button. Imagine if it were 300. Guess you will need much RAM. Chrome opens only the first tab. Actual results: Many tabs opened. Expected results: Maybe there should be a limit like (not Chrome's one) 10 tabs or 7 tabs. What site would need more than that?
Component: Untriaged → DOM
Product: Firefox → Core
Group: core-security → dom-core-security
Pretty sure adding a limit is a dupe of one of the "eviltraps" mitigations. Would be a great idea.
Blocks: eviltraps
Group: dom-core-security
Severity: normal → enhancement
Priority: -- → P3
See Also: → 1310659
We have a limit if window.open() opens popups rather than tabs. We should apply the same limit to tabs.
(In reply to Masatoshi Kimura [:emk] from comment #2) > We have a limit if window.open() opens popups rather than tabs. We should > apply the same limit to tabs. Hm, popup blocker didn't block the popup somehow.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.