Repository navigation
servo: Add support for system focus handling - #48364
Conversation
|
🔨 Triggering try run (#36007974767) for Linux (WPT) |
|
🔨 Triggering try run (#36011291090) for OpenHarmony |
|
🔨 Triggering try run (#36011307555) for Android |
|
Test results for linux-wpt from try job (#36007974767): Flaky unexpected result (34)
Stable unexpected results that are known to be intermittent (9)
Stable unexpected results (3)
|
|
|
|
|
|
|
Instead of letting web content decide whether or not a `WebView` is "focused," have the embedder tell Servo whether or not the `WebView` has system focus and separate it from the concept of the focused browsing context. This makes Servo match the model that the specification describes. Now, when a `WebView` does not have system focus or a frame is not active its selection highlight is drawn in a different color (hardcoded for now). In addition, specification-compliant behavior is implemented around system focus. This means that when a `Document` gains system focus proper focus events are fired and `hasFocus` starts to return the correct value. This allows properly implementing the concept of the `WebView` "selected for interaction" in WebDriver versus the one with system focus. We were conflating the two before. There are API changes here. Now instead of calling `focus()` or `blur()` on the `WebView` embedders are supposed to inform the `WebView` when it receives system focus. Signed-off-by: Martin Robinson <[email protected]>
|
🔨 Triggering try run (#36015581464) for OpenHarmony |
|
| Project | Servo |
| Branch | 48364/PR |
| Testbed | HUAWEI Mate 80 Pro |
⚠️ WARNING: Truncated view!The full continuous benchmarking report exceeds the maximum length allowed on this platform.
🐰 View full continuous benchmarking report in Bencher
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
|
✨ Try run (#36015581464) succeeded. |
jdm
left a comment
There was a problem hiding this comment.
I have read the word focus too much and it doesn't look like a real word any more.
|
Hmm, two timeouts for /html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html in this PR. |
Signed-off-by: Martin Robinson <[email protected]>
…hen closing a window Signed-off-by: Martin Robinson <[email protected]>
|
Okay. I think I've narrowed this down to two separate issues:
|
|
🔨 Triggering try run (#36124177456) for Linux (WPT), OpenHarmony |
|
| Project | Servo |
| Branch | 48364/PR |
| Testbed | HUAWEI Mate 60 Pro |
⚠️ WARNING: Truncated view!The full continuous benchmarking report exceeds the maximum length allowed on this platform.
🐰 View full continuous benchmarking report in Bencher
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
|
Test results for linux-wpt from try job (#36124177456): Flaky unexpected result (32)
Stable unexpected results that are known to be intermittent (13)
|
|
|
Instead of letting web content decide whether or not a `WebView` is "focused," have the embedder tell Servo whether or not the `WebView` has system focus and separate it from the concept of the focused browsing context. This makes Servo match the model that the specification describes. Now, when a `WebView` does not have system focus or a frame is not active its selection highlight is drawn in a different color (hardcoded for now). In addition, specification-compliant behavior is implemented around system focus. This means that when a `Document` gains system focus proper focus events are fired and `hasFocus` starts to return the correct value. This allows properly implementing the concept of the `WebView` "selected for interaction" in WebDriver versus the one with system focus. We were conflating the two before. There are API changes here. Now instead of calling `focus()` or `blur()` on the `WebView` embedders are supposed to inform the `WebView` when it receives system focus. Testing: This gets one new WPT test passing. Fixes: servo#9482. Fixes: servo#44308. Fixes: servo#48254. --------- Signed-off-by: Martin Robinson <[email protected]>
Instead of letting web content decide whether or not a `WebView` is "focused," have the embedder tell Servo whether or not the `WebView` has system focus and separate it from the concept of the focused browsing context. This makes Servo match the model that the specification describes. Now, when a `WebView` does not have system focus or a frame is not active its selection highlight is drawn in a different color (hardcoded for now). In addition, specification-compliant behavior is implemented around system focus. This means that when a `Document` gains system focus proper focus events are fired and `hasFocus` starts to return the correct value. This allows properly implementing the concept of the `WebView` "selected for interaction" in WebDriver versus the one with system focus. We were conflating the two before. There are API changes here. Now instead of calling `focus()` or `blur()` on the `WebView` embedders are supposed to inform the `WebView` when it receives system focus. Testing: This gets one new WPT test passing. Fixes: servo#9482. Fixes: servo#44308. Fixes: servo#48254. --------- Signed-off-by: Martin Robinson <[email protected]>
Instead of letting web content decide whether or not a
WebViewis"focused," have the embedder tell Servo whether or not the
WebViewhassystem focus and separate it from the concept of the focused browsing
context. This makes Servo match the model that the specification
describes.
Now, when a
WebViewdoes not have system focus or a frame is notactive its selection highlight is drawn in a different color (hardcoded
for now). In addition, specification-compliant behavior is implemented
around system focus. This means that when a
Documentgains systemfocus proper focus events are fired and
hasFocusstarts to return thecorrect value.
This allows properly implementing the concept of the
WebView"selectedfor interaction" in WebDriver versus the one with system focus. We were
conflating the two before.
There are API changes here. Now instead of calling
focus()orblur()on the
WebViewembedders are supposed to inform theWebViewwhen itreceives system focus.
Testing: This gets one new WPT test passing.
Fixes: #9482.
Fixes: #44308.
Fixes: #48254.