diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-05 22:11:53 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-08 19:32:47 +0200 |
commit | 1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a (patch) | |
tree | 5db8d228b87c3349ada193df5e3397dbb62bb0c4 | |
parent | 684778cb2292e3ad6721a1bc820a2eeb3c6d0680 (diff) | |
download | uxp-2019.06.08.tar.gz |
Improve `origin-clean` algorithm based on our previous changes.v2019.06.08
- Instead of trying the failing refactored Mozilla way, simply add a
check where needed building on what was put in place previously.
-rw-r--r-- | dom/canvas/CanvasRenderingContext2D.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index 4849fda57e..111519c719 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -4219,6 +4219,12 @@ struct MOZ_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcess if (state->gradientStyles[style]) { // Gradient pattern = GetGradientFor(style); } else if (state->patternStyles[style]) { // Pattern + if (mCtx->mCanvasElement) { + CanvasUtils::DoDrawImageSecurityCheck( + mCtx->mCanvasElement, state->patternStyles[style]->mPrincipal, + state->patternStyles[style]->mForceWriteOnly, + state->patternStyles[style]->mCORSUsed); + } pattern = GetPatternFor(style); } else { MOZ_ASSERT(false, "Should never reach here."); |