Repository navigation
fix(web): a browser tab in picture-in-picture no longer shows through the translucent sidebar - #63
Merged
Merged
Conversation
… the translucent sidebar
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 3 minutes. View limit details
|
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.
Summary
With the translucent sidebar on, any browser tab that keeps rendering while out of view (in picture-in-picture, recording, or driven by an agent in the background) showed through the sidebar. The tab's page appeared as a sharp, offset copy with a hard edge where it ended.
Loopy keeps those tabs painting by parking their webview at the window's top-left, behind the app. The page behind the sidebar is transparent in translucent mode, so the parked webview was visible. The parked webview is now transparent. It still renders and captures, but it can't be seen.
resolveHostedBrowserWebviewWrapperStyle if active: place at the panel rect if renderingActive (PiP / recording / background): left 0, top 0, zIndex -1, visibility visible + opacity 0 else: park offscreenEvidence
Dev desktop, translucent sidebar, glass opacity 40%. A browser tab showing a red-on-white test page is popped into PiP, then the floating preview is closed so the webview parks.
After:
The PiP window still updated live after the change: page content edited through the webview showed up in it. Moving the tab back into the panel shows it normally, not blank.
hostedBrowserWebviewStyle.test.ts: "keeps a parked capture guest in the viewport but transparent" fails before the change and passes after.Merge Danger
Door: two-way
Blast Radius: browser tabs that render while out of view
Only the parked state changes. If a future Electron stops compositing transparent webviews, PiP, recording, and background screenshots would freeze or go blank; I checked PiP in the current version.