summaryrefslogtreecommitdiff
path: root/dom/base
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:11:43 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:11:43 +0200
commit2fe9cc6c25da7258355d3ccfc7fda67a2306248c (patch)
treec4b5e1230b13f243dfabcbffd26683dd29b8a974 /dom/base
parent4f5d34b4cf572a879fb79cd5a996e447706d6d55 (diff)
downloadaura-central-2fe9cc6c25da7258355d3ccfc7fda67a2306248c.tar.gz
Bug 1341754: Provide a valid triggeringPrincipal when calling SetURI in Location
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/nsGlobalWindow.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index 738703ef1..4ffccde9d 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -2521,8 +2521,13 @@ nsGlobalWindow::WouldReuseInnerWindow(nsIDocument* aNewDocument)
return false;
}
- NS_ASSERTION(NS_IsAboutBlank(mDoc->GetDocumentURI()),
- "How'd this happen?");
+#ifdef DEBUG
+{
+ nsCOMPtr<nsIURI> uri;
+ mDoc->GetDocumentURI()->CloneIgnoringRef(getter_AddRefs(uri));
+ NS_ASSERTION(NS_IsAboutBlank(uri), "How'd this happen?");
+}
+#endif
// Great, we're the original document, check for one of the other
// conditions.