Skip to content

Commit

Permalink
[Clipboard] Fix WPT test failures.
Browse files Browse the repository at this point in the history
Add missing source file to the clipboard tests that has the
definition of `tryGrantReadPermission` and `tryGrantWritePermission`.
Also, remove the unused parameter in `tryGrantReadPermission`.

Bug: 331836811

Change-Id: Ia3e204a733b176b03c2478dc8445fc1fe22e6cd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5407270
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Christine Hollingsworth <[email protected]>
Commit-Queue: Anupam Snigdha <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1281220}
  • Loading branch information
snianu authored and chromium-wpt-export-bot committed Apr 2, 2024
1 parent 17d7bd1 commit 5b087a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="../../resources/user-activation.js"></script>
<script>
'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="../../resources/user-activation.js"></script>
<script>
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion clipboard-apis/resources/user-activation.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function trySetPermission(perm, state) {
}
}

async function tryGrantReadPermission(state) {
async function tryGrantReadPermission() {
await trySetPermission("clipboard-read", "granted");
}

Expand Down

0 comments on commit 5b087a4

Please sign in to comment.