[shared storage] Fix some web platform tests
Issue: Some WPTs finish too early and does not actually wait for the
async operations. We encountered test failures due to a mojom
connection CHECK on CodeCacheHost
, which reveals this underlying
problem.
This patch fixes those cases. Also, for
shared-storage-writable-img-idl-attribute-included-bytes.tentative.https.sub.html,
there are some additional problems:
- The "+" is a special URL character. Thus, we apply
encodeURIComponent on the key/value. - Passing emoji character directly doesn't seem to work. It's
being translated to a different/unexpected sequence. In this CL,
we replace the emoji with explicit UTF-16 code units created from
String.fromCharCode(). Filed a bug (https://crbug.com/341973427)
for further investigation.
Bug: 341893986
Change-Id: I208e4af410a3a1092a0da88decbe43687fe8b718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5556543
Reviewed-by: Cammie Smith Barnes cammie@chromium.org
Commit-Queue: Yao Xiao yaoxia@chromium.org
Cr-Commit-Position: refs/heads/main@{#1304604}