mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 968804 - Part d: Add outer window assertions to SetInitialPrincipalToSubject; r=peterv
This commit is contained in:
parent
b91e2b5f83
commit
6bc9e22bcd
@ -2031,7 +2031,7 @@ nsGlobalWindow::WouldReuseInnerWindow(nsIDocument* aNewDocument)
|
||||
void
|
||||
nsGlobalWindow::SetInitialPrincipalToSubject()
|
||||
{
|
||||
FORWARD_TO_OUTER_VOID(SetInitialPrincipalToSubject, ());
|
||||
MOZ_ASSERT(IsOuterWindow());
|
||||
|
||||
// First, grab the subject principal.
|
||||
nsCOMPtr<nsIPrincipal> newWindowPrincipal = nsContentUtils::SubjectPrincipal();
|
||||
|
@ -434,6 +434,7 @@ public:
|
||||
virtual NS_HIDDEN_(void) SetIsBackground(bool aIsBackground);
|
||||
virtual NS_HIDDEN_(void) SetChromeEventHandler(mozilla::dom::EventTarget* aChromeEventHandler);
|
||||
|
||||
// Outer windows only.
|
||||
virtual NS_HIDDEN_(void) SetInitialPrincipalToSubject();
|
||||
|
||||
virtual NS_HIDDEN_(PopupControlState) PushPopupControlState(PopupControlState state, bool aForce) const;
|
||||
|
@ -278,6 +278,7 @@ public:
|
||||
|
||||
// Set the window up with an about:blank document with the current subject
|
||||
// principal.
|
||||
// Outer windows only.
|
||||
virtual void SetInitialPrincipalToSubject() = 0;
|
||||
|
||||
virtual PopupControlState PushPopupControlState(PopupControlState aState,
|
||||
|
Loading…
Reference in New Issue
Block a user