Earlier then this patch, there was fix up patch for same issue
but only applied with Tizen WebApp. (
d8c2683)
This patch moves extension activation on 'browser-window-created' callback
so now BrowserWindow construction is guaranteed before activation for
both Tizen and Electron Web App type.
Change-Id: I94405ead5ef6188da09faaac91f976307fae3a3b
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
return runtime_debug('browser-window-focus');
});
app.on('browser-window-created', function() {
+ if (!_this.isLaunched) {
+ _this.extensionManager.activateAll(app);
+ _this.isLaunched = true;
+ }
return runtime_debug('browser-window-created');
});
app.on('gpu-process-crashed', function() {
_this.extensionManager.build();
}
if (wrt.isElectronLaunch()) {
- _this.extensionManager.activateAll(app);
return;
}
_this.webApplication = new WebApplication(options);
- _this.extensionManager.activateAll(app);
});
}
onPause(web_window_id) {