mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 01:17:34 +09:00
Improve origin-clean algorithm
This commit is contained in:
parent
21eef2bff9
commit
85e68b684f
5 changed files with 41 additions and 39 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue