| Summary: | requestPointerLock does not cancel existing pointer capture | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | James Howard <jameshoward> | ||||
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | a_protyasha, jameshoward, karlcow, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | Safari 17 | ||||||
| Hardware: | Mac (Apple Silicon) | ||||||
| OS: | macOS 13 | ||||||
| Attachments: |
|
||||||
|
Description
James Howard
2023-09-19 17:36:32 PDT
Out of curiosity; are other browser engines passing this modified layout test? (In reply to Abrar Rahman Protyasha from comment #1) > Out of curiosity; are other browser engines passing this modified layout > test? (it seems like Chromium is; and Gecko?) Yeah, Gecko passes too (117.0). WebKit is the only one that fails. I believe this is a real bug, but without investigating too far, I can say that simply adding a call to `PointerCaptureController::pointerLockWasApplied()` in `PointerLockController::didAcquirePointerLock()` does not fix things. We should look into all possible ways to acquire pointer lock and unify the codepaths where we need to disengage pointer capture. Yeah I tried the same thing as well. I don’t think pointerLockWasApplied is doing what it needs to do. I should note that this bug isn’t a big issue for me personally. I simply found it by code inspection. Sure! But is a real bug (and a potential WPT failure) nonetheless, if someone were to change the WPT to be more in-line with the spec. (Thanks for catching this, btw!) I'm importing this into our internal bug tracker, but feel free to work on this as you see fit. Just let me know if you're about to submit a patch so that we don't duplicate efforts. Sure if you want to take this I'd appreciate it. I can help review since I'm not familiar with the surrounding code and tests. (In reply to James Howard from comment #11) > Sure if you want to take this I'd appreciate it. I can help review since I'm > not familiar with the surrounding code and tests. err, I am *now* familiar with the surrounding code and tests. :) |