Bug 311814
| Summary: | [WPE][Qt6] WPEQtView does not notify when an item gains or loses focus | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | aiswarya.kandoth |
| Component: | WPE WebKit | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
aiswarya.kandoth
WPEQtView does not override Qt's focusInEvent or focusOutEvent. As a result, when an element gains or loses focus the underlying WPEView is never notified with wpe_view_focus_in() or wpe_view_focus_out(). This breaks focus dependent behaviours.
Steps to reproduce:
1. Create a project that uses WPE WebKit Qt6 API, the minibrowser for example.
2. Open a URL with input elements (for example: <input type="text">).
3. Click on the input element.
4. Observe that the JavaScript focus events do not fire.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
aiswarya.kandoth
Proposed fix: https://github.com/WebKit/WebKit/pull/62355