Repository navigation
Studio browser: import history, camera and microphone site settings, local links - #17646
Conversation
… send local links to the default browser Settings > Browser gains an Import history row (Safari History.json, Chrome history from Google Takeout) and, in the Desktop app, Ask or Block for camera and microphone as a default and per site. A link to a local address no longer opens a panel tab that cannot load.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08f11c45a2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| *state | ||
| .0 | ||
| .lock() | ||
| .unwrap_or_else(|poisoned| poisoned.into_inner()) = rules; |
There was a problem hiding this comment.
Reset saved WebView2 denials when capture rules change
On Windows, blocking a site's capture request and then changing its rule back to Ask can leave it blocked. The pinned Wry permission handler applies Deny through SetState without disabling persistence; WebView2 saves those decisions by default, and subsequent requests may bypass the handler. This setter only updates the in-memory rules, so changing to Ask or removing an exception does not reset the saved denial. Prevent app-enforced denials from being persisted, or reset the affected origins' native permission states when rules change.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 6632bba: page views on Windows now mark a request the rules block as not saved in the profile (SavesInProfile false), so the handler keeps being asked and a rule changed back to Ask takes effect. Answers to WebView2's own prompt are still saved as before. The WebView2 calls were compile-checked for the Windows target in isolation; the full app was not built for Windows here.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Two reds on the current head (
|
|
Thanks. Both looked at:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What changed
Three additions to the Studio browser settings. Independent of #17594 and #17596.
Import browsing history
History.json(File > Export Browsing Data) and Chrome's history from Google Takeout. Both arrive as a ZIP; unzip and pick the JSON.Camera and microphone site settings (Desktop app)
Links to local addresses
localhostused to open a panel tab that cannot load, because a local page only opens in the panel when its address is typed there. Such links now go to the default browser, and the setting's description says so.How it was verified
npm run typecheck,npm test(15884 pass, 0 fail),npm run build. Newbrowser-history-importandbrowser-capture-sitestests.cargo test page_(5 passed) andcargo test capture(8 passed) on macOS.javascript:entry and one dated 1970. The camera and microphone section is hidden outside the Desktop app, as intended.Not verified here
biome checkreports pre-existing formatting errors repo-wide; the new files add none at error level.Schemas: https://developer.apple.com/documentation/safariservices/importing-data-exported-from-safari and https://developers.google.com/data-portability/schema-reference/chrome