搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Checking the 'prevent this page from creating additional dialogs' box stops executing javascript on the next 'alert' statement

  • 2 个回答
  • 11 人有此问题
  • 7 次查看
  • 最后回复者为 the-edmeister

more options

Hi,

I'm currently working on a javascript script. For debugging purposes I have it display lots of alerts so I can see what it's doing.

However, when I check the 'prevent this page from creating additional dialogs' box on one of the alerts, Firefox then stops executing the javascript on the next 'alert' statement in the script.

---

I get this error in Firebug:

Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.alert] [Break On This Error]

alert(responseData);

---

If I do not check the 'prevent this page from creating additional dialogs' box, the script works fine.

If I disable the Firebug extension the problem persists, so it cannot be a Firebug problem.

Is this a bug in Firefox? I'd appreciate any help.

Hi, I'm currently working on a javascript script. For debugging purposes I have it display lots of alerts so I can see what it's doing. However, when I check the 'prevent this page from creating additional dialogs' box on one of the alerts, Firefox then stops executing the javascript on the next 'alert' statement in the script. --- I get this error in Firebug: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.alert] [Break On This Error] alert(responseData); --- If I do not check the 'prevent this page from creating additional dialogs' box, the script works fine. If I disable the Firebug extension the problem persists, so it cannot be a Firebug problem. Is this a bug in Firefox? I'd appreciate any help.

由Stanzi1791于修改

所有回复 (2)

more options

Someone may reply, but you may have more success asking elsewhere, maybe on a mozillazine forum.

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.