Skip to content

Commit 977b15e

Browse files
committed
chore[DevTools]: make clipboardWrite optional for chromium (facebook#32262)
Addresses facebook#32244. ### Chromium We will use [chrome.permissions](https://developer.chrome.com/docs/extensions/reference/api/permissions) for checking / requesting `clipboardWrite` permission before copying something to the clipboard. ### Firefox We will keep `clipboardWrite` as a required permission, because there is no reliable and working API for requesting optional permissions for extensions that are extending browser DevTools: - `chrome.permissions` is unavailable for devtools pages - https://bugzilla.mozilla.org/show_bug.cgi?id=1796933 - You can't call `chrome.permissions.request` from background, because this instruction has to be executed inside user-event callback, basically only initiated by user. I don't really want to come up with solutions like opening a new tab with a button that user has to click. DiffTrain build for [221f300](facebook@221f300)
1 parent 990f566 commit 977b15e

File tree

66 files changed

+149422
-147725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+149422
-147725
lines changed

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

Lines changed: 107 additions & 214 deletions
Large diffs are not rendered by default.

compiled/facebook-www/JSXDEVRuntime-dev.modern.js

Lines changed: 112 additions & 215 deletions
Large diffs are not rendered by default.

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cae764ce81b1bd6c418e9e23651794b6b09208e8
1+
221f3002caa2314cba0a62950da6fb92b453d1d0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cae764ce81b1bd6c418e9e23651794b6b09208e8
1+
221f3002caa2314cba0a62950da6fb92b453d1d0

0 commit comments

Comments
 (0)