Closed
Bug 865336
Opened 12 years ago
Closed 12 years ago
Long running scripts are just stopped
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 921519
People
(Reporter: nick, Unassigned)
Details
Attachments
(1 file)
112.73 KB,
application/zip
|
Details |
In the browser, the user is warned when a script is taking too long to execute. In an app, there is no choice or warning. This means that if a page is stuck in a long running script block, the rest of the app will never be rendered. A simple while (true); will do the trick.
STR:
1. Download attachment
2 [review]. unzip test_case.zip
3. get test device and machine you'll serve assets from on same network
4. get server's local ip address
5. python serve.py
6. on device, in browser, navigate to http://[server's local ip]:3000/install.html
7. install test case
8. on device, in browser, navigate to http://[server's local ip]:3000/
9. Notice how warning appears about long running script (also note the ampersand in "& Don't ask me again")
10. close browser application
11. open test case app
12. Notice how no html is ever rendered, yet you are not warned about long running scripts.
This can be painful to debug apps that appear fine on the simulator, but take longer to run on device. It's not made clear that the app has a long running script. I initially suspected failures in the graphics layer because of the failed rendering.
Updated•12 years ago
|
Component: Gaia → Gaia::Browser
Comment 1•12 years ago
|
||
Jason, we show the "long running script" dialog when the page is loaded in the browser, but not when it's part of an app. I'm moveing to b2g::general until we are sure how to fix that (this may need some platform pieces).
Component: Gaia::Browser → General
Reporter | ||
Comment 2•12 years ago
|
||
For reference, in my description by browser I mean the browser app on device. The script was not long running on desktop, but it was on device. I suppose this has more to do with hardware performance than differing thresholds for long running scripts between the two. Good thing the app I found this on was hosted, so I could also test it in the device browser, but if this happened in a packaged app, I'm not sure how I would have found it. :(
Reporter | ||
Updated•12 years ago
|
blocking-b2g: --- → koi?
Comment 3•12 years ago
|
||
Naveed,
Please check if this is a JSE issue and reassign appropriately.
Flags: needinfo?(nihsanullah)
Comment 4•12 years ago
|
||
Will consider for 1.3 since koi FC has already been done.
blocking-b2g: koi? → 1.3?
Comment 5•12 years ago
|
||
(In reply to Preeti Raghunath(:Preeti) from comment #4)
> Will consider for 1.3 since koi FC has already been done.
This likely isn't happening anytime soon for any release, so I'm clearing the nom.
blocking-b2g: 1.3? → ---
Comment 6•12 years ago
|
||
This is a dup and was already fixed. \o/
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Updated•11 years ago
|
Flags: needinfo?(nihsanullah)
You need to log in
before you can comment on or make changes to this bug.
Description
•