Rename httpreferrer to httpReferrer, useragent to userAgent.
This commit is contained in:
parent
bf1765f941
commit
488801e244
2 changed files with 4 additions and 4 deletions
|
@ -430,12 +430,12 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
|
||||||
content::NavigationController::LoadURLParams params(url);
|
content::NavigationController::LoadURLParams params(url);
|
||||||
|
|
||||||
GURL http_referrer;
|
GURL http_referrer;
|
||||||
if (options.Get("httpreferrer", &http_referrer))
|
if (options.Get("httpReferrer", &http_referrer))
|
||||||
params.referrer = content::Referrer(http_referrer.GetAsReferrer(),
|
params.referrer = content::Referrer(http_referrer.GetAsReferrer(),
|
||||||
blink::WebReferrerPolicyDefault);
|
blink::WebReferrerPolicyDefault);
|
||||||
|
|
||||||
std::string user_agent;
|
std::string user_agent;
|
||||||
if (options.Get("useragent", &user_agent))
|
if (options.Get("userAgent", &user_agent))
|
||||||
SetUserAgent(user_agent);
|
SetUserAgent(user_agent);
|
||||||
|
|
||||||
params.transition_type = ui::PAGE_TRANSITION_TYPED;
|
params.transition_type = ui::PAGE_TRANSITION_TYPED;
|
||||||
|
|
|
@ -782,8 +782,8 @@ Emitted when the WebContents is destroyed.
|
||||||
|
|
||||||
* `url` URL
|
* `url` URL
|
||||||
* `options` URL
|
* `options` URL
|
||||||
* `httpreferrer` String - A HTTP Referer url
|
* `httpReferrer` String - A HTTP Referer url
|
||||||
* `useragent` String - A user agent originating the request
|
* `userAgent` String - A user agent originating the request
|
||||||
|
|
||||||
Loads the `url` in the window, the `url` must contains the protocol prefix,
|
Loads the `url` in the window, the `url` must contains the protocol prefix,
|
||||||
e.g. the `http://` or `file://`.
|
e.g. the `http://` or `file://`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue