Closed Bug 355904 Opened 18 years ago Closed 18 years ago

Javascript alert dialogs are modal.

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 59314

People

(Reporter: nat, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7

The content of a page can create a modal dialog. This prevents the user from switching tabs or accessing preferences to disable javascript. As you can see in the sample link, this is somewhat annoying.

This could instead be implemented as a non-modal dialog, a tab-modal dialog, or some sort of in-the-tab overlay.

Note that this bug can cause data loss. If you are filling out a form in one tab, and browse to some sort of <script>while(1) { alert("yuo = pwned"); }</script> website in another tab, you will not be able to access your form data or submit the form.

Reproducible: Always

Steps to Reproduce:
1. Visit a page that calls the "alert" javascript function.

Actual Results:  
You are prevented from doing anything with the firefox window other than pressing the "ok" button in the dialog, and there is no opportunity to do something else before the page can pop up another dialog.

Expected Results:  
Reguardless of exactly how an "alert" is displayed, the page content should not prevent the user from accessing the tab or menu bars.
OS: Linux → All
Hardware: PC → All

*** This bug has been marked as a duplicate of 59314 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.