Bug 230426

Summary: [iOS] Enable MSE in WKWebViews by default on iPad
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch none

Description Jer Noble 2021-09-17 13:36:56 PDT
[iOS] Enable MSE in WKWebViews by default on iPad
Comment 1 Radar WebKit Bug Importer 2021-09-17 13:37:30 PDT
<rdar://problem/83253822>
Comment 2 Jer Noble 2021-09-17 13:43:23 PDT
Created attachment 438509 [details]
Patch
Comment 3 Jer Noble 2021-09-17 13:54:15 PDT
Created attachment 438512 [details]
Patch
Comment 4 Jer Noble 2021-09-17 13:57:27 PDT
Created attachment 438513 [details]
Patch
Comment 5 Jer Noble 2021-09-20 08:59:13 PDT
Created attachment 438685 [details]
Patch
Comment 6 Jer Noble 2021-09-20 09:22:06 PDT
Created attachment 438686 [details]
Patch
Comment 7 Sam Weinig 2021-09-20 13:25:04 PDT
Comment on attachment 438686 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=438686&action=review

> Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:317
> +#if !PLATFORM(IOS_FAMILY)
> +bool defaultMediaSourceEnabled()
> +{
> +    return true;
> +}
> +#endif

There should be no reason for this. You can just add PLATFORM(IOS_FAMILY) as part of the predicate in WebPreferences.yaml
Comment 8 Jer Noble 2021-09-20 13:45:56 PDT
Created attachment 438724 [details]
Patch
Comment 9 Jer Noble 2021-09-20 14:03:17 PDT
Created attachment 438726 [details]
Patch
Comment 10 Jer Noble 2021-09-20 14:25:50 PDT
Created attachment 438728 [details]
Patch
Comment 11 EWS 2021-09-21 11:26:53 PDT
Committed r282829 (241960@main): <https://commits.webkit.org/241960@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438728 [details].