Web Share WPT: Correct syntax for 'self' permission

We use "web-share 'self'" to explicitly set the permissions policy.

Bug: 1385681
Change-Id: Ibbf805f200d2e3b2f71c4901b630eca137929b2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4054758
Reviewed-by: Louise Brett <loubrett@google.com>
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1076032}
diff --git a/third_party/blink/web_tests/external/wpt/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html b/third_party/blink/web_tests/external/wpt/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html
index 78562419..773da84 100644
--- a/third_party/blink/web_tests/external/wpt/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html
+++ b/third_party/blink/web_tests/external/wpt/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html
@@ -33,7 +33,7 @@
 
     async function loadIframe(t, src, allowList) {
       const iframe = document.createElement("iframe");
-      if (allowList !== null) iframe.allow = allowList;
+      if (allowList !== undefined) iframe.allow = allowList;
       t.add_cleanup(() => {
         iframe.remove();
       });
@@ -58,7 +58,7 @@
 
     promise_test(async (t) => {
       assert_true("share" in navigator, "navigator.share is exposed");
-      const iframe = await loadIframe(t, crossOriginSrc, "web-share=()");
+      const iframe = await loadIframe(t, crossOriginSrc, "web-share 'none'");
       const iframeWindow = iframe.contentWindow;
       iframeWindow.postMessage({ action: "share", data: shareData }, "*");
       const data = await waitForMessage("share");
@@ -68,7 +68,7 @@
 
     promise_test(async (t) => {
       assert_true("share" in navigator, "navigator.share is exposed");
-      const iframe = await loadIframe(t, crossOriginSrc, "web-share=(self)");
+      const iframe = await loadIframe(t, crossOriginSrc, "web-share 'self'");
       const iframeWindow = iframe.contentWindow;
       iframeWindow.postMessage({ action: "share", data: shareData }, "*");
       const data = await waitForMessage("share");
@@ -106,7 +106,7 @@
 
     promise_test(async (t) => {
       assert_true("canShare" in navigator, "navigator.canShare is exposed");
-      const iframe = await loadIframe(t, sameOriginPath, "web-share=(self)");
+      const iframe = await loadIframe(t, sameOriginPath, "web-share 'self'");
       iframe.contentWindow.postMessage(
         { action: "canShare", data: shareData },
         "*"