Repository navigation
fix: clear device metrics overrides when a DevTools client disconnects - #52946
Merged
Merged
Conversation
7 tasks done
jkleinsc
previously requested changes
Aug 19, 2026
jkleinsc
left a comment
Member
There was a problem hiding this comment.
new test has typescript errors that need to be resolved.
The namespace import is not constructable under tsconfig.spec.json (nodenext implies esModuleInterop), and new-cap rejects `new ws()`.
codebytere
approved these changes
Aug 23, 2026
codebytere
enabled auto-merge (squash)
August 23, 2026 09:18
MarshallOfSound
approved these changes
Aug 24, 2026
|
Release Notes Persisted
|
reachjalil
added a commit
to different-ai/openwork
that referenced
this pull request
Oct 7, 2026
Electron 43.5 restores a page's view size when a DevTools client that set Emulation.setDeviceMetricsOverride disconnects without clearing it (electron/electron#52946). Since dev moved from Electron 43.2.0 to 43.7.7 (#5535), closing the capture client while building the world undid the leftover 1440x900 viewport before the test body ran, so the spec failed before the tab was selected. Keep the client connected until the world is disposed. A client that stays connected still leaves the page laid out at its capture size inside the panel, which is the case selecting the tab must recover. Signed-off-by: Jalil <[email protected]>
reachjalil
added a commit
to different-ai/openwork
that referenced
this pull request
Oct 8, 2026
* fix(browser): keep native pages contained in their pane Signed-off-by: Jalil <[email protected]> * fix(browser): cover geometry and background transition races Signed-off-by: Jalil <[email protected]> * fix(browser): retain viewport recovery during queued resets Signed-off-by: Jalil <[email protected]> * test(browser): verify initial resize with divider focus Signed-off-by: Jalil <[email protected]> * test(browser): use the command palette's current placeholder #5159 renamed the root palette placeholder to "Search actions and settings…". Signed-off-by: Jalil <[email protected]> * test(browser): keep the capture client connected in the viewport world Electron 43.5 restores a page's view size when a DevTools client that set Emulation.setDeviceMetricsOverride disconnects without clearing it (electron/electron#52946). Since dev moved from Electron 43.2.0 to 43.7.7 (#5535), closing the capture client while building the world undid the leftover 1440x900 viewport before the test body ran, so the spec failed before the tab was selected. Keep the client connected until the world is disposed. A client that stays connected still leaves the page laid out at its capture size inside the panel, which is the case selecting the tab must recover. Signed-off-by: Jalil <[email protected]> --------- Signed-off-by: Jalil <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #52254
See that PR for details.
Manual backport notes: include-order conflict only (
devtools_manager_delegate.cc); hunks are otherwise identical tomain.Notes: Fixed DevTools device metrics overrides persisting indefinitely when a remote debugging client disconnected without clearing them.