[webkit-changes] [WebKit/WebKit] 841d41: Limit DOMAudioSession to third-party iframes havin...

youennf noreply at github.com
Wed Jan 4 01:22:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 841d41b575bcfd5c59e96ca4d6417ee1a5ea6f7f
      https://github.com/WebKit/WebKit/commit/841d41b575bcfd5c59e96ca4d6417ee1a5ea6f7f
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

  Changed paths:
    A LayoutTests/http/tests/webrtc/audioSessionInFrames-expected.txt
    A LayoutTests/http/tests/webrtc/audioSessionInFrames.html
    A LayoutTests/http/tests/webrtc/resources/audioSessionFrame.html
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/Modules/audiosession/DOMAudioSession.cpp

  Log Message:
  -----------
  Limit DOMAudioSession to third-party iframes having microphone access
https://bugs.webkit.org/show_bug.cgi?id=249577
rdar://problem/103514560

Reviewed by Eric Carlson.

We might want to allow access to DOMAudioSession to more third party iframes in the future.
For now, since the main use case is microphone/WebRTC related, let's reduce access to those iframes that can access microphones.

* LayoutTests/http/tests/webrtc/audioSessionInFrames-expected.txt: Added.
* LayoutTests/http/tests/webrtc/audioSessionInFrames.html: Added.
* LayoutTests/http/tests/webrtc/resources/audioSessionFrame.html: Added.
* LayoutTests/platform/glib/TestExpectations:
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WebCore/Modules/audiosession/DOMAudioSession.cpp:
(WebCore::DOMAudioSession::setType):
(WebCore::DOMAudioSession::type const):
(WebCore::DOMAudioSession::state const):
(WebCore::DOMAudioSession::scheduleStateChangeEvent):

Canonical link: https://commits.webkit.org/258423@main




More information about the webkit-changes mailing list