Fix failing specs
This commit is contained in:
parent
bc196c016b
commit
47de3f3f24
1 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ class AtomRenderFrameObserver : public content::RenderFrameObserver {
|
||||||
void DidCreateScriptContext(v8::Handle<v8::Context> context,
|
void DidCreateScriptContext(v8::Handle<v8::Context> context,
|
||||||
int extension_group,
|
int extension_group,
|
||||||
int world_id) override {
|
int world_id) override {
|
||||||
if (world_id_ != -1)
|
if (world_id_ != -1 && world_id_ != world_id)
|
||||||
return;
|
return;
|
||||||
world_id_ = world_id;
|
world_id_ = world_id;
|
||||||
renderer_client_->DidCreateScriptContext(context);
|
renderer_client_->DidCreateScriptContext(context);
|
||||||
|
@ -88,9 +88,6 @@ void AtomRendererClient::WebKitInitialized() {
|
||||||
blink::WebCustomElement::addEmbedderCustomElementName("webview");
|
blink::WebCustomElement::addEmbedderCustomElementName("webview");
|
||||||
blink::WebCustomElement::addEmbedderCustomElementName("browserplugin");
|
blink::WebCustomElement::addEmbedderCustomElementName("browserplugin");
|
||||||
|
|
||||||
// Allow file scheme to handle service worker by default.
|
|
||||||
blink::WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers("file");
|
|
||||||
|
|
||||||
OverrideNodeArrayBuffer();
|
OverrideNodeArrayBuffer();
|
||||||
|
|
||||||
node_bindings_->Initialize();
|
node_bindings_->Initialize();
|
||||||
|
@ -123,6 +120,9 @@ void AtomRendererClient::RenderFrameCreated(
|
||||||
content::RenderFrame* render_frame) {
|
content::RenderFrame* render_frame) {
|
||||||
new PepperHelper(render_frame);
|
new PepperHelper(render_frame);
|
||||||
|
|
||||||
|
// Allow file scheme to handle service worker by default.
|
||||||
|
blink::WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers("file");
|
||||||
|
|
||||||
// Only insert node integration for the main frame.
|
// Only insert node integration for the main frame.
|
||||||
if (!render_frame->IsMainFrame())
|
if (!render_frame->IsMainFrame())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue