Repository navigation
feat(server,web,mobile): let plugins show statuses on threads #16061
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
Closed
+44,558
−903
Closed
Changes from all commits
Commits
Show all changes
553 commits
Select commit
Hold shift + click to select a range
cf9fc65
fix(plugins): carry verified session and recovery repairs
saphid 8a728d8
fix(plugins): carry verified session and recovery repairs
saphid 0b48776
fix(web): supply the panel host in PR tab restoration test
saphid 65a86e0
fix(web): supply the panel host in PR tab restoration test
saphid a03587c
fix(web): supply the panel host in PR tab restoration test
saphid 42bac51
fix(web): supply the panel host in PR tab restoration test
saphid 2da00e3
fix(web): supply the panel host in PR tab restoration test
saphid 55c8d53
fix(web): supply the panel host in PR tab restoration test
saphid 54042f1
fix(web): supply the panel host in PR tab restoration test
saphid aaec5c3
fix(web): supply the panel host in PR tab restoration test
saphid 04892a5
fix(web): supply the panel host in PR tab restoration test
saphid fa311c8
fix(web): supply the panel host in PR tab restoration test
saphid a66727f
fix(web): supply the panel host in PR tab restoration test
saphid 95c851c
fix(web): supply the panel host in PR tab restoration test
saphid 19e55c3
fix(web): supply the panel host in PR tab restoration test
saphid d3a7330
fix(web): supply the panel host in PR tab restoration test
saphid b7a26ad
fix(web): supply the panel host in PR tab restoration test
saphid a7350b7
refactor(web): integrate panel host with main component boundaries
saphid 192bc98
refactor(web): preserve device and terminal panels on current main
saphid 040202c
fix(web): preserve scoped device operation errors across thread switches
saphid babbab1
refactor(web): integrate files and pull request panels with main
saphid eff86b0
chore(pi): integrate main while preserving extension statuses
saphid 30dbe3f
chore(pi): preserve main blank-question validation in status stack
saphid c8294eb
chore(mobile): integrate main while preserving Pi status geometry
saphid 29eca2a
fix(plugins): integrate main and preserve revocation and shutdown safety
saphid 472b696
fix(plugins): integrate event feed with current persistence and outcomes
saphid aa0aefc
fix(plugins): integrate tool grants with current session lifecycle
saphid 79ac3bc
fix(plugins): reconcile preview migrations and retain private setting…
saphid 1d03951
fix(plugins): preserve actions across extracted composer entry points
saphid 555e926
fix: integrate current main while preserving PR 15010 behavior
saphid 938104f
fix(plugins): revoke cached views and preserve current panel and RPC …
saphid 5997dd9
fix(plugins): integrate main and restore approved npm bytes safely
saphid 71ac16f
fix(plugins): integrate settings management with current main
saphid 5a14507
fix(plugins): integrate environment settings without losing main updates
saphid 2bba53c
fix(plugins): integrate npm settings and preserve repair recovery
saphid c2280b9
fix(plugins): preserve contribution UI on current main
saphid 8d5bcc5
fix(plugins): integrate thread statuses with current main
saphid 9adbd79
test(web): repair side panel browser fixtures
saphid e5f5c41
test(web): keep panel loader assertion independent of test order
saphid 4f2deed
test(web): keep side panel mocks at explicit runtime boundaries
saphid f5ba13c
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid e82f610
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 03a544e
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 7b3fcea
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 6433423
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid fa1404b
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 25f29b9
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid d3062cc
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 88342d2
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 6152468
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid ec03049
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid a75b895
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid faba1e0
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid cf941d9
docs(plugins): describe persisted swap recovery accurately
saphid d95a5b7
docs(plugins): describe persisted swap recovery accurately
saphid 7ad8af2
docs(plugins): describe persisted swap recovery accurately
saphid ab9055e
docs(plugins): describe persisted swap recovery accurately
saphid a8f4c62
docs(plugins): describe persisted swap recovery accurately
saphid 2744149
docs(plugins): describe persisted swap recovery accurately
saphid 8516058
docs(plugins): describe persisted swap recovery accurately
saphid b0f342c
docs(plugins): describe persisted swap recovery accurately
saphid 59e2d08
docs(plugins): describe persisted swap recovery accurately
saphid fa2e61c
docs(plugins): describe persisted swap recovery accurately
saphid c5e51a1
docs(plugins): describe persisted swap recovery accurately
saphid 83f31b0
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid 753e629
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid c52345b
fix(web): align lazy panel fixtures with current runtime contracts
saphid b1af53d
fix(web): align lazy panel fixtures with current runtime contracts
saphid 221c2c5
fix(web): align lazy panel fixtures with current runtime contracts
saphid 5665e03
fix(web): align lazy panel fixtures with current runtime contracts
saphid 87d37a3
fix(web): align lazy panel fixtures with current runtime contracts
saphid 50dbc1b
fix(web): align lazy panel fixtures with current runtime contracts
saphid c6ddef4
fix(web): align lazy panel fixtures with current runtime contracts
saphid 3bc1b4c
fix(web): align lazy panel fixtures with current runtime contracts
saphid 78a6d79
fix(web): align lazy panel fixtures with current runtime contracts
saphid 0470917
fix(web): align lazy panel fixtures with current runtime contracts
saphid 480a0c4
fix(web): align lazy panel fixtures with current runtime contracts
saphid 0ddc856
fix(web): align lazy panel fixtures with current runtime contracts
saphid 5520179
fix(web): align lazy panel fixtures with current runtime contracts
saphid 0f09a5a
fix(web): align lazy panel fixtures with current runtime contracts
saphid 70d8233
fix(web): align lazy panel fixtures with current runtime contracts
saphid a581bde
fix(web): align lazy panel fixtures with current runtime contracts
saphid 9c5651c
test(web): align plugin render lifecycle and available panel counters
saphid 812bcf6
test(web): align plugin render lifecycle and available panel counters
saphid 22002e4
test(web): align plugin render lifecycle and available panel counters
saphid ae72863
test(web): align plugin render lifecycle and available panel counters
saphid 45d329b
test(web): align plugin render lifecycle and available panel counters
saphid a1c136e
test(web): align plugin render lifecycle and available panel counters
saphid f728641
test(web): align plugin render lifecycle and available panel counters
saphid f23aeac
test(web): align plugin render lifecycle and available panel counters
saphid b259d1e
test(web): align plugin render lifecycle and available panel counters
saphid bfe9bca
test(web): align plugin render lifecycle and available panel counters
saphid 1ada22b
test(web): align plugin render lifecycle and available panel counters
saphid eb65f12
test(web): align plugin render lifecycle and available panel counters
saphid d66ac26
test(web): align plugin render lifecycle and available panel counters
saphid 651af0d
test(web): align plugin render lifecycle and available panel counters
saphid 1aad672
test(web): align plugin render lifecycle and available panel counters
saphid 681cd0c
test(web): align plugin render lifecycle and available panel counters
saphid 1182393
Merge remote-tracking branch 'origin/main' into ready/plugins-15010-2…
saphid 6af59a7
Merge branch 'ready/plugins-15010-20261031' into ready/plugins-16038-…
saphid 2ca4b4c
fix(web): adapt panel fixtures to current browser bridge and registry
saphid b2f7da8
fix(web): integrate current device and terminal behavior into panel host
saphid 6898fd2
fix(web): integrate current file preview behavior into Files panel host
saphid fbb7a0f
test(web): retain current file-preview regressions through panel host
saphid 27b43a3
fix(pi): preserve current provider and sharing behavior in status int…
saphid fd8bf13
fix(mobile): preserve current layout alongside Pi statuses
saphid 4024f16
fix(plugins): integrate event feed with current orchestration and mig…
saphid a13adfa
fix(web): format migrated device fixtures and remove obsolete prop type
saphid cf7c376
fix(plugins): preserve MCP context and subagent credential boundaries
saphid edf44f9
fix(plugins): retain current secrets behavior and append settings mig…
saphid 134cb43
test(web): adapt panel fixtures to current host and focus APIs
saphid 94375a3
fix(plugins): integrate actions with current palette and linked envir…
saphid 5c62ee3
test(web): preserve current entity and focus exports in panel fixtures
saphid 2ca936d
test(web): inherit current Device and terminal fixtures
saphid 35f6f3a
fix(plugins): retain current panel shortcuts and environment capabili…
saphid 3f3f1be
fix(plugins): integrate updated stack beneath feat(server): install p…
saphid faf50a4
test(web): adapt terminal attachment fixture to session atoms
saphid bda69a3
fix(plugins): port plugin management into current settings navigation
saphid 2803dfb
fix(plugins): integrate updated stack beneath feat(web,mobile): fill …
saphid e2e5535
fix(plugins): integrate updated stack beneath feat(web,mobile): insta…
saphid 8e3fb1c
fix(plugins): integrate updated stack beneath feat(web,mobile): show …
saphid d0ecdd7
fix(plugins): integrate updated stack beneath feat(server,web,mobile)…
saphid cec9e9b
test(web): isolate breadcrumb fixtures from browser defaults and edit…
saphid 4254cbd
fix(plugins): carry updated parent layer into #16045
saphid 17e0646
test(web): follow moved source-control actions and primary environmen…
saphid 74953e1
fix(plugins): carry updated parent layer into #16048
saphid 50614e4
fix(plugins): carry updated parent layer into #16045
saphid 132b358
fix(plugins): carry updated parent layer into #16046
saphid e069d44
test(plugins): cover preview ledgers against newer main migration slots
saphid 39f8d29
fix(web): preserve scoped file actions and make panel readiness fixtu…
saphid a500f29
fix(plugins): carry updated parent layer into #16046
saphid 08c76cf
fix(plugins): carry updated parent layer into #16048
saphid 0b36b43
fix(pi): retain desktop contracts and current panel dependencies
saphid 255d6aa
fix(plugins): carry updated parent layer into #16046
saphid b3047a4
fix(plugins): carry updated parent layer into #16048
saphid cccc834
fix(pi): align regression fixtures with current runtime services
saphid 871a02e
fix(plugins): carry updated parent layer into #16046
saphid 91c565d
fix(plugins): carry updated parent layer into #16048
saphid ca955aa
fix(pi): provide all runtime fixtures and scoped file insertion callb…
saphid 580d1af
fix(plugins): carry updated parent layer into #16048
saphid bd935e0
refactor(mobile): keep status layout constraints concise
saphid 6fe5de3
fix(plugins): carry updated parent layer into #16048
saphid 397485d
fix(plugins): migrate preview ledgers after current main schema
saphid f589b1e
fix(plugins): carry updated parent layer into #16049
saphid a9fb7b0
fix(plugins): retain settings preview upgrade cases on current migrat…
saphid 5aad8a2
fix(plugins): carry updated parent layer into #16051
saphid 498e967
fix(plugins): carry updated parent layer into #16053
saphid 4f28602
fix(plugins): carry updated parent layer into #16054
saphid 12f3a67
fix(plugins): carry updated parent layer into #16058
saphid c290752
fix(plugins): carry updated parent layer into #16055
saphid 73e86b4
fix(plugins): carry updated parent layer into #16056
saphid 05af997
fix(plugins): carry updated parent layer into #16057
saphid cae8790
fix(plugins): carry updated parent layer into #16061
saphid 502200c
fix(plugins): align event runtime with current layers and Effect conv…
saphid d6a613f
fix(plugins): carry updated parent layer into #16049
saphid d3071ec
fix(plugins): carry updated parent layer into #16050
saphid f2af4d4
fix(plugins): carry updated parent layer into #16051
saphid b271162
fix(plugins): carry updated parent layer into #16053
saphid 1bcfdd9
fix(plugins): retain npm transactions and current management locking
saphid 6ee9988
fix(plugins): carry updated parent layer into #16058
saphid ae9bc28
fix(plugins): carry updated parent layer into #16061
saphid f7098be
fix(plugins): carry updated parent layer into #16055
saphid 32fa13b
fix(plugins): carry updated parent layer into #16056
saphid e9ff063
fix(plugins): carry updated parent layer into #16057
saphid 5ce70b7
fix(plugins): include tool services in the current context budget
saphid e3e24ed
fix(plugins): carry updated parent layer into #16050
saphid 5a710a5
fix(plugins): carry updated parent layer into #16051
saphid 16811d6
fix(plugins): carry updated parent layer into #16053
saphid 56afefc
fix(plugins): carry updated parent layer into #16054
saphid a9ee1d8
fix(plugins): carry updated parent layer into #16058
saphid d6c6a2e
fix(plugins): carry updated parent layer into #16061
saphid 5d31815
fix(plugins): carry updated parent layer into #16055
saphid c827db6
fix(plugins): carry updated parent layer into #16056
saphid d87a780
fix(plugins): carry updated parent layer into #16057
saphid 4215861
refactor(plugins): keep API constraints concise
saphid 6c42067
refactor(plugins): keep API constraints concise
saphid f252bbe
refactor(plugins): retain settings lock within its named Effect function
saphid 43d023e
fix(plugins): carry updated parent layer into #16051
saphid 32a2a74
fix(plugins): carry updated parent layer into #16053
saphid 72b2de2
refactor(plugins): keep API constraints concise
saphid 08e0ac9
refactor(plugins): keep API constraints concise
saphid 27c6da1
fix(plugins): align host call functions and IPC fixture with checks
saphid c53a344
fix(plugins): carry updated parent layer into #16051
saphid 58eeaa5
fix(plugins): carry updated parent layer into #16053
saphid f3e7bfc
fix(plugins): carry updated parent layer into #16054
saphid 07e6602
refactor(plugins): keep API constraints concise
saphid 66d47b7
refactor(plugins): keep action constraints and formatting current
saphid 9fbbef6
fix(plugins): carry updated parent layer into #16053
saphid 7d066d7
fix(plugins): carry updated parent layer into #16054
saphid 21b6cfe
fix(plugins): integrate current palette imports and session fixtures
saphid 8ef5ef5
fix(plugins): carry updated parent layer into #16053
saphid d7b4390
fix(plugins): carry updated parent layer into #16054
saphid 0695c8a
fix(plugins): use current environment subscriptions and composer fixt…
saphid d512025
fix(plugins): carry updated parent layer into #16053
saphid ad018ff
fix(plugins): carry updated parent layer into #16054
saphid 7cd341d
style(plugins): format view isolation constraints
saphid 6703b10
fix(plugins): align view lifecycle and RPC test fixtures
saphid 0fba174
fix(plugins): preserve side chats alongside registered plugin panels
saphid b8021ea
fix(plugins): update panel labels and session fixtures with side chats
saphid 7219112
fix(plugins): carry updated parent layer into #16054
saphid 1657277
fix(plugins): name locked npm methods and update checkpoint fixtures
saphid e5c2b03
fix(plugins): keep inline actions after side-chat integration
saphid 2393929
refactor(plugins): keep API constraints concise
saphid 8b4988d
refactor(plugins): keep API constraints concise
saphid bc6685c
fix(plugins): keep npm mutation locks in named service functions
saphid dd1c441
fix(plugins): align client lifecycle and environment APIs
saphid 65e27ca
fix(plugins): carry updated parent layer into #16055
saphid a78bdab
fix(plugins): generate management route for current Settings
saphid b02d25e
fix(plugins): align client lifecycle and environment APIs
saphid 77627b8
fix(plugins): align client lifecycle and environment APIs
saphid 8efa46c
fix(plugins): add inbound telemetry to management sessions
saphid 20bbc5f
fix(plugins): carry updated parent layer into #16056
saphid e8367e5
fix(plugins): align management web fixtures with current settings
saphid 2192e08
fix(plugins): carry updated parent layer into #16056
saphid 6acda82
fix(plugins): align client lifecycle and environment APIs
saphid 198a471
refactor(plugins): keep API constraints concise
saphid 3373c29
style(plugins): format settings forms integration
saphid 8a5edd5
fix(plugins): expose forms in current Plugins settings
saphid 15acd3a
fix(plugins): align client lifecycle and environment APIs
saphid ab9837a
fix(plugins): carry updated parent layer into #16057
saphid 6fc2228
fix(plugins): expose forms state in isolated dialog fixture
saphid b8b611d
fix(plugins): carry updated parent layer into #16057
saphid 5687a04
style(plugins): format current stack integration
saphid 8b3a7e4
fix(plugins): carry updated parent layer into #16058
saphid facad9d
fix(plugins): explain native npm cache invalidation lifecycle
saphid 48e4065
fix(plugins): carry updated parent layer into #16058
saphid 556c36f
fix(plugins): carry latest main into contribution summaries
saphid 383c100
fix(plugins): carry updated parent layer into #16061
saphid aec7fe3
style(plugins): keep view-stream revocation constraints concise
saphid bd2a90c
fix(plugins): carry updated parent layer into #16061
saphid 5965f31
style(plugins): format current stack integration
saphid 2cc9528
fix(plugins): align status constraints and host-call fixture functions
saphid 5643879
Merge main into Device panel and refresh terminal fixture
saphid 16ce06a
fix(web): preserve side chats in Files panel integration
saphid 9ae02bf
fix(pi): integrate current panels and repair status fixtures
saphid 1c4932d
fix(plugins): integrate project organization and cover slot 76 previews
saphid 42c773f
fix(plugins): reconcile previews around project organization migration
saphid 5d6ab0f
Merge commit '2359643cffa6ba9ee84d6f2694b935de54a8013e' into ready/pa…
saphid 5d28e21
fix(plugins): integrate management with current project organization
saphid 340ae13
fix(plugins): carry repaired parent layer into #16056
saphid c9e8b36
fix(plugins): carry repaired parent layer into #16057
saphid b9330f8
fix(plugins): carry repaired parent layer into #16058
saphid 6c30094
fix(plugins): carry repaired parent layer into #16061
saphid d460e79
fix(plugins): carry validated schema, secret and frame safeguards
saphid 1b8c96b
Merge commit '79f1fadfc6020b820d541ca4691d2feebb15dd1b' into ready/pa…
saphid 1720823
fix(plugins): enforce agent modes and harden inherited view reads
saphid da1616b
chore(plugins): merge main into thread statuses branch
saphid 7025b5b
Merge remote-tracking branch 'github/main' into pr-16061-exact
maria-rcks 0166676
chore(plugins): merge main into plugin status branch
saphid d8f21aa
Merge remote-tracking branch 'upstream/main' into stack/19-plugin-status
saphid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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,84 @@ | ||
| import { describe, expect, it } from "vite-plus/test"; | ||
|
|
||
| import { type NavigationFrame, shouldVetoViewFrameNavigation } from "./pluginViewNavigation.ts"; | ||
|
|
||
| const frame = ( | ||
| frameToken: string, | ||
| url: string, | ||
| origin: string, | ||
| parent: NavigationFrame | null, | ||
| name = "", | ||
| ): NavigationFrame => ({ frameToken, url, origin, parent, name }); | ||
|
|
||
| const app = frame("app", "t3code-dev://app/", "t3code-dev://app", null); | ||
| const view = frame("view", "about:srcdoc", "null", app, "t3-plugin-view"); | ||
| const wrapper = frame("wrapper", "about:srcdoc", "null", app, "t3-plugin-view"); | ||
| const wrappedView = frame("inner", "about:srcdoc", "null", wrapper); | ||
|
|
||
| describe("shouldVetoViewFrameNavigation", () => { | ||
| it("refuses a view navigating itself, including through a policy wrapper", () => { | ||
| for (const target of [view, wrappedView]) { | ||
| for (const url of ["about:blank", "http://127.0.0.1:7391/page.html", "data:text/html,x"]) { | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ url, frame: target, initiator: target, mainFrame: app }), | ||
| ).toBe(true); | ||
| } | ||
| } | ||
| }); | ||
|
|
||
| it("refuses a navigation with no known initiator", () => { | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ | ||
| url: "http://127.0.0.1:7391/redirect", | ||
| frame: view, | ||
| initiator: null, | ||
| mainFrame: app, | ||
| }), | ||
| ).toBe(true); | ||
| }); | ||
|
|
||
| it("lets the app mount, wrap and dispose views", () => { | ||
| const fresh = frame("fresh", "about:blank", "t3code-dev://app", app); | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ | ||
| url: "about:srcdoc", | ||
| frame: fresh, | ||
| initiator: app, | ||
| mainFrame: app, | ||
| }), | ||
| ).toBe(false); | ||
| const freshInner = frame("fresh-inner", "about:blank", "null", wrapper); | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ | ||
| url: "about:srcdoc", | ||
| frame: freshInner, | ||
| initiator: wrapper, | ||
| mainFrame: app, | ||
| }), | ||
| ).toBe(false); | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ | ||
| url: "about:blank", | ||
| frame: view, | ||
| initiator: app, | ||
| mainFrame: app, | ||
| }), | ||
| ).toBe(false); | ||
| }); | ||
|
|
||
| it("leaves frames outside views alone", () => { | ||
| const other = frame("other", "https://example.com/", "https://example.com", app); | ||
| const font = frame("font", "about:srcdoc", "null", app); | ||
| const fontChild = frame("font-child", "about:srcdoc", "null", font); | ||
| for (const target of [other, font, fontChild]) { | ||
| expect( | ||
| shouldVetoViewFrameNavigation({ | ||
| url: "https://example.com/next", | ||
| frame: target, | ||
| initiator: target, | ||
| mainFrame: app, | ||
| }), | ||
| ).toBe(false); | ||
| } | ||
| }); | ||
| }); |
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,27 @@ | ||
| // A document's CSP cannot stop frame navigation; Electron vetoes isolated-subtree navigation unless the main frame starts it. | ||
| // Allow about:srcdoc mounting; wrapper CSP blocks data: navigation and ping liveness detects about:blank. | ||
|
|
||
| export interface NavigationFrame { | ||
| readonly url: string; | ||
| readonly origin: string; | ||
| readonly frameToken: string; | ||
| readonly name: string; | ||
| readonly parent: NavigationFrame | null; | ||
| } | ||
|
|
||
| const isViewDocument = (frame: NavigationFrame) => | ||
| frame.name === "t3-plugin-view" && frame.url === "about:srcdoc" && frame.origin === "null"; | ||
|
|
||
| export function shouldVetoViewFrameNavigation(input: { | ||
| readonly url: string; | ||
| readonly frame: NavigationFrame | null; | ||
| readonly initiator: NavigationFrame | null | undefined; | ||
| readonly mainFrame: NavigationFrame; | ||
| }): boolean { | ||
| let insideView = false; | ||
| for (let frame = input.frame; frame !== null; frame = frame.parent) { | ||
| if (isViewDocument(frame)) insideView = true; | ||
| } | ||
| if (!insideView || input.url === "about:srcdoc") return false; | ||
| return input.initiator?.frameToken !== input.mainFrame.frameToken; | ||
| } |
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.