Bug 19669 - oncontextmenu does not trigger in IFrames when using Carbon API
Summary: oncontextmenu does not trigger in IFrames when using Carbon API
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 02:37 PDT by Michael Seydl
Modified: 2008-06-19 06:29 PDT (History)
1 user (show)

See Also:


Attachments
main page to be loaded (228 bytes, text/html)
2008-06-19 02:37 PDT, Michael Seydl
no flags Details
iframe page (267 bytes, text/html)
2008-06-19 02:38 PDT, Michael Seydl
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ...