buluozhiri / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

window.open doesn't trigger NewWindowCreated, NewWindowRequest, or PopupCreated #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download OpenWebKitSharp 2.7.0.2301.rar and run Example.exe
2. Navigate to a page that uses window.open() to create a popup
3. Also tried with setting AllowNewWindows=true

What is the expected output? What do you see instead?
It is expected that one of the three events listed below will fire but none do: 
NewWindowCreated, NewWindowRequest, or PopupCreated

What version of the product are you using? On what operating system?
2.7.0.2301, Windows 7 Pro

Please provide any additional information below.
Tested with the attached sample page

Original issue reported on code.google.com by ben...@gmail.com on 13 Mar 2012 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
Confirmed! Maybe 
<webkitbrwoser>.WebView.preferences().setJavaScriptCanOpenWindowsAutomatically(1
) would fix the problem but I haven't tested it yet.

Original comment by tsumalis96@gmail.com on 13 Mar 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Thanks for the quick response. I tried your suggestion and got the same result 
(no events/windows) after calling setJavaScriptCanOpenWindowsAutomatically(1). 
In fact, browser.WebView.preferences().javaScriptCanOpenWindowsAutomatically() 
was already returning 1.

Original comment by ben...@gmail.com on 13 Mar 2012 at 8:56

GoogleCodeExporter commented 9 years ago
Yes you are right. This must be a WebKit bug, which will hopefully be fixed 
soon. I am waiting for Safari 5.2 to upgrade to a newer WebKit engine and Apple 
Application Support files for my next release.

Original comment by tsumalis96@gmail.com on 17 Mar 2012 at 12:14

GoogleCodeExporter commented 9 years ago
Fixed! 
http://code.google.com/p/open-webkit-sharp/downloads/detail?name=OpenWebKitSharp
%202.7.2.rar&can=2&q=

Original comment by tsumalis96@gmail.com on 23 Mar 2012 at 1:23

GoogleCodeExporter commented 9 years ago
Hi, I am using VER 2.9, I am testing my own application and the example 
application. 

Located in "\OpenWebKitSharp 2.9\Examples & Tests\OpenWebKitSharp 
Example\bin\x86\Debug_NET2\Example.exe"

I'm using the website "popuptest.com". I'm not registering 
newwindowcreated/request or popupcreated events. 

Nor are additional windows opening.

Thanks,
-Charles Watkins

Original comment by chris17...@gmail.com on 19 Jul 2012 at 8:31