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

@ -215,6 +215,10 @@ void WebFrame::RegisterURLSchemeAsBypassingCSP(const std::string& scheme) {
void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme,
mate::Arguments* args) {
// TODO(deepak1556): blink::SchemeRegistry methods should be called
// before any renderer threads are created. Fixing this would break
// current api. Change it with 2.0.
// Read optional flags
bool secure = true;
bool bypassCSP = true;