Improve origin-clean algorithm

This commit is contained in:
wolfbeast 2019-05-27 19:19:27 +02:00 committed by Roy Tam
commit 85e68b684f
5 changed files with 41 additions and 39 deletions

View file

@ -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