зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1864988
- Don't call CreateDataSourceSurfaceByCloning on null. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D194936
This commit is contained in:
Родитель
237520de90
Коммит
41ab84efb9
|
@ -6003,7 +6003,9 @@ nsresult CanvasRenderingContext2D::GetImageDataArray(
|
|||
if (!usePlaceholder &&
|
||||
ShouldResistFingerprinting(RFPTarget::CanvasRandomization)) {
|
||||
needRandomizePixels = true;
|
||||
readback = CreateDataSourceSurfaceByCloning(readback);
|
||||
if (readback) {
|
||||
readback = CreateDataSourceSurfaceByCloning(readback);
|
||||
}
|
||||
}
|
||||
|
||||
DataSourceSurface::MappedSurface rawData;
|
||||
|
|
Загрузка…
Ссылка в новой задаче