-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plumb experimental noise injection deeper into WebCore #10620
Plumb experimental noise injection deeper into WebCore #10620
Conversation
EWS run on previous version of this PR (hash 2f40e87) |
2f40e87
to
74494f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me, but I'm not familiar enough with workers (and service workers) to review those parts of the patch. Perhaps @cdumez could take a look as well?
EWS run on previous version of this PR (hash 74494f3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chris and I looked through this again; LGTM, with the extra check for RegistrableDomain
before adding it to the map!
74494f3
to
d102fd8
Compare
EWS run on current version of this PR (hash d102fd8) |
https://bugs.webkit.org/show_bug.cgi?id=252865 rdar://105853723 Reviewed by Wenson Hsieh. We now maintain site-specific "salt" values that will be used when deciding how noise should be applied. The application of noise is controlled by a policy flag that was previously added, and we move the decision-logic into the Document for simpler access. We plumb the site-specific salt through Workers and Worklets, as well as exposing it on the Document. This patch doesn't have any tests for this functionality yet because there aren't any behavior changes. * Source/WebCore/Modules/webaudio/AudioWorkletMessagingProxy.cpp: (WebCore::generateWorkletParameters): * Source/WebCore/Modules/webaudio/BaseAudioContext.cpp: (WebCore::BaseAudioContext::BaseAudioContext): (WebCore::noiseInjectionPolicy): Deleted. * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/dom/Document.cpp: (WebCore::Document::noiseInjectionPolicy const): (WebCore::Document::noiseInjectionHashSalt const): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/EmptyScriptExecutionContext.h: * Source/WebCore/dom/ScriptExecutionContext.h: * Source/WebCore/page/Page.cpp: (WebCore::Page::noiseInjectionHashSaltForDomain): * Source/WebCore/page/Page.h: * Source/WebCore/platform/NoiseInjectionPolicy.h: Renamed from Source/WebCore/Modules/webaudio/NoiseInjectionPolicy.h. * Source/WebCore/workers/WorkerGlobalScope.cpp: (WebCore::WorkerGlobalScope::WorkerGlobalScope): * Source/WebCore/workers/WorkerMessagingProxy.cpp: (WebCore::WorkerMessagingProxy::startWorkerGlobalScope): * Source/WebCore/workers/WorkerOrWorkletGlobalScope.cpp: (WebCore::WorkerOrWorkletGlobalScope::WorkerOrWorkletGlobalScope): * Source/WebCore/workers/WorkerOrWorkletGlobalScope.h: (WebCore::WorkerOrWorkletGlobalScope::WorkerOrWorkletGlobalScope): * Source/WebCore/workers/WorkerThread.cpp: (WebCore::WorkerParameters::isolatedCopy const): * Source/WebCore/workers/WorkerThread.h: * Source/WebCore/workers/service/context/ServiceWorkerThread.cpp: (WebCore::generateWorkerParameters): (WebCore::ServiceWorkerThread::ServiceWorkerThread): * Source/WebCore/workers/service/context/ServiceWorkerThread.h: * Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp: (WebCore::ServiceWorkerThreadProxy::ServiceWorkerThreadProxy): * Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.cpp: (WebCore::generateWorkerParameters): * Source/WebCore/worklets/WorkletGlobalScope.cpp: (WebCore::WorkletGlobalScope::WorkletGlobalScope): * Source/WebCore/worklets/WorkletParameters.h: (WebCore::WorkletParameters::isolatedCopy const): (WebCore::WorkletParameters::isolatedCopy): Canonical link: https://commits.webkit.org/261044@main
d102fd8
to
03aaaf7
Compare
Committed 261044@main (03aaaf7): https://commits.webkit.org/261044@main Reviewed commits have been landed. Closing PR #10620 and removing active labels. |
03aaaf7
d102fd8
π§ͺ ios-wk2π§ͺ api-macπ§ͺ api-iosπ§ͺ mac-AS-debug-wk2