Bug 175831

Summary: Opt all Mac clients into document-level media user gesture quirks
Product: WebKit Reporter: Matt Rajca <mrajca>
Component: MediaAssignee: Matt Rajca <mrajca>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, eric.carlson, jer.noble, rniwa
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
none
Archive of layout-test-results from ews100 for mac-elcapitan
none
Archive of layout-test-results from ews117 for mac-elcapitan
none
Patch
buildbot: commit-queue-
Archive of layout-test-results from ews116 for mac-elcapitan
none
Patch none

Description Matt Rajca 2017-08-22 10:47:27 PDT
This un-breaks many of the sites that take a long time to load video ad elements on-demand.
Comment 1 Matt Rajca 2017-08-22 10:48:59 PDT
Created attachment 318765 [details]
Patch
Comment 2 Matt Rajca 2017-08-22 10:49:24 PDT
Not to be reviewed.
Comment 3 Build Bot 2017-08-22 11:41:59 PDT
Comment on attachment 318765 [details]
Patch

Attachment 318765 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/4362089

New failing tests:
http/tests/media/autoplay-if-audio-is-playing.html
Comment 4 Build Bot 2017-08-22 11:42:02 PDT
Created attachment 318777 [details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 5 Build Bot 2017-08-22 11:55:17 PDT
Comment on attachment 318765 [details]
Patch

Attachment 318765 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/4362270

New failing tests:
http/tests/media/autoplay-if-audio-is-playing.html
Comment 6 Build Bot 2017-08-22 11:55:19 PDT
Created attachment 318778 [details]
Archive of layout-test-results from ews100 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 7 Build Bot 2017-08-22 12:08:50 PDT
Comment on attachment 318765 [details]
Patch

Attachment 318765 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4362276

New failing tests:
http/tests/media/autoplay-if-audio-is-playing.html
Comment 8 Build Bot 2017-08-22 12:08:53 PDT
Created attachment 318779 [details]
Archive of layout-test-results from ews117 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 9 Matt Rajca 2017-08-22 13:39:06 PDT
Created attachment 318790 [details]
Patch
Comment 10 Matt Rajca 2017-08-22 13:43:53 PDT
<rdar://problem/33996723>
Comment 11 Build Bot 2017-08-22 16:22:58 PDT
Comment on attachment 318790 [details]
Patch

Attachment 318790 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4364207

New failing tests:
media/track/track-element-load-event.html
Comment 12 Build Bot 2017-08-22 16:23:00 PDT
Created attachment 318821 [details]
Archive of layout-test-results from ews116 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 13 Matt Rajca 2017-08-22 16:55:47 PDT
(In reply to Build Bot from comment #12)
> Created attachment 318821 [details]
> Archive of layout-test-results from ews116 for mac-elcapitan
> 
> The attached test failures were seen while running run-webkit-tests on the
> mac-debug-ews.
> Bot: ews116  Port: mac-elcapitan  Platform: Mac OS X 10.11.6

The Mac debug failure looks like an unrelated assertion failure in updating text track displays: ASSERT(m_mediaControlsHost);
Comment 14 Matt Rajca 2017-08-23 08:42:44 PDT
Created attachment 318873 [details]
Patch
Comment 15 Matt Rajca 2017-08-23 09:33:41 PDT
(In reply to Matt Rajca from comment #13)
> (In reply to Build Bot from comment #12)
> > Created attachment 318821 [details]
> > Archive of layout-test-results from ews116 for mac-elcapitan
> > 
> > The attached test failures were seen while running run-webkit-tests on the
> > mac-debug-ews.
> > Bot: ews116  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
> 
> The Mac debug failure looks like an unrelated assertion failure in updating
> text track displays: ASSERT(m_mediaControlsHost);

Re-running EWS fixed it.
Comment 16 Eric Carlson 2017-08-23 14:55:43 PDT
Comment on attachment 318873 [details]
Patch

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

> Source/WebCore/ChangeLog:3
> +        Opt all Mac clients into document-level media user gesture quirks.

"all Mac clients" is not accurate, can't any host app set needsSiteSpecificQuirks to true?
Comment 17 Matt Rajca 2017-08-23 16:20:22 PDT
(In reply to Eric Carlson from comment #16)
> Comment on attachment 318873 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318873&action=review
> 
> > Source/WebCore/ChangeLog:3
> > +        Opt all Mac clients into document-level media user gesture quirks.
> 
> "all Mac clients" is not accurate, can't any host app set
> needsSiteSpecificQuirks to true?

This quirk is under #if PLATFORM(MAC) so it doesn't affect iOS.
Comment 18 Eric Carlson 2017-08-23 16:24:55 PDT
Comment on attachment 318873 [details]
Patch

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

>>> Source/WebCore/ChangeLog:3
>>> +        Opt all Mac clients into document-level media user gesture quirks.
>> 
>> "all Mac clients" is not accurate, can't any host app set needsSiteSpecificQuirks to true?
> 
> This quirk is under #if PLATFORM(MAC) so it doesn't affect iOS.

Yes, but won't this change the behavior of a WebKit app on a non-macOS platform that calls settings.setNeedsSiteSpecificQuirks(true)?
Comment 19 Matt Rajca 2017-08-23 16:27:28 PDT
(In reply to Eric Carlson from comment #18)
> Comment on attachment 318873 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318873&action=review
> 
> >>> Source/WebCore/ChangeLog:3
> >>> +        Opt all Mac clients into document-level media user gesture quirks.
> >> 
> >> "all Mac clients" is not accurate, can't any host app set needsSiteSpecificQuirks to true?
> > 
> > This quirk is under #if PLATFORM(MAC) so it doesn't affect iOS.
> 
> Yes, but won't this change the behavior of a WebKit app on a non-macOS
> platform that calls settings.setNeedsSiteSpecificQuirks(true)?

No. It only applies to Mac clients that opt-into quirks. Do we want it to run on non-macOS platforms as well?
Comment 20 Matt Rajca 2017-08-30 11:45:21 PDT
Committed r221386: <http://trac.webkit.org/changeset/221386>