Merge inbound to central, a=merge

MozReview-Commit-ID: DfRZi0gKjit
This commit is contained in:
Wes Kocher
2017-05-10 16:48:03 -07:00
142 changed files with 2341 additions and 1113 deletions

View File

@@ -5696,6 +5696,11 @@ nsDocShell::LoadPage(nsISupports* aPageDescriptor, uint32_t aDisplayType)
}
shEntry->SetURI(newUri);
shEntry->SetOriginalURI(nullptr);
// shEntry's current triggering principal is whoever loaded that page initially.
// But now we're doing another load of the page, via an API that is only exposed
// to system code. The triggering principal for this load should be the system
// principal.
shEntry->SetTriggeringPrincipal(nsContentUtils::GetSystemPrincipal());
}
rv = LoadHistoryEntry(shEntry, LOAD_HISTORY);