Repository navigation
feat(trackers,browser): EnvironmentTracker (language, timezone, hints, permissions, private mode) (TR7) #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c904631
wip(trackers): feat/environment-tracker — unfinished, no mutator loop…
krassx 33dcf28
test(trackers,browser): EnvironmentTracker (TR7) — gates green, mutat…
claude cfe6abf
fix(trackers,browser): EnvironmentTracker review fixes — rebind/seam …
claude 52228d5
fix(trackers,browser,webview): EnvironmentTracker round-2 review — fa…
claude b27c104
fix(trackers): EnvironmentTracker round-3 review — field-wise retenti…
claude 08820eb
fix(trackers): EnvironmentTracker round-4 review — failed permission …
claude 0b782ed
fix(trackers,browser,webview): EnvironmentTracker round-5 review — si…
claude 9b90260
fix(trackers): emit privateMode only on change, skip re-probing a ret…
claude f46ed15
test(bugsee): classify captureEnvironmentHints in option-directions (…
claude 9d82b23
fix(trackers,browser): explicit detectPrivateMode in events source, c…
claude d276966
Merge origin/main into feat/environment-tracker
claude 7b5b0a4
feat(browser): private-mode detection is opt-out; hints/permissions r…
krassx 71357e7
fix(browser): enforce private-mode opt-out at the event sink; fix sta…
krassx 1aaf5b6
docs(browser,protocol): describe the captureEnvironmentHints default …
claude 08509d3
fix(browser): re-deliver a retained private-mode yes to each new session
krassx 794573a
Merge remote-tracking branch 'origin/feat/environment-tracker' into f…
krassx 7b01256
docs(browser): put the injected-globals JSDoc on its interface
krassx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@bugsee/browser': minor | ||
| '@bugsee/webview': minor | ||
| '@bugsee/protocol': minor | ||
| '@bugsee/trackers': minor | ||
| --- | ||
|
|
||
| Browser and WebView `events.system` gain `language_changed` (the page language changed) and `timezone_changed` (the time zone or UTC offset changed, so a DST shift counts). The Browser launch (not WebView, which keeps private-mode detection off) also gains `private_mode_detected`, from a private-browsing heuristic that is ON by default (opt-out): turn it off with `captureEnvironmentHints: false` (canonical option `com.bugsee.option.capture.environment-hints`, a non-boolean value is treated as off and reported). It reports only a `yes` answer, never as a certainty (constrained storage can false-positive), and an opted-out launch never forwards it even if another consumer enabled detection on the shared tracker. All of these come from the new per-window singleton `EnvironmentTracker` in `@bugsee/trackers/browser`, which can also observe environment hints (cookies, secure context, cross-origin isolation, service-worker control, automation flag, Do-Not-Track and GPC) and Permissions API states, read without ever prompting; unknown values are omitted. Those two stages are read only when a consumer sets `observeHints` / `queryPermissions`, and the browser launch does not, so it issues no `permissions.query()` call. |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.