Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: components/html_viewer/html_widget.cc

Issue 1362983004: Mandoline: fix the crash when a remote subframe tries to access session storage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/html_widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_widget.cc
diff --git a/components/html_viewer/html_widget.cc b/components/html_viewer/html_widget.cc
index aacfcacd52b1443f1d788b1af1dcd8f4c0b53755..14c04742564d8d9fb086cf653b1747358683b25d 100644
--- a/components/html_viewer/html_widget.cc
+++ b/components/html_viewer/html_widget.cc
@@ -71,12 +71,21 @@ void ConfigureSettings(blink::WebSettings* settings) {
// HTMLWidgetRootRemote -------------------------------------------------------
HTMLWidgetRootRemote::HTMLWidgetRootRemote()
- : web_view_(blink::WebView::create(nullptr)) {
+ : web_view_(blink::WebView::create(this)) {
ConfigureSettings(web_view_->settings());
}
HTMLWidgetRootRemote::~HTMLWidgetRootRemote() {}
+blink::WebStorageNamespace*
+HTMLWidgetRootRemote::createSessionStorageNamespace() {
+ return new WebStorageNamespaceImpl();
+}
+
+bool HTMLWidgetRootRemote::allowsBrokenNullLayerTreeView() const {
+ return true;
+}
+
blink::WebWidget* HTMLWidgetRootRemote::GetWidget() {
return web_view_;
}
« no previous file with comments | « components/html_viewer/html_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698