Bug 1799435 - Make RFP checks faster. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D161447
This commit is contained in:
@@ -5645,8 +5645,8 @@ void ClientWebGLContext::GetSupportedProfilesASTC(
|
||||
|
||||
bool ClientWebGLContext::ShouldResistFingerprinting() const {
|
||||
if (mCanvasElement) {
|
||||
// If we're constructed from a canvas element
|
||||
return nsContentUtils::ShouldResistFingerprinting(GetOwnerDoc());
|
||||
// If we're constructed from a canvas element.
|
||||
return mCanvasElement->OwnerDoc()->ShouldResistFingerprinting();
|
||||
}
|
||||
if (mOffscreenCanvas) {
|
||||
// If we're constructed from an offscreen canvas
|
||||
|
||||
Reference in New Issue
Block a user