Bug 1566215 - Part 6: Undo the insecure URI loading exception for the Layout Debugger. r=dbaron

Differential Revision: https://phabricator.services.mozilla.com/D38416
This commit is contained in:
Cameron McCormack
2019-07-22 04:48:46 +00:00
parent 8e014a2cbf
commit ef94bb8cdd
2 changed files with 0 additions and 15 deletions

View File

@@ -119,6 +119,3 @@ LOCAL_INCLUDES += [
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
if CONFIG['MOZ_LAYOUT_DEBUGGER']:
DEFINES['MOZ_LAYOUT_DEBUGGER'] = True

View File

@@ -9608,18 +9608,6 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState,
}
}
}
#ifdef MOZ_LAYOUT_DEBUGGER
// Also allow loads in the layout debugger window.
nsCOMPtr<nsIDocShellTreeItem> rootItem;
GetRootTreeItem(getter_AddRefs(rootItem));
nsCOMPtr<nsIWebNavigation> root = do_QueryInterface(rootItem);
nsCOMPtr<nsIURI> rootURL;
root->GetCurrentURI(getter_AddRefs(rootURL));
if (rootURL && rootURL->GetSpecOrDefault().EqualsLiteral(
"chrome://layoutdebug/content/layoutdebug.xul")) {
break;
}
#endif
// Final exception for some legacy automated tests:
if (xpc::IsInAutomation() &&
Preferences::GetBool("security.allow_unsafe_parent_loads", false)) {