| Summary: | [Browser Widget] Java-Javascript Bridge does not work with SVG documents | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Mat Booth <mat.booth> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | ||||||||
| Version: | 1.3 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Mat Booth
Created attachment 162299 [details]
RCP/RAP Single-Sourced Sample Application
Run this application on RCP to see correct behaviour.
Run this application on RAP to see the problem.
Created attachment 162309 [details]
Screenshot of the problem
As you can see, the RAP application on the left, throws an exception saying the function is not defined, but the RCP application on the right works correctly.
I've just took a look at your screen-shot attached to the bug. It seems that the RAP application is starter from localhost (127.0.0.1), but the page with SVG in the Browser widget is from different domain ( www.matbooth.co.uk). Due to browser security restrictions, it is not possible to register a javascript function in a page, located in a different domain than the RAP application. This is a limitation of BrowserFunction support, but we can't do anything about it - browser security policies. |