mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-09-01 05:29:22 +00:00
revert(extension): drop post-3.1.2 frame-targeting band-aids
Restores extension/ to the state directly after webNavigation was removed
(4d78970). The six follow-up commits layered heuristics on an unverified
premise (frame-ID sweeps, multi-phase probes, retry loops) without fixing
the underlying resolver. They are removed so the real fix can be built on
a known state.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -173,18 +173,6 @@ describe('chat overlay contract', () => {
|
||||
expect(overlaySource).toContain("if (destroyed || area !== 'local') return");
|
||||
});
|
||||
|
||||
it('persists the last manual open/closed state across context refreshes', () => {
|
||||
expect(overlaySource).toContain('const openStateKey = `chatOverlayOpen:${location.origin}`');
|
||||
expect(overlaySource).toContain('let lastUserOpenState = null');
|
||||
expect(overlaySource).toContain('function setOpened(next, persistPreference = true)');
|
||||
expect(overlaySource).toContain('setLocalStorage({ [openStateKey]: opened })');
|
||||
expect(overlaySource).toContain('setOpened(false, false)');
|
||||
expect(overlaySource).toContain('setOpened(lastUserOpenState ?? (chatStartMode === \'open\'), false)');
|
||||
expect(overlaySource).toContain('typeof data[openStateKey] === \'boolean\'');
|
||||
expect(overlaySource).toContain('const previousEnabled = context?.enabled === true');
|
||||
expect(overlaySource).toContain('(!startStateApplied || !previousEnabled)');
|
||||
});
|
||||
|
||||
it('keeps chat hidden by default without discarding the room chat key', () => {
|
||||
expect(popupSource).toContain('localData.chatEnabled === true');
|
||||
expect(backgroundSource).toContain('chatEnabled: data.chatEnabled === true');
|
||||
|
||||
Reference in New Issue
Block a user