Commit dc20ed3
committed
fix(extension): reconnect via chrome.idle on OS resume / screen unlock
The 24-second keepalive alarm is the only reconnect trigger today, but
Chrome may suspend the MV3 service worker across deep sleep so an alarm
tick can be skipped past system resume. Add chrome.idle.onStateChanged
to wake the worker on the first active signal after lock or sleep.
Fixes #17351 parent c730a02 commit dc20ed3
3 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1330 | 1335 | | |
1331 | 1336 | | |
1332 | 1337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
916 | 926 | | |
917 | 927 | | |
918 | 928 | | |
| |||
0 commit comments