Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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.

Modificato da mirrormirror il

Tutte le risposte (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.