Bug 1142727 - Do not intercept sandboxed iframes with service workers; r=nsm

This is temporary until we clarify what we want to do with these
iframes in the spec.
This commit is contained in:
Ehsan Akhgari
2015-03-24 13:59:07 -04:00
parent ea4194dbb5
commit 6ef213d89d
8 changed files with 113 additions and 0 deletions

View File

@@ -13950,6 +13950,11 @@ NS_IMETHODIMP
nsDocShell::ShouldPrepareForIntercept(nsIURI* aURI, bool aIsNavigate, bool* aShouldIntercept)
{
*aShouldIntercept = false;
if (mSandboxFlags) {
// If we're sandboxed, don't intercept.
return NS_OK;
}
nsCOMPtr<nsIServiceWorkerManager> swm = mozilla::services::GetServiceWorkerManager();
if (!swm) {
return NS_OK;