Bug 230088

Summary: [Web-Share] handle non-fully active documents
Product: WebKit Reporter: Marcos Caceres <marcos>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: clopez, darin, ews-watchlist, hi, thorton, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/w3c/web-share/pull/219
Attachments:
Description Flags
Patch none

Description Marcos Caceres 2021-09-09 01:55:30 PDT
The Web Share spec now defines consistent behavior for when documents are non-fully active: 
https://github.com/w3c/web-share/pull/219 

tl;dr:

 * canShare() -> false
 * share() -> promise rejected with InvalidStateError
Comment 1 Marcos Caceres 2021-09-09 03:01:25 PDT
Created attachment 437724 [details]
Patch
Comment 2 EWS Watchlist 2021-09-09 03:02:40 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Marcos Caceres 2021-09-09 03:09:58 PDT
Devin, Tim, following up on the discussion from:
https://bugs.webkit.org/show_bug.cgi?id=214448#c7
Comment 4 Marcos Caceres 2021-09-09 03:11:44 PDT
WPTests: https://github.com/web-platform-tests/wpt/pull/30417
Comment 5 EWS 2021-09-10 11:33:03 PDT
Committed r282282 (241558@main): <https://commits.webkit.org/241558@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437724 [details].
Comment 6 Radar WebKit Bug Importer 2021-09-10 11:34:22 PDT
<rdar://problem/82981634>