mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245306: Devirtualize RefreshCompartmentPrincipal. r=smaug
This commit is contained in:
parent
7953ebc8a2
commit
33175b306a
@ -2272,7 +2272,7 @@ nsDocument::ResetToURI(nsIURI *aURI, nsILoadGroup *aLoadGroup,
|
||||
|
||||
// Refresh the principal on the compartment.
|
||||
if (nsPIDOMWindowInner* win = GetInnerWindow()) {
|
||||
win->RefreshCompartmentPrincipal();
|
||||
nsGlobalWindow::Cast(win)->RefreshCompartmentPrincipal();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -480,7 +480,7 @@ public:
|
||||
bool DispatchResizeEvent(const mozilla::CSSIntSize& aSize);
|
||||
|
||||
// Inner windows only.
|
||||
virtual void RefreshCompartmentPrincipal() override;
|
||||
void RefreshCompartmentPrincipal();
|
||||
|
||||
// For accessing protected field mFullScreen
|
||||
friend class FullscreenTransitionTask;
|
||||
|
@ -507,14 +507,6 @@ public:
|
||||
*/
|
||||
virtual bool DispatchCustomEvent(const nsAString& aEventName) = 0;
|
||||
|
||||
/**
|
||||
* Call when the document principal may have changed and the compartment
|
||||
* principal needs to be updated.
|
||||
*
|
||||
* Inner windows only.
|
||||
*/
|
||||
virtual void RefreshCompartmentPrincipal() = 0;
|
||||
|
||||
/**
|
||||
* Like nsIDOMWindow::Open, except that we don't navigate to the given URL.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user