Skip automatic Picture in Picture while Energy Saver is active
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 74/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- swift
- Domain
- desktop, performance
Research direction
Start with Browser.pictureOut in Sources/Fast/Browser.swift and the Thrift.on state in Sources/Fast/Sleep.swift. Trace how automatic PiP requests are distinguished from manual ones and how Energy Saver state is exposed. Verify on battery with the issue’s settings and YouTube reproduction steps: automatic video PiP should be skipped while Energy Saver is active, while manual PiP remains available.
Written by the indexing model from the issue text.
Description
The problem
On battery, a YouTube video playing in Yab’s Picture in Picture window kept my Mac’s display from idling off. While the video was floating, pmset -g assertions showed these two assertions from YabCore:
NoDisplaySleepAssertion "Video Wake Lock"
NoIdleSleepAssertion "Playing audio"
The display assertion later released. This matches Chromium’s wake-lock policy for active PiP playback. I couldn’t verify whether this particular session opened automatically.
What you'd like
When Yab’s Energy Saver is active, skip automatic video PiP on tab, space, and app switches. Users could still open PiP manually when they want to keep watching.
To check the change on battery, turn on Settings → Tabs → Energy Saver → When unplugged and Picture in Picture automatically, play a YouTube video in a Chromium tab, then switch away. The video should stay in its tab. Open PiP manually as a control, then pause or dismiss it and check that Video Wake Lock clears.
Yab already distinguishes automatic requests in Browser.pictureOut. The automatic path could consult the existing Thrift.on state.
How you manage today (optional)
Pause the floating video or turn off Picture in Picture automatically for all power modes.
Yab version (optional)
0.48.1 (202611170523), macOS 27.2.1, Apple silicon. The assertions were attributed to YabCore (Chromium).
- Dominant language
- Swift
- Stars
- 648
- Forks
- 56
- Avg merge
- 21h 14m
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yetanotherbrowser/yab
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yetanotherbrowser/yab#1008 ·
Maintainers usually reply within 2 days
-
area: passwords Broken bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
yetanotherbrowser/yab#923 ·
Maintainers usually reply within 2 days
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
yetanotherbrowser/yab#918 · 1 reaction ·
Maintainers usually reply within 2 days
-
iPhone: the + button and the checkmark sit on top of the Space switcher in the bottom barPossibly taken @ChaseRoofener claimed this 3 days ago. OpenAnnoying area: iphone bug needs info
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
yetanotherbrowser/yab#915 · 3 comments ·
Maintainers usually reply within 2 days
-
CONTRIBUTING.md and CI run scripts/runs/tests_for.py, which is not in the repositoryPossibly taken @serafimcloud claimed this 3 days ago. OpenAnnoying in progress
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
yetanotherbrowser/yab#875 · 1 comment ·
Maintainers usually reply within 2 days
All issues in yetanotherbrowser/yab
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
swiftlang/swift-org-website#1608 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
haacked/switchboard#460 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
manaflow-ai/cmux#47572 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
borrowcheckmate/swimlie#48 ·
Maintainers usually reply within 1 day