▲ 1639 ▼ Be careful. (feddit.org) submitted 2 years ago by 101@feddit.org to c/technology@lemmy.world 174 comments fedilink hide all child comments Source.
[–] dan@upvote.au 2 points 2 years ago (2 children) but it can place text into the clipboard. Only as the result of a user interaction, for example by pressing a button. permalink fedilink source parent hideshow 2 child comments replies: [–] T156@lemmy.world 1 point 2 years ago (1 child) From the Browser's viewpoint, would there be any difference if the webpage has a JS button to put something in the clipboard, or it having code running in the background that puts things into the clipboard at page load? It's not like there's that much of a difference, as far as the Browser is concerned. permalink fedilink source parent hideshow 1 child comment replies: [–] dan@upvote.au 3 points 2 years ago would there be any difference if the webpage has a JS button to put something in the clipboard, or it having code running in the background that puts things into the clipboard at page load? Clicking a button shows user intent, whereas a page load doesn't. No user expects loading a page to overwrite their clipboard, but every user that clicks a "Copy to Clipboard" button does expect it. permalink fedilink source parent
[–] T156@lemmy.world 1 point 2 years ago (1 child) From the Browser's viewpoint, would there be any difference if the webpage has a JS button to put something in the clipboard, or it having code running in the background that puts things into the clipboard at page load? It's not like there's that much of a difference, as far as the Browser is concerned. permalink fedilink source parent hideshow 1 child comment replies: [–] dan@upvote.au 3 points 2 years ago would there be any difference if the webpage has a JS button to put something in the clipboard, or it having code running in the background that puts things into the clipboard at page load? Clicking a button shows user intent, whereas a page load doesn't. No user expects loading a page to overwrite their clipboard, but every user that clicks a "Copy to Clipboard" button does expect it. permalink fedilink source parent
[–] dan@upvote.au 3 points 2 years ago would there be any difference if the webpage has a JS button to put something in the clipboard, or it having code running in the background that puts things into the clipboard at page load? Clicking a button shows user intent, whereas a page load doesn't. No user expects loading a page to overwrite their clipboard, but every user that clicks a "Copy to Clipboard" button does expect it. permalink fedilink source parent