| Index: components/html_viewer/html_document.cc
|
| diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
|
| index d4c456ba776b475560c0348e69a2788ca13eb780..8c4c356d8103950b50398ee0407a80afe109239a 100644
|
| --- a/components/html_viewer/html_document.cc
|
| +++ b/components/html_viewer/html_document.cc
|
| @@ -183,7 +183,8 @@ void HTMLDocument::Load(URLResponsePtr response) {
|
| touch_handler_.reset(new TouchHandler(web_view_));
|
| web_layer_tree_view_impl_->set_widget(web_view_);
|
| ConfigureSettings(web_view_->settings());
|
| - web_view_->setMainFrame(blink::WebLocalFrame::create(this));
|
| + web_view_->setMainFrame(
|
| + blink::WebLocalFrame::create(blink::WebTreeScopeType::Document, this));
|
|
|
| GURL url(response->url);
|
|
|
| @@ -276,9 +277,10 @@ blink::WebMediaPlayer* HTMLDocument::createMediaPlayer(
|
|
|
| blink::WebFrame* HTMLDocument::createChildFrame(
|
| blink::WebLocalFrame* parent,
|
| + blink::WebTreeScopeType scope,
|
| const blink::WebString& frameName,
|
| blink::WebSandboxFlags sandboxFlags) {
|
| - blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(this);
|
| + blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(scope, this);
|
| parent->appendChild(web_frame);
|
| return web_frame;
|
| }
|
|
|