Can execute JavaScript (via JS from the opener) in a tab that is displaying a modal prompt

UNCONFIRMED
Unassigned

Status

()

P5
normal
UNCONFIRMED
7 years ago
4 months ago

People

(Reporter: jochen, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 597344 [details]
test case

When a tab displays a modal prompt (i.e. alert/prompt/confirm), it is still possible to execute javascript in that tab while the prompt is open. Since it's a modal prompt, it should not be possible.

This bug is similar to 360872

To reproduce, unpack the attached tgz, open test.html and click run. It'll open test2.html in a new window which in turn shows an alert() in its onload handler. test.html then executes a function in test2.html which should not be possible.

Comment 1

7 years ago
Yes, this is similar to bug 360872, bug 637264.
Component: Untriaged → DOM
Product: Firefox → Core
QA Contact: untriaged → general
Summary: Can execute JavaScript in a tab that is displaying a modal prompt → Can execute JavaScript (via JS from the opener) in a tab that is displaying a modal prompt
Version: 12 Branch → Trunk
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.