merge inbound to central. r=merge a=merge

This commit is contained in:
Sebastian Hengst
2018-01-06 00:27:10 +02:00
142 changed files with 3655 additions and 2289 deletions

View File

@@ -352,6 +352,19 @@ public:
mAncestorOuterWindowIDs = mozilla::Move(aAncestorOuterWindowIDs);
}
bool CanSetOriginAttributes();
// Determine if a service worker is allowed to control a window in this
// docshell with the given URL. If there are any reasons it should not,
// this will return false. If true is returned then the window *may* be
// controlled. The caller must still consult either the parent controller
// or the ServiceWorkerManager to determine if a service worker should
// actually control the window.
//
// A nullptr URL is considered to be an about:blank window and will not
// trigger 3rd party iframe checks.
bool ServiceWorkerAllowedToControlWindow(nsIURI* aURI);
const mozilla::OriginAttributes& GetOriginAttributes()
{
return mOriginAttributes;