Enable plznavigate aka browser side navigation (#12535)
* enable plznavigate code path * AtomBrowserClient::GetGeolocationApiKey returns the right default * use IsLoadingToDifferentDocument to identify top level navigation in mainFrame * use candidate site instance when available * spec: don't test httpReferrer option for file origin * update libcc ref * affinity: only group same site in this mode * plznavigate: don't emit did-get-response-details event for blob scheme
This commit is contained in:
parent
f8b8dc1494
commit
65e8199a93
6 changed files with 61 additions and 59 deletions
|
@ -128,11 +128,6 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
|
|||
void AtomMainDelegate::PreSandboxStartup() {
|
||||
brightray::MainDelegate::PreSandboxStartup();
|
||||
|
||||
// Set google API key.
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
if (!env->HasVar("GOOGLE_API_KEY"))
|
||||
env->SetVar("GOOGLE_API_KEY", GOOGLEAPIS_API_KEY);
|
||||
|
||||
auto command_line = base::CommandLine::ForCurrentProcess();
|
||||
std::string process_type = command_line->GetSwitchValueASCII(
|
||||
::switches::kProcessType);
|
||||
|
@ -152,9 +147,6 @@ void AtomMainDelegate::PreSandboxStartup() {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO(deepak1556): Fix and re-enable the plznavigation code path.
|
||||
command_line->AppendSwitch(::switches::kDisableBrowserSideNavigation);
|
||||
|
||||
// Allow file:// URIs to read other file:// URIs by default.
|
||||
command_line->AppendSwitch(::switches::kAllowFileAccessFromFiles);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue