Note about incorrect usage of blink::SchemeRegistry methods

This commit is contained in:
deepak1556 2017-12-18 14:59:28 +05:30 committed by Cheng Zhao
parent 73919ea91a
commit fd297722a8
4 changed files with 6 additions and 9 deletions

View file

@ -116,6 +116,7 @@ void RendererClientBase::RenderThreadStarted() {
// Allow file scheme to handle service worker by default.
// FIXME(zcbenz): Can this be moved elsewhere?
blink::WebSecurityPolicy::RegisterURLSchemeAsAllowingServiceWorkers("file");
blink::SchemeRegistry::RegisterURLSchemeAsSupportingFetchAPI("file");
preferences_manager_.reset(new PreferencesManager);