Re: Disable alert dialog?

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
[email protected] wrote:

>On Sunday, October 21, 2012 8:19:50 PM UTC+3, Neil wrote:
>  
>
>>Would an error page do? Set browser.xul.error_pages.enabled to true.
>>    
>>
>Is there a way to skip reporting altogether?
>  
>
I think this will do what you want. It registers (in this case, 
temporarily) an override prompt factory which handles alerting.

http://mxr.mozilla.org/comm-central/source/mozilla/browser/base/content/test/browser_bug356571.js

>I am after batch processing of locally saved HTML pages. I want to have somehow the DOM tree of the HTML page I have loaded. If I get an error page, wouldn't this change the DOM tree (to that of the error page)?
>  
>
Sure, but if you get an alert, it means that the HTML page didn't load, 
so I don't see how you can have its DOM tree...

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.