Closed Bug 867725 Opened 11 years ago Closed 11 years ago

Buttons in b2g browser's slow script dialog don't work

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

defect
Not set
normal

Tracking

(blocking-b2g:tef+)

RESOLVED DUPLICATE of bug 830010
blocking-b2g tef+

People

(Reporter: justin.lebar+bug, Assigned: benfrancis)

Details

I just got the slow-script dialog.  When I click on either one of the buttons (continue / stop script), logcat says

E/GeckoConsole(  144): [JavaScript Error: "TypeError: evt is undefined" {file: "app://browser.gaiamobile.org/js/modal_dialog.js" line: 178}]

The only way out is to close the browser.
blocking-b2g: --- → tef?
Summary: Buttons in slow script dialog don't work → Buttons in b2g browser's slow script dialog don't work
blocking-b2g: tef? → tef+
Investigating.
Assignee: nobody → bfrancis
I created a test case at http://people.mozilla.org/~bfrancis/slow.html which should trigger the slow script dialog.

I can't reproduce the bug on 1.0.1 on inari, 1.1 on leo or mozilla-central on unagi using today's nightly builds. Both buttons behave as expected.

Justin, do you have more precise steps to reproduce?

Flagging qawanted to try to find STR but otherwise I'd suggest reconsidering tef+ if it's not consistently reproduceable.
Keywords: qawanted
Your testcase works fine for me, Ben.

I'm sorry I didn't note the webpage I was on, or how I got it to trigger the slow-script dialog.  I think it involved Gecko hackery, though.

But whatever causes bug 830010 seems like a good candidate for this bug too...
Yes this bug looks like a dupe of bug 830010

The line of code at which the exception is thrown is https://github.com/mozilla-b2g/gaia/blob/master/apps/browser/js/modal_dialog.js#L178

The browser keeps track of mozbrowsershowmodalprompt events in an array keyed by origin. The event is cleared from the array when the user selects the confirm or cancel button (continue or stop), if the tab is closed or the tab crashes. The exception indicates that at the point at which the user is touching the confirm button an event does not exist for that origin in the array.

I can't figure out how to get the browser in this state.
What if the dialog is raised by a background tab, and then that tab crashes?
Let's dupe it then.
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.