Bug 145228 - [Mac] Audio tracks tagged as 'describes-video' are not automatically selected when that system accessibility option is set.
Summary: [Mac] Audio tracks tagged as 'describes-video' are not automatically selected...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords:
Depends on: 145510
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-20 16:02 PDT by Jer Noble
Modified: 2015-12-02 13:25 PST (History)
4 users (show)

See Also:


Attachments
Patch (73.95 KB, patch)
2015-05-20 16:15 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews100 for mac-mavericks (1.03 MB, application/zip)
2015-05-20 16:41 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (1.09 MB, application/zip)
2015-05-20 16:52 PDT, Build Bot
no flags Details
Patch (76.23 KB, patch)
2015-05-20 21:42 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (531.81 KB, application/zip)
2015-05-20 22:20 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (585.44 KB, application/zip)
2015-05-20 22:23 PDT, Build Bot
no flags Details
Patch (80.92 KB, patch)
2015-05-20 23:04 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (40.45 KB, patch)
2015-05-21 11:02 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (81.15 KB, patch)
2015-05-21 12:20 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (525.35 KB, application/zip)
2015-05-21 12:56 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (574.06 KB, application/zip)
2015-05-21 12:59 PDT, Build Bot
no flags Details
Patch (992.20 KB, patch)
2015-05-21 17:49 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (537.92 KB, application/zip)
2015-05-21 18:25 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (657.55 KB, application/zip)
2015-05-21 18:39 PDT, Build Bot
no flags Details
Patch (992.90 KB, patch)
2015-05-22 09:25 PDT, Jer Noble
eric.carlson: review+
Details | Formatted Diff | Diff
Patch (992.96 KB, patch)
2015-05-22 13:08 PDT, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2015-05-20 16:02:20 PDT
[Mac] Audio tracks tagged as 'describes-video' are not automatically selected when that system accessibility option is set.
Comment 1 Jer Noble 2015-05-20 16:15:02 PDT
Created attachment 253472 [details]
Patch
Comment 2 Build Bot 2015-05-20 16:41:25 PDT
Comment on attachment 253472 [details]
Patch

Attachment 253472 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/4800623719481344

Number of test failures exceeded the failure limit.
Comment 3 Build Bot 2015-05-20 16:41:27 PDT
Created attachment 253475 [details]
Archive of layout-test-results from ews100 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 4 Build Bot 2015-05-20 16:52:10 PDT
Comment on attachment 253472 [details]
Patch

Attachment 253472 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5548548250664960

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2015-05-20 16:52:12 PDT
Created attachment 253477 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 6 Jer Noble 2015-05-20 21:42:59 PDT
Created attachment 253501 [details]
Patch
Comment 7 Build Bot 2015-05-20 22:20:18 PDT
Comment on attachment 253501 [details]
Patch

Attachment 253501 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5934523674001408

New failing tests:
media/accessiblity-describes-video.html
Comment 8 Build Bot 2015-05-20 22:20:21 PDT
Created attachment 253503 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 9 Build Bot 2015-05-20 22:23:36 PDT
Comment on attachment 253501 [details]
Patch

Attachment 253501 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5655257786875904

New failing tests:
media/accessiblity-describes-video.html
Comment 10 Build Bot 2015-05-20 22:23:39 PDT
Created attachment 253504 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 11 Jer Noble 2015-05-20 23:04:05 PDT
Created attachment 253506 [details]
Patch

Fixes for iOS, Win, and OS X Mavericks.
Comment 12 WebKit Commit Bot 2015-05-20 23:05:59 PDT
Attachment 253506 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/SoftLinking.h:453:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:466:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:471:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:297:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 4 in 28 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Jer Noble 2015-05-21 11:02:10 PDT
Created attachment 253534 [details]
Patch
Comment 14 WebKit Commit Bot 2015-05-21 11:03:42 PDT
Attachment 253534 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/SoftLinking.h:453:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:464:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:469:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:287:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:298:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:303:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 6 in 21 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Jer Noble 2015-05-21 12:20:08 PDT
Created attachment 253537 [details]
Patch
Comment 16 WebKit Commit Bot 2015-05-21 12:21:32 PDT
Attachment 253537 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/SoftLinking.h:453:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:464:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:469:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:287:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:298:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:303:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 6 in 28 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 17 Build Bot 2015-05-21 12:56:23 PDT
Comment on attachment 253537 [details]
Patch

Attachment 253537 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6116733769220096

New failing tests:
media/accessiblity-describes-video.html
Comment 18 Build Bot 2015-05-21 12:56:26 PDT
Created attachment 253538 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 19 Build Bot 2015-05-21 12:59:29 PDT
Comment on attachment 253537 [details]
Patch

Attachment 253537 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6557673365438464

New failing tests:
media/accessiblity-describes-video.html
Comment 20 Build Bot 2015-05-21 12:59:31 PDT
Created attachment 253539 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 21 Jer Noble 2015-05-21 17:49:38 PDT
Created attachment 253563 [details]
Patch

