fix: assign session to remote webContents (#23989)
* fix: assign session to remote webContents * fix: test name
This commit is contained in:
parent
a33c10c3ed
commit
04be1ac4a1
4 changed files with 24 additions and 1 deletions
|
@ -393,6 +393,9 @@ WebContents::WebContents(v8::Isolate* isolate,
|
|||
: content::WebContentsObserver(web_contents),
|
||||
type_(Type::REMOTE),
|
||||
weak_factory_(this) {
|
||||
auto session = Session::CreateFrom(isolate, GetBrowserContext());
|
||||
session_.Reset(isolate, session.ToV8());
|
||||
|
||||
web_contents->SetUserAgentOverride(blink::UserAgentOverride::UserAgentOnly(
|
||||
GetBrowserContext()->GetUserAgent()),
|
||||
false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue