diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-27 19:19:27 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-28 18:19:59 +0200 |
commit | e69b3f567c4b8957cc09ba4359e84939f77781c5 (patch) | |
tree | fb7fda7196c860870510dccc421cc1224db08352 /dom/canvas/CanvasUtils.h | |
parent | bce405101e67cbcae222fbc5e96d682aff981372 (diff) | |
download | UXP-e69b3f567c4b8957cc09ba4359e84939f77781c5.tar UXP-e69b3f567c4b8957cc09ba4359e84939f77781c5.tar.gz UXP-e69b3f567c4b8957cc09ba4359e84939f77781c5.tar.lz UXP-e69b3f567c4b8957cc09ba4359e84939f77781c5.tar.xz UXP-e69b3f567c4b8957cc09ba4359e84939f77781c5.zip |
Improve origin-clean algorithm
Diffstat (limited to 'dom/canvas/CanvasUtils.h')
-rw-r--r-- | dom/canvas/CanvasUtils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/canvas/CanvasUtils.h b/dom/canvas/CanvasUtils.h index a69b8bd72..264b2b5bb 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 |