Bug 19669

Summary: oncontextmenu does not trigger in IFrames when using Carbon API
Product: WebKit Reporter: Michael Seydl <michael.seydl>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Major CC: michael.seydl
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
main page to be loaded
none
iframe page none

Description Michael Seydl 2008-06-19 02:37:09 PDT
When creating a WebView via HIWebViewCreate and loading a page which includes an iframe, oncontextmenu javascript events of the page inside the iframe will not be processed.

Only the page inside of the mainFrame do receive the javascript event "oncontextmenu", but none of its children inside iframes. 

Tested with own implementation and CarbonWeb (from the Apple SDK) linked against the latest WebKit. 

Sample Attached.
Comment 1 Michael Seydl 2008-06-19 02:37:49 PDT
Created attachment 21833 [details]
main page to be loaded
Comment 2 Michael Seydl 2008-06-19 02:38:09 PDT
Created attachment 21834 [details]
iframe page
Comment 3 Michael Seydl 2008-06-19 03:01:16 PDT
Sry forgot something:

Steps to reproduce:
1.) Load test.html inside a WebView created via HIWebViewCreate 
2.) Right-Click the text inside the iframe

Expected behavior:
1.) Alert box pops up
2.) Page navigates to a new webpage (via window.location)

Experienced behavior:  
1.) Does nothing. 
Comment 4 Michael Seydl 2008-06-19 03:01:54 PDT
Sry forgot something:

Steps to reproduce:
1.) Load test.html inside a WebView created via HIWebViewCreate 
2.) Right-Click the text inside the iframe

Expected behavior:
1.) Alert box pops up
2.) Page navigates to a new webpage (via window.location)

Experienced behavior:  
1.) Does nothing. 
Comment 5 Michael Seydl 2008-06-19 06:29:02 PDT
New results after another test-run: 

1.) Right-Click into IFrame
2.) Native context menu appears
3.) Right-Click inside the IFrame or ContextMenu
4.) Make context menu disapear (somehow ... left click into the iframe or click on the contextmenu)
5.) oncontextmenu gets triggered.

los weirdos ...