⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280573 in webkit


Ignore:
Timestamp:
Aug 2, 2021, 5:49:37 PM (5 years ago)
Author:
Jean-Yves Avenard
Message:

[WebAudio] Add webm/vorbis container support
​https://bugs.webkit.org/show_bug.cgi?id=228139
rdar://80883073

Reviewed by Jer Noble.

Source/WebKit:

Access to the com.apple.audio.AudioComponentRegistrar is denied by the sandbox which
prevents registering the Vorbis Audio Component. So we instantiate the decoder right before
setting up the sandbox.
This is a workaround for rdar://81137953.
Test: webaudio/decode-audio-data-webm-vorbis.html

  • WebProcess/cocoa/WebProcessCocoa.mm:

(WebKit::WebProcess::initializeSandbox):

LayoutTests:

  • platform/mac/TestExpectations:
  • webaudio/decode-audio-data-webm-vorbis-expected.txt: Added.
  • webaudio/decode-audio-data-webm-vorbis.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r280563 r280573  
     12021-08-02  Jean-Yves Avenard  <jya@apple.com>
     2
     3        [WebAudio] Add webm/vorbis container support
     4        https://bugs.webkit.org/show_bug.cgi?id=228139
     5        rdar://80883073
     6
     7        Reviewed by Jer Noble.
     8
     9        * platform/mac/TestExpectations:
     10        * webaudio/decode-audio-data-webm-vorbis-expected.txt: Added.
     11        * webaudio/decode-audio-data-webm-vorbis.html: Added.
     12
    1132021-08-02  Eric Hutchison  <ehutchison@apple.com>
    214
  • trunk/LayoutTests/platform/mac/TestExpectations

    r280547 r280573  
    17171717[ Catalina Mojave BigSur ] media/media-source/media-webm-opus-partial-abort.html [ Skip ]
    17181718[ Catalina Mojave BigSur ] webaudio/decode-audio-data-webm-opus.html [ Skip ]
     1719[ Catalina Mojave BigSur ] webaudio/decode-audio-data-webm-vorbis.html [ Skip ]
    17191720
    17201721webkit.org/b/214422 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/suspend-after-construct.html [ Pass Failure ]
  • trunk/Source/WebKit/ChangeLog

    r280568 r280573  
     12021-08-02  Jean-Yves Avenard  <jya@apple.com>
     2
     3        [WebAudio] Add webm/vorbis container support
     4        https://bugs.webkit.org/show_bug.cgi?id=228139
     5        rdar://80883073
     6
     7        Reviewed by Jer Noble.
     8
     9        Access to the com.apple.audio.AudioComponentRegistrar is denied by the sandbox which
     10        prevents registering the Vorbis Audio Component. So we instantiate the decoder right before
     11        setting up the sandbox.
     12        This is a workaround for rdar://81137953.
     13        Test: webaudio/decode-audio-data-webm-vorbis.html
     14
     15        * WebProcess/cocoa/WebProcessCocoa.mm:
     16        (WebKit::WebProcess::initializeSandbox):
     17
    1182021-08-02  Jean-Yves Avenard  <jya@apple.com>
    219
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r280542 r280573  
    8282#import <WebCore/UTIUtilities.h>
    8383#import <WebCore/VersionChecks.h>
     84#import <WebCore/WebMAudioUtilitiesCocoa.h>
    8485#import <algorithm>
    8586#import <dispatch/dispatch.h>
    … …  
    745746    auto webKitBundle = [NSBundle bundleWithIdentifier:@"com.apple.WebKit"];
    746747
     748    // We need to initialize the Vorbis decoder before the sandbox gets setup; this is a one off action.
     749    WebCore::registerVorbisDecoderIfNeeded();
     750
    747751    sandboxParameters.setOverrideSandboxProfilePath(makeString(String([webKitBundle resourcePath]), "/com.apple.WebProcess.sb"));
    748752
Note: See TracChangeset for help on using the changeset viewer.