Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented Mar 20, 2025

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

navigator.clipboard is only accessible from a "secure context", which JCEF does not think we are using, because the URI authority is not localhost or https. Since we are hooking onto the CEF resource request handler, it does not matter what we use for the scheme/authority as long as there is no conflict with real resources.

Previous implementation used a different load mechanism which somehow met the secure context criteria.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
`navigator.clipboard` is only accessible from a "secure context", which JCEF does not think we are using,
because the URI authority is not localhost or https. Since we are hooking onto the CEF resource request handler,
it does not matter what we use for the scheme/authority as long as there is no conflict with real resources.

Previous implementation used a different load mechanism which somehow met the secure context criteria.
@rli rli requested review from a team as code owners March 20, 2025 20:24
@github-actions
Copy link

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@bryceitoc9 bryceitoc9 merged commit 9a195e1 into feature/remote-chat Mar 20, 2025
16 of 18 checks passed
@bryceitoc9 bryceitoc9 deleted the rli/remote-load-scheme branch March 20, 2025 21:37
rli added a commit that referenced this pull request Sep 3, 2025
* feat(amazonq): Add support for Amazon Q chat on remote 242+ (#4825)

* fix(amazonq): Bug Fix for "Q: Send to Prompt" doesn't work in split panes on local or remote (#5463)

* fix(amazonq): use https as scheme for local webview resource resolver (#5489)

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
`navigator.clipboard` is only accessible from a "secure context", which JCEF does not think we are using,
because the URI authority is not localhost or https. Since we are hooking onto the CEF resource request handler,
it does not matter what we use for the scheme/authority as long as there is no conflict with real resources.

Previous implementation used a different load mechanism which somehow met the secure context criteria.

* fix(amazonq): fix agentic asset loading in remote mode (#5734)

local uris cannot be loaded if the host is deemed non-remote

* fix(amazonq): fix code issues tab not appearing in remote (#5737)

on remote, each client gets its own instance of the tool window.

logic needs to handle this case, otherwise it will only make changes against the 'main' IDE,
and will not be visible to remote clients

* fix(amazonq): use progress bar decorator while loading q chat on remote (#5749)

animated icons do not show up on remote

* fix: provide loading text when chat assets are slow to load (#5973)

on remote, it can take 10+ seconds for chat to be visible.

additionally, delete some unneeded assets to slightly reduce load time

* feat(amazonq): limit remote to amzn-internal compute (#5993)

Per internal discussion, feature deemed not ready for external users due to https://youtrack.jetbrains.com/issue/IJPL-203169

* fix: delete changelog for internal feature (#6009)

* feat: show message to resize on remote chat (#6007)

---------
Co-authored-by: Lokesh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants