Bug 159967 - [iPhone] Playing a video on tudou.com plays only sound, no video
Summary: [iPhone] Playing a video on tudou.com plays only sound, no video
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on: 160003
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-20 01:13 PDT by Myles C. Maxfield
Modified: 2016-07-21 16:56 PDT (History)
19 users (show)

See Also:


Attachments
WIP (42.75 KB, patch)
2016-07-20 01:15 PDT, Myles C. Maxfield
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-yosemite (889.19 KB, application/zip)
2016-07-20 07:52 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-yosemite (1.54 MB, application/zip)
2016-07-20 08:01 PDT, Build Bot
no flags Details
WIP (42.83 KB, patch)
2016-07-20 09:17 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (895.25 KB, application/zip)
2016-07-20 09:55 PDT, Build Bot
no flags Details
WIP (49.54 KB, patch)
2016-07-20 10:24 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (53.95 KB, patch)
2016-07-20 12:29 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (53.04 KB, patch)
2016-07-20 13:25 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (52.58 KB, patch)
2016-07-20 13:56 PDT, Myles C. Maxfield
jonlee: review+
Details | Formatted Diff | Diff
Needs WK2 Review (55.06 KB, patch)
2016-07-20 20:01 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch for committing (55.21 KB, patch)
2016-07-21 12:49 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch for committing (55.25 KB, patch)
2016-07-21 12:50 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2016-07-20 01:13:49 PDT
[iPhone] Playing a video on tudou.com plays only sound, no video
Comment 1 Myles C. Maxfield 2016-07-20 01:15:18 PDT
Created attachment 284091 [details]
WIP
Comment 2 WebKit Commit Bot 2016-07-20 01:16:28 PDT
Attachment 284091 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:9:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 22 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Build Bot 2016-07-20 07:52:02 PDT
Comment on attachment 284091 [details]
WIP

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

New failing tests:
media/video-playsinline.html
Comment 4 Build Bot 2016-07-20 07:52:06 PDT
Created attachment 284104 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 5 Build Bot 2016-07-20 08:01:15 PDT
Comment on attachment 284091 [details]
WIP

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

New failing tests:
media/video-playsinline.html
Comment 6 Build Bot 2016-07-20 08:01:18 PDT
Created attachment 284105 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 7 Myles C. Maxfield 2016-07-20 09:17:19 PDT
Created attachment 284110 [details]
WIP
Comment 8 WebKit Commit Bot 2016-07-20 09:19:50 PDT
Attachment 284110 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:9:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 22 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Build Bot 2016-07-20 09:55:27 PDT
Comment on attachment 284110 [details]
WIP

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

New failing tests:
media/video-playsinline.html
Comment 10 Build Bot 2016-07-20 09:55:30 PDT
Created attachment 284114 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 11 Jon Lee 2016-07-20 10:02:36 PDT
rdar://problem/26964090
Comment 12 Myles C. Maxfield 2016-07-20 10:24:43 PDT
Created attachment 284121 [details]
WIP
Comment 13 Jon Lee 2016-07-20 11:22:44 PDT
Comment on attachment 284121 [details]
WIP

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

> Source/WebCore/html/MediaElementSession.cpp:458
> +    bool requiresPlaysInline = settings->fullscreenMediaPlaybackRequiresPlaysInlineAttributeAbsence();

The phrase construction is awkward. I understand how there could be confusion with two "requires"--how about allowsInlineMediaPlaybackWithPlaysInlineAttribute and allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute
Comment 14 Jon Lee 2016-07-20 11:28:16 PDT
Comment on attachment 284121 [details]
WIP

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

>> Source/WebCore/html/MediaElementSession.cpp:458
>> +    bool requiresPlaysInline = settings->fullscreenMediaPlaybackRequiresPlaysInlineAttributeAbsence();
> 
> The phrase construction is awkward. I understand how there could be confusion with two "requires"--how about allowsInlineMediaPlaybackWithPlaysInlineAttribute and allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute

By two "requires" I meant keeping the "inlineMediaPlaybackRequires" construct.
Comment 15 Myles C. Maxfield 2016-07-20 12:29:27 PDT
Created attachment 284138 [details]
Patch
Comment 16 Myles C. Maxfield 2016-07-20 13:25:34 PDT
Created attachment 284142 [details]
Patch
Comment 17 Jeremy Jones 2016-07-20 13:49:10 PDT
The new property name is much better.
*Absence version of the property name still appears in many places. Use the new name everywhere.
Comment 18 Myles C. Maxfield 2016-07-20 13:56:56 PDT
Created attachment 284144 [details]
Patch
Comment 19 Jeremy Jones 2016-07-20 14:03:39 PDT
Comment on attachment 284144 [details]
Patch

LGTM
Comment 20 Jon Lee 2016-07-20 14:23:25 PDT
Comment on attachment 284144 [details]
Patch

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

> Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h:198
> +// Defaults to false.

Not "true on iOS, false elsewhere."?

> Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h:202
> +// Defaults to false.

Ditto
Comment 21 Myles C. Maxfield 2016-07-20 15:42:58 PDT
Committed r203471: <http://trac.webkit.org/changeset/203471>
Comment 22 Myles C. Maxfield 2016-07-20 17:20:42 PDT
Mitz pointed out that, because this touches WK2, it needs to be reviewed by an owner.
Comment 23 WebKit Commit Bot 2016-07-20 17:43:07 PDT
Re-opened since this is blocked by bug 160003
Comment 24 Myles C. Maxfield 2016-07-20 20:01:32 PDT
Created attachment 284183 [details]
Needs WK2 Review
Comment 25 Anders Carlsson 2016-07-21 12:33:37 PDT
Comment on attachment 284183 [details]
Needs WK2 Review

WK2 part looks fine.
Comment 26 Myles C. Maxfield 2016-07-21 12:35:54 PDT
Comment on attachment 284183 [details]
Needs WK2 Review

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

> Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h:198
> +// Defaults to false.

I need to re-apply Jon's comment "true on iOS, false elsewhere."

> Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h:202
> +// Defaults to false.

Ditto.
Comment 27 Myles C. Maxfield 2016-07-21 12:49:11 PDT
Created attachment 284246 [details]
Patch for committing
Comment 28 Myles C. Maxfield 2016-07-21 12:50:18 PDT
Created attachment 284247 [details]
Patch for committing
Comment 29 WebKit Commit Bot 2016-07-21 13:20:21 PDT
Comment on attachment 284247 [details]
Patch for committing

Clearing flags on attachment: 284247

Committed r203520: <http://trac.webkit.org/changeset/203520>
Comment 30 Myles C. Maxfield 2016-07-21 16:56:49 PDT
Committed r203540: <http://trac.webkit.org/changeset/203540>