chore: fix ShouldFork impl, referrer stripping has been removed
refs: 1124329
This commit is contained in:
parent
c9007557e5
commit
74d1685523
2 changed files with 2 additions and 5 deletions
|
@ -163,13 +163,11 @@ bool AtomRendererClient::ShouldFork(blink::WebLocalFrame* frame,
|
|||
const GURL& url,
|
||||
const std::string& http_method,
|
||||
bool is_initial_navigation,
|
||||
bool is_server_redirect,
|
||||
bool* send_referrer) {
|
||||
bool is_server_redirect) {
|
||||
// Handle all the navigations and reloads in browser.
|
||||
// FIXME We only support GET here because http method will be ignored when
|
||||
// the OpenURLFromTab is triggered, which means form posting would not work,
|
||||
// we should solve this by patching Chromium in future.
|
||||
*send_referrer = true;
|
||||
return http_method == "GET";
|
||||
}
|
||||
|
||||
|
|
|
@ -51,8 +51,7 @@ class AtomRendererClient : public RendererClientBase {
|
|||
const GURL& url,
|
||||
const std::string& http_method,
|
||||
bool is_initial_navigation,
|
||||
bool is_server_redirect,
|
||||
bool* send_referrer) override;
|
||||
bool is_server_redirect) override;
|
||||
void DidInitializeWorkerContextOnWorkerThread(
|
||||
v8::Local<v8::Context> context) override;
|
||||
void WillDestroyWorkerContextOnWorkerThread(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue