Re: Blocking showModelessDialog() call



On Oct 31, 10:11 am, Dave Brown <key8...@xxxxxxxxx> wrote:
On Oct 31, 5:03 am, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:





"Dave Brown" <key8...@xxxxxxxxx> wrote in message

news:1193807033.603784.72790@xxxxxxxxxxxxxxxxxxxxxxxxxxx

I've read a bunch of posts and the MSFT KB article which say you can't
catch the javascript call to showModelessDialog() in order to prevent
the dialog from appearing.

However, IE7 seems to be able to block popups from websites which use
showModelessDialog() without the user clicking on anything.

I believe NewWindow3 event, new in IE7, does report such dialogs.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925

Nope, it doesn't :(- Hide quoted text -

- Show quoted text -

Igor - I've actually found one thing which will stop it --
implementing IInternetSecurityManager::ProcessUrlAction(), and
returning URLPOLICY_DISALLOW if the action is URLACTION_SCRIPT_RUN.

The problem is then how to determine which scripts are good and which
are evil? How can you know that a script is about to launch a popup
versus just a script which may read cookies or similar? Even if I
only allow scripts to execute after a click event, I may be disabling
useful scripts from running.

Any ideas?

.



Relevant Pages

  • Re: Does Macintosh read uppercase?
    ... through any browser. ... "Jim Carlock" wrote: ... > Javascript is supposed to be case-sensitive on all platforms, ... >>>> Does Macintosh read upper and lower case scripts? ...
    (microsoft.public.frontpage.programming)
  • Re: Cant refer to innerHTML contents
    ... Since this question (returning javascript via an xmlhttprequest) pops up for everybody who starts with AJAX sooner or later, maybe we should suggest to place this code into the FAQ? ... The only thing that, I believe, needs to be added to it for iCab and IE5.2 is a test to stay out of the function at all since they both execute scripts inserted via innerHTML. ... I think IE5.2 on a mac has gone the way of NN4.xx where it is a dead browser. ...
    (comp.lang.javascript)
  • Re: why add script-tag in header section ?
    ... javascript at the bottom. ... scripts to execute as soon as possible. ... anything to do with Google or Yahoo 8though some of their employees ... may be spouting about such generalizations in blogs) or "modern web ...
    (comp.lang.javascript)
  • Re: Does Macintosh read uppercase?
    ... I was able to successfully navigate to the third form ... >>> Macs seem to be reading the fields ok and most web Bots, ... >>> have to rename the fields and their references in the javascript to all ... >>>>> Does Macintosh read upper and lower case scripts? ...
    (microsoft.public.frontpage.programming)
  • Re: Yahoo - Move Scripts to the Bottom
    ... progressive rendering, and how moving them to the document HEAD ... move scripts from the top to as low in the page as possible. ... I'm thinking about a build system for JavaScript now. ... just makes more sense to bind the behavior in the behavior layer. ...
    (comp.lang.javascript)

Loading