Schemas should be registered early

This commit is contained in:
Cheng Zhao 2014-10-22 23:36:31 +08:00
parent 380de24f2e
commit d26dcd5501
2 changed files with 4 additions and 3 deletions

View file

@ -18,6 +18,7 @@
#include "content/public/renderer/render_thread.h"
#include "base/command_line.h"
#include "native_mate/converter.h"
#include "third_party/WebKit/public/web/WebCustomElement.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
@ -99,6 +100,9 @@ AtomRendererClient::~AtomRendererClient() {
void AtomRendererClient::WebKitInitialized() {
EnableWebRuntimeFeatures();
blink::WebCustomElement::addEmbedderCustomElementName("webview");
blink::WebCustomElement::addEmbedderCustomElementName("browserplugin");
if (!IsNodeBindingEnabled())
return;