Closed Bug 693197 Opened 13 years ago Closed 13 years ago

Javascript alerts from the Scratchpad disable timeouts and intervals from the current tab

Categories

(Toolkit :: General, defect)

7 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 647727

People

(Reporter: IceMetalPunk, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238

Steps to reproduce:

While working on my website, I used the Scratchpad to alert() something with my site in the active tab. The content of the alert() didn't matter, and it also happens with prompt() and confirm(). As long as a dialog was created from the Scratchpad, it triggered the bug.


Actual results:

After the dialog, any timers created by setTimeout() or setInterval() in the then-active tab were completely ignored. As in, they returned a valid ID, but the code/functions in them never executed anymore. Refreshing or switching URLs and returning did nothing. The only way to fix it and get the timers working again was to close the tab and open a new one.


Expected results:

The timers should have triggered as normal.
Confirmed on
http://hg.mozilla.org/mozilla-central/rev/b4da2d439cbc
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111009 Firefox/10.0a1 ID:20111009031012

If I set prompts.tab_modal.enabled to false, it works.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 59314
Regression window(cached m-c hourly)
Works:
http://hg.mozilla.org/mozilla-central/rev/3fd821a55f6d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11pre) Gecko/20110201 Firefox/4.0b11pre ID:20110201185917
Fails:
http://hg.mozilla.org/mozilla-central/rev/a55b45fb3d7c
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11pre) Gecko/20110201 Firefox/4.0b11pre ID:20110201194918
Pushlog;
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3fd821a55f6d&tochange=a55b45fb3d7c
Component: Developer Tools → General
Keywords: regression
Product: Firefox → Toolkit
QA Contact: developer.tools → general
Presumbly the same issue as bug 647727?
Yes, it's the same underlying cause.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
in local build:
Built from 835b313007b4 : fails
Built from 3fd821a55f6d : works

Triggered by
835b313007b4	Justin Dolske — Bug 621764 - tab-modal prompt in Gmail eventually triggers slow-script dialog for nsPrompter.js. r=mrbkap, sr=jst, a=blocker
No longer blocks: 59314
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: