Skip to content
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

Deal with clipboard permission issues #19687

Merged
merged 3 commits into from May 2, 2024
Merged

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Apr 30, 2024

Description

Writing to the clipboard can throw. We deal with that now.

In addition to that, one needs to allow cross-origin iframes to write to the clipboard, which we did not do and so copying did not work.

Related Issue(s)

Fixes ENT-5 EXP-1737

How to test

Use a Chromium based browser like Chrome, Arc, Brave.

  1. Start a workspace with a non-vscode browser editor
  2. On the start page, try to copy the SSH command

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@filiptronicek filiptronicek self-assigned this Apr 30, 2024
@filiptronicek
Copy link
Member Author

filiptronicek commented Apr 30, 2024

/gh run recreate-vm=true

Chat ops job failed. See 8896089805 for details

@@ -16,6 +16,7 @@ export function load(): Promise<{
frame.src = startUrl.toString();
frame.style.visibility = "visible";
frame.className = "gitpod-frame loading";
frame.allow = "clipboard-write"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes the bug with the opening workspace page ssh command copying troubles

@filiptronicek filiptronicek marked this pull request as ready for review April 30, 2024 20:10
@filiptronicek filiptronicek requested a review from a team as a code owner April 30, 2024 20:10
@roboquat roboquat merged commit 2f45ecd into main May 2, 2024
50 checks passed
@roboquat roboquat deleted the ft/catch-clipboard-exceptions branch May 2, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants