-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further improvements for fingerprinting mitigations
- Loading branch information
Showing
2 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
patches/BRM043_AudioBuffer-AnalyserNode-fingerprinting-mitigations-via-IDL.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
From: csagan5 <32685696+csagan5@users.noreply.github.com> | ||
Date: Sun, 25 Mar 2018 21:49:37 +0200 | ||
Subject: AudioBuffer, AnalyserNode: fingerprinting mitigations via IDL | ||
|
||
--- | ||
third_party/WebKit/Source/modules/webaudio/AnalyserNode.idl | 8 ++++---- | ||
third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl | 4 ++-- | ||
2 files changed, 6 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.idl b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.idl | ||
--- a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.idl | ||
+++ b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.idl | ||
@@ -42,10 +42,10 @@ interface AnalyserNode : AudioNode { | ||
|
||
// Copies the current frequency data into the passed array. | ||
// If the array has fewer elements than the frequencyBinCount, the excess elements will be dropped. | ||
- void getFloatFrequencyData(Float32Array array); | ||
- void getByteFrequencyData(Uint8Array array); | ||
+ //void getFloatFrequencyData(Float32Array array); | ||
+ //void getByteFrequencyData(Uint8Array array); | ||
|
||
// Real-time waveform data | ||
- void getFloatTimeDomainData(Float32Array array); | ||
- void getByteTimeDomainData(Uint8Array array); | ||
+ //void getFloatTimeDomainData(Float32Array array); | ||
+ //void getByteTimeDomainData(Uint8Array array); | ||
}; | ||
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl | ||
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl | ||
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl | ||
@@ -38,7 +38,7 @@ | ||
|
||
// Channel access | ||
readonly attribute unsigned long numberOfChannels; | ||
- [RaisesException] Float32Array getChannelData(unsigned long channelIndex); | ||
- [RaisesException] void copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0); | ||
+ //[RaisesException] Float32Array getChannelData(unsigned long channelIndex); | ||
+ //[RaisesException] void copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0); | ||
[RaisesException] void copyToChannel(Float32Array source, long channelNumber, optional unsigned long startInChannel = 0); | ||
}; | ||
-- | ||
2.7.4 | ||
|