Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

bug: error message in error console if i reload a page while a javascript alert() box is displayed.

more options

bug: i have an alert("haha"); displayed from an inpage button with javascript, and while the alert message is still open, if i do a refresh i get this error in the error console:

Timestamp: 2/5/2012 12:27:27 μμ Error: uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 457" data: no]

it happens on every site that shows an alert dialogue box

online example: w3schools example

press the "show alert box" button and as the alert box is open do a page refresh.

bug: i have an alert("haha"); displayed from an inpage button with javascript, and while the alert message is still open, if i do a refresh i get this error in the error console: Timestamp: 2/5/2012 12:27:27 μμ Error: uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 457" data: no] it happens on every site that shows an alert dialogue box online example: [http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert w3schools example] press the "show alert box" button and as the alert box is open do a page refresh.

Upravil uživatel mirrormirror dne

Všechny odpovědi (1)

more options

I didn't realize you could reload in that situation; I thought alert() was application modal. Hmmm...

In Firefox 13 beta 4 on Windows 7 I still see the error:

Timestamp: 5/22/2012 7:41:13 PM
Error: uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 457" data: no]

I don't think it has any negative consequence. Did you just want to get it on someone's list to look at, or is it a problem for your page/application?

I looked in Bugzilla briefly and these sound related:

Bug 655181 – modal dialog (e.g. via window.alert()) opened with meta refresh tag refresh page in background causes this uncaught exception: "prompt aborted by user" .. resource://gre/components/nsPrompter.js

Bug 717248 – Pressing backspace on alert() modal closes alert and triggers "back" functionality without firing onkeydown

Both note the error when navigating the tab in different ways with the alert displayed. But... not much attention to them so far.