2 Replies Latest reply on Jan 13, 2011 2:02 PM by chatfipa

    AIR: allow scripted window.open popup windows for specified sites ?

    chatfipa

      I'm adding desktop interaction to an existing webapp using AIR.

       

      The webapp allows portlets to be undocked into their own window using a scripted "window.open" call.

      When running the webapp in AIR, the "window.open" call is blocked (window ref returned is "undefined").

      Presumably AIR is detecting the invocation of "window.open" isn't directly linked to the mouse click event.

       

       

      With a "standard" browser, you can configure the popup blocker to allow popups for urls specified as Exceptions.

       

      Is there a way to do this in AIR ?  (either by config or by overriding one of the AIR classes).

      I've looked at using a custom HtmlHost but the popup blocking occurs before the HtmlHost.createWindow () call