Bug 1172796 - Part 2: Add write-only flag for origin-clean check. r=roc

This commit is contained in:
Morris Tseng
2015-12-18 14:52:17 +08:00
parent a600a2a86f
commit d68a981993
3 changed files with 21 additions and 3 deletions

View File

@@ -783,6 +783,10 @@ HTMLCanvasElement::TransferControlToOffscreen(ErrorResult& aRv)
sz.height,
GetCompositorBackendType(),
renderer);
if (mWriteOnly) {
mOffscreenCanvas->SetWriteOnly();
}
if (!mContextObserver) {
mContextObserver = new HTMLCanvasElementObserver(this);
}