Tests were failing because I forgot to include the new test media file in the patch. Things should pass the EWS now.
Comment 22 WebKit Commit Bot 2015-05-21 17:52:56 PDT
Attachment 253563 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/SoftLinking.h:453:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:464:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:469:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:287:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:298:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:303:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 6 in 28 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 23 Build Bot 2015-05-21 18:25:26 PDT
Comment on attachment 253563 [details]
Patch

Attachment 253563 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5362614821453824

New failing tests:
media/accessiblity-describes-video.html
Comment 24 Build Bot 2015-05-21 18:25:29 PDT
Created attachment 253569 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 25 Build Bot 2015-05-21 18:39:19 PDT
Comment on attachment 253563 [details]
Patch

Attachment 253563 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4608644050059264

New failing tests:
media/accessiblity-describes-video.html
Comment 26 Build Bot 2015-05-21 18:39:23 PDT
Created attachment 253571 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 27 Jer Noble 2015-05-22 09:25:04 PDT
Created attachment 253591 [details]
Patch

Turns out, media selection groups for non-HLS media doesn't really work in Mavericks; skipping the test there.
Comment 28 Eric Carlson 2015-05-22 09:55:33 PDT
Comment on attachment 253591 [details]
Patch

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

> Source/WebCore/ChangeLog:32
> +        * page/CaptionUserPreferences.cpp:
> +        (WebCore::CaptionUserPreferences::setPreferredAudioCharacteristic): Simple setter.
> +        (WebCore::CaptionUserPreferences::preferredAudioCharacteristics): Simple getter.
> +        * page/CaptionUserPreferences.h:
> +        * page/CaptionUserPreferencesMediaAF.cpp:
> +        (WebCore::CaptionUserPreferencesMediaAF::~CaptionUserPreferencesMediaAF): Unregister for audio characteristics change notifications.
> +        (WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges): Register for same.
> +        (WebCore::CaptionUserPreferencesMediaAF::setPreferredAudioCharacteristic): If in testing mode, pass to superclass; otherwise no-op.
> +        (WebCore::CaptionUserPreferencesMediaAF::preferredAudioCharacteristics): If in testing mode, pass to superclass;
> +            otherwise, ask the media accessibility framework.
> +        * page/CaptionUserPreferencesMediaAF.h:

We should probably rename these files in a follow up patch since they aren't caption specific any more. UserMediaAccessibilityPreferences or MediaAccessibilityUserPreferences?
Comment 29 Jer Noble 2015-05-22 13:08:20 PDT
Created attachment 253602 [details]
Patch
Comment 30 Jer Noble 2015-05-22 13:09:49 PDT
(In reply to comment #28)
> Comment on attachment 253591 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=253591&action=review
> 
> > Source/WebCore/ChangeLog:32
> > +        * page/CaptionUserPreferences.cpp:
> > +        (WebCore::CaptionUserPreferences::setPreferredAudioCharacteristic): Simple setter.
> > +        (WebCore::CaptionUserPreferences::preferredAudioCharacteristics): Simple getter.
> > +        * page/CaptionUserPreferences.h:
> > +        * page/CaptionUserPreferencesMediaAF.cpp:
> > +        (WebCore::CaptionUserPreferencesMediaAF::~CaptionUserPreferencesMediaAF): Unregister for audio characteristics change notifications.
> > +        (WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges): Register for same.
> > +        (WebCore::CaptionUserPreferencesMediaAF::setPreferredAudioCharacteristic): If in testing mode, pass to superclass; otherwise no-op.
> > +        (WebCore::CaptionUserPreferencesMediaAF::preferredAudioCharacteristics): If in testing mode, pass to superclass;
> > +            otherwise, ask the media accessibility framework.
> > +        * page/CaptionUserPreferencesMediaAF.h:
> 
> We should probably rename these files in a follow up patch since they aren't
> caption specific any more. UserMediaAccessibilityPreferences or
> MediaAccessibilityUserPreferences?

Yeah. MediaAccessibilityUserPreferences maybe, otherwise it sounds a bit too much like "preferences for accessibility of user media".
Comment 31 WebKit Commit Bot 2015-05-22 13:10:56 PDT
Attachment 253602 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/SoftLinking.h:453:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:464:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mac/SoftLinking.h:469:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:287:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:298:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/win/SoftLinking.h:303:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 6 in 29 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 32 WebKit Commit Bot 2015-05-22 16:15:56 PDT
Comment on attachment 253602 [details]
Patch

Clearing flags on attachment: 253602

Committed r184799: <http://trac.webkit.org/changeset/184799>
Comment 33 Alexey Proskuryakov 2015-05-22 17:21:33 PDT
media/accessiblity-describes-video.html is broken on bots:

https://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=media%2Faccessiblity-describes-video.html
Comment 34 Jer Noble 2015-05-22 18:26:13 PDT
Hm; they pass locally.  I'll investigate this. The hls/ version of this test seems to be working fine on all bots, so I think it's safe to Skip this test while I figure out what's going on.
Comment 35 Alexey Proskuryakov 2015-05-22 22:51:18 PDT
OK, marked as flaky in r184817 (it sometimes passes, but usually fails).