summaryrefslogtreecommitdiffstats
path: root/dom/canvas/CanvasUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/CanvasUtils.cpp')
-rw-r--r--dom/canvas/CanvasUtils.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/dom/canvas/CanvasUtils.cpp b/dom/canvas/CanvasUtils.cpp
index 6c9addf59..c7cfed83f 100644
--- a/dom/canvas/CanvasUtils.cpp
+++ b/dom/canvas/CanvasUtils.cpp
@@ -126,25 +126,5 @@ CoerceDouble(const JS::Value& v, double* d)
return true;
}
-bool CheckWriteOnlySecurity(bool aCORSUsed, nsIPrincipal* aPrincipal) {
- if (!aPrincipal) {
- return true;
- }
-
- if (!aCORSUsed) {
- nsIGlobalObject* incumbentSettingsObject = dom::GetIncumbentGlobal();
- if (NS_WARN_IF(!incumbentSettingsObject)) {
- return true;
- }
-
- nsIPrincipal* principal = incumbentSettingsObject->PrincipalOrNull();
- if (NS_WARN_IF(!principal) || !(principal->Subsumes(aPrincipal))) {
- return true;
- }
- }
-
- return false;
-}
-
} // namespace CanvasUtils
} // namespace mozilla