| Summary: | Installed BrowserFunctions are available to remote content loaded in iFrames. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Matthew Hatem <Matthew_Hatem> |
| Component: | SWT | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrewd, balfe, bokowski, cbeth, eclipse.felipe, liuj1, liujuny, Matthew_Hatem, mpcarl |
| Version: | 4.1 | ||
| Target Milestone: | 3.8 M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthew Hatem
(In reply to comment #0) > > This behavior is differs between platforms. For IE and Safari browsers, > iFrames do not have access to the installed BrowserFunction but they do have > access to the "window.external.callJava" function. For Mozilla browsers, > iFrames have access to the installed BrowserFunctions and the > "window.external.callJava" function. > Since Mozilla browsers 1.9.2, frames/iframes have access to the installed BrowserFunctions, however frames/iframes with remote content does not have access to the BrowserFunction. I've logged bug 343979 to deal specifically with the issue of prohibiting arbitrary JS from accessing registered BrowserFunctions directly via window.external.callJava. I've split this part out into a separate bug because it will be investigated for the 3.7 release, while the aspect of limiting a BrowserFunction's availability to specific frames/iframes will not. Fixed > 20120309 with new constructor BrowserFunction(browser, name, top, frameNames). Patch: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=65025a7edc821ab692899a998f097ee59dcca651 . |