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

fix: webkit quicklinks copy for webkit #9832

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Conversation

fschade
Copy link
Collaborator

@fschade fschade commented Oct 19, 2023

Description

copying quicklings was broken on webkit based browsers, this is fixed now.

Related Issue

Motivation and Context

... hmmmm, no bugs, happy dev 🤣
ezgif-2-09128abecb

How Has This Been Tested?

  • unit tests

Screenshots (if appropriate):

Screenshot 2023-10-19 at 15 25 10

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

really nice!

packages/web-pkg/src/helpers/share/link.ts Outdated Show resolved Hide resolved
new ClipboardItem({
'text/plain': createQuicklink(args).then(
(link) => new Blob([link.url], { type: 'text/plain' })
)
Copy link
Member

Choose a reason for hiding this comment

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

Does this really accept a promise? seems weird

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

An Object with the MIME type as the key and data as the value. The data can be represented as a Blob, a String or a Promise which resolves to either a blob or string.

@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

68.0% 68.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@fschade fschade merged commit 72dc05d into master Oct 19, 2023
3 of 4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the bugfix-webkit-copy-quicklinks branch October 19, 2023 15:10
ownclouders pushed a commit that referenced this pull request Oct 19, 2023
* fix: webkit quicklinks copy for webkit

* Update packages/web-pkg/src/helpers/share/link.ts

Co-authored-by: Dominik Schmidt <[email protected]>

---------

Co-authored-by: Dominik Schmidt <[email protected]>
LukasHirt pushed a commit to LukasHirt/web that referenced this pull request Oct 25, 2023
* fix: webkit quicklinks copy for webkit

* Update packages/web-pkg/src/helpers/share/link.ts

Co-authored-by: Dominik Schmidt <[email protected]>

---------

Co-authored-by: Dominik Schmidt <[email protected]>
AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
* fix: webkit quicklinks copy for webkit

* Update packages/web-pkg/src/helpers/share/link.ts

Co-authored-by: Dominik Schmidt <[email protected]>

---------

Co-authored-by: Dominik Schmidt <[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.

Link-copy file-list-action not working in Safari
2 participants