#15447 closed defect (fixed)

"Open Link in New Window" from the context menu does not fire a wxEVT_WEBVIEW_NEWWINDOW event

Reported by: rc Owned by:
Priority: normal Milestone:
Component: WebView Version: 2.9.5
Keywords: wxWebView, wxEVT_WEBVIEW_NEWWINDOW Cc: senad.jahic@…
Blocked By: Blocking:
Patch: no

Description

Steps to reproduce:

  1. Start the webview sample (from samples/webview/).
  2. Right-click any link.
  3. Select "Open Link in New Window".
  4. Watch nothing happening.

Expected outcome: trigger a wxEVT_WEBVIEW_NEWWINDOW event.

Change History (3)

comment:1 Changed 14 months ago by senj

  • Cc senad.jahic@… added
  • Status changed from new to confirmed

This works as expected on my windows 7, but event is not generated on linux (ubuntu 11.04 and 12.04) and osX (mountain lion).

My problem however is triggering event from javascript (window.open) and again this works only on windows platform.

This is reponse I got from "doublemax" user from wxwidgets forum:

Looking into the sources, i'd say it's not supported under OSX. Under GTK it should probably work.

Unfortunately it does not. You can test it here:
http://pastehtml.com/view/dequzf2nl.html.

Here is the link to forum thread:
http://forums.wxwidgets.org/viewtopic.php?f=23&t=37972

comment:2 Changed 14 months ago by steve_lamerton

Thanks for reporting, I can confirm both of the issues in this ticket although they may actually be separate problems.

comment:3 Changed 14 months ago by SJL

  • Resolution set to fixed
  • Status changed from confirmed to closed

(In [74804]) Handle WebKitWebView create-web-view.

In some cases a new window is signalled using create-web-view rather than new-window-policy-decision-requested and so we need to handle it to emit the correct new window events.

Fixes #15447.

Note: See TracTickets for help on using tickets.