Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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.

글쓴이 mirrormirror 수정일시

모든 댓글 (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.