summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-05 22:11:53 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-08 19:32:47 +0200
commit1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a (patch)
tree5db8d228b87c3349ada193df5e3397dbb62bb0c4 /dom
parent684778cb2292e3ad6721a1bc820a2eeb3c6d0680 (diff)
downloadUXP-1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a.tar
UXP-1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a.tar.gz
UXP-1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a.tar.lz
UXP-1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a.tar.xz
UXP-1530f48c27fb13d7cbd2708c9f0fcf2dabc6ed6a.zip
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.
Diffstat (limited to 'dom')
-rw-r--r--dom/canvas/CanvasRenderingContext2D.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp
index 4849fda57..111519c71 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.");