summaryrefslogtreecommitdiff
path: root/dom/canvas/CanvasUtils.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-05-27 19:19:27 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-27 19:19:27 +0200
commitfb1b45e5fcb82e76e303665fbb9d04fb2a800b31 (patch)
tree97baa867e3534b1bd5153067d2bd853462a4b12b /dom/canvas/CanvasUtils.h
parent47c52f2dc2cc4eb4f5582a7ca50b682548b1708c (diff)
downloaduxp-fb1b45e5fcb82e76e303665fbb9d04fb2a800b31.tar.gz
Improve origin-clean algorithm
Diffstat (limited to 'dom/canvas/CanvasUtils.h')
-rw-r--r--dom/canvas/CanvasUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/canvas/CanvasUtils.h b/dom/canvas/CanvasUtils.h
index a69b8bd729..264b2b5bbd 100644
--- a/dom/canvas/CanvasUtils.h
+++ b/dom/canvas/CanvasUtils.h
@@ -11,6 +11,7 @@
#include "mozilla/dom/ToJSValue.h"
#include "jsapi.h"
#include "mozilla/FloatingPoint.h"
+#include "nsLayoutUtils.h"
class nsIPrincipal;
@@ -156,6 +157,10 @@ DashArrayToJSVal(nsTArray<T>& dashes,
}
}
+// returns true if write-only mode must used for this principal based on
+// the incumbent global.
+bool CheckWriteOnlySecurity(bool aCORSUsed, nsIPrincipal* aPrincipal);
+
} // namespace CanvasUtils
} // namespace mozilla