bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Feature Request: script timeout when using long scripts.

UNCONFIRMED
Unassigned

Status

()

Core
DOM
P5
enhancement
UNCONFIRMED
12 years ago
23 days ago

People

(Reporter: Adrian Sweeney, Unassigned)

Tracking

1.8 Branch
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

when using the view formatted source extenstion, which I need to use to work on a specific bug in an application I now get tiemouts with the window as it is using javascript to process the page for me.  What I'm talkign about is the "Would you like to stop this script message", Cancel / Continue.

What I would like to see is the ability to add certain scripts to a list of valid scripts that you allow to run for longer periods of time.  

For example

Type: URI, Time Extension
Extension: View formatted Source, x3
HTTP: mymachine/index.html, infinite
HTTP: mymachine/scripts/myscript.js, x2

the above shows three scripts that have been configured to be allowed to run longer than the allowed time.  

The first one states that the extension view formatted source can run 3x longer than a normal script.

The second states that this page and run for ever I just need it to keep running 
The Third would state that a specific script on my machine can run twice as long as normal before a popup box would be displayed.

Also this is a bit that should be secured so that a script can not add itself to  the allowed list.



Reproducible: Couldn't Reproduce
See also bug 311994
Assignee: nobody → general
Component: View Source → DOM
Product: Firefox → Core
QA Contact: view.source → ian
Version: unspecified → 1.8 Branch

Comment 2

12 years ago
Sounds like there's a bug in the View Formatted Source extension: it should use explicit setTimeouts to avoid hanging the browser and/or making the slow-script dialog appear.
This would of course require some means to determine "which" script is running longer than the timeout. (Currently, all we know is that the tab becomes current with the popup saying "A script on this page" etc.) Either show the name of the script(s?) in the popup, or a third button "Increase the timeout on this script" (or both). Instead of relative timeouts ("x2", "x3", "infinite") use absolute values? (undefined=default, 30 = 30 seconds, 0 = forever, etc.)
Assignee: general → nobody
QA Contact: ian → general

Updated

23 days ago
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.