browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

Shared Storage API & Fenced Frames API & Protected Audiences API may not supported in webview

Open skyclouds2001 opened this issue 1 year ago • 4 comments

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

viewing https://source.chromium.org/chromium/chromium/src/+/main:android_webview/tools/system_webview_shell/test/data/webexposed/not-webview-exposed.txt, I notice the three APIs (also a ServiceWorkerRegistration.periodicSync property, the Periodic Sync API itself is disabled in webview) is in the file, but mark as supported in webview

  • Shared Storage API
    • https://chromestatus.com/feature/6256348582903808 also says not supported in webview
  • Fenced Frames API
    • https://chromestatus.com/feature/5699388062040064 also says not supported in webview
  • Protected Audiences API
    • The same, but it's data is very raw.

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

mark those features as not-supported

Did you test this? If so, how?

no, simply check using chromium source code

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://github.com/chromium/chromium/blob/main/android_webview/tools/system_webview_shell/test/data/webexposed/not-webview-exposed.txt https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/runtime_enabled_features.json5

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

skyclouds2001 avatar Oct 10 '24 19:10 skyclouds2001

What information was incorrect, unhelpful, or incomplete?

viewing https://source.chromium.org/chromium/chromium/src/+/main:android_webview/tools/system_webview_shell/test/data/webexposed/not-webview-exposed.txt, I notice some feature should not be marked as supported in webview, but it is incorrectly marked as yes

HMM, looks quite machine-friendly: I wonder if it would be practical to extract the information mechanically from the git history?

SamB avatar Oct 12 '24 23:10 SamB

The file from Chrome's you mentioned had been taken into consideration years ago when most updates to BCD were still performed manually. Now, almost all data is collected by https://mdn-bcd-collector.gooborg.com automatically.

If BCD reports that something in WebView is supported but it's in that file, it's either because:

  • It's actually supported after all, so that source file is wrong
  • It's incorrectly exposed and overrides need to be added to the collector

Do you have access to WebView on Android? If so, could you test which features are actually unsupported?

queengooborg avatar Oct 13 '24 14:10 queengooborg

The file from Chrome's you mentioned had been taken into consideration years ago when most updates to BCD were still performed manually. Now, almost all data is collected by https://mdn-bcd-collector.gooborg.com automatically.

Yes, as I later made some check, most old APIs seems to be correct, but some newly added API (like Shared Storage API, Fenced Frames API, which seems to be added mantually) seems to be wrong.

(Previously I only checked some items at the end of the file content)

skyclouds2001 avatar Oct 13 '24 16:10 skyclouds2001

I've updated the title and description and has confirmed the three APIs has different data with current one.

skyclouds2001 avatar Oct 20 '24 19:10 skyclouds2001