| Summary: | [Browser] browser widget prevents part activation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 1.3 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ralf Sternberg
Browser widget is based on IFrame. The IFrame consumes all the mouse (DOM) events and the parent document (RAP application) is completely blind about these events. Thus, when you click on the Browser widget, RAP application (qooxdoo framework) is not informed about this event and the Browser does not gain the focus - part is not activated. Due to "cross-scripting security policy" it is not possible to attach a mouse listener to the IFrame document, if its origin is different than the parent document. To my knowledge, in this case we can't do anything about it - Browser (IFrame) is a "black" hole for all DOM events. Created attachment 151962 [details]
Proposed patch
Here is one "impossible" implementation. It is based on qooxdoo IFrame blocker node. The blocker node is used for Browser mouse down event handling. This implementation has only one "disadvantage" - it's possible to act with Browser document (activate hyperlink for example) if Browser widget is focused.
We decided to close this bug as WONTFIX. It is better to have Browser widget (Browser document hyperlink for example) responsive to first click instead of fixing the issue with the proposed patch that uses first click for widget focusing. |