mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: provide DeviceEmulationCacheBehavior param
https://chromium-review.googlesource.com/c/chromium/src/+/6965238
This commit is contained in:
@@ -2835,7 +2835,8 @@ void WebContents::EnableDeviceEmulation(
|
||||
frame_host->GetView()->GetRenderWidgetHost());
|
||||
if (widget_host_impl) {
|
||||
auto& frame_widget = widget_host_impl->GetAssociatedFrameWidget();
|
||||
frame_widget->EnableDeviceEmulation(params);
|
||||
frame_widget->EnableDeviceEmulation(
|
||||
params, blink::mojom::DeviceEmulationCacheBehavior::kClearCache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user