A hack used by electron meant for macOS & extended for other
platforms contingently is causing behavior difference from XWALK.
Since that's the only consumer of 'load-url', removed all
event listeners.
Focus will anyway be gained by WebContents on their respective
show() calls. Fixes P200228-07034 & P200113-07900.
Change-Id: Ic67f3e5d74cdf47b909134ba7734189af1aa5a95
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
WRTWindow.prototype._init = function () {
BrowserWindow.prototype._init.call(this)
+ // This removes a macOS specific hack present in electron
+ // that causes side effects on Tizen
+ this.webContents.removeAllListeners('load-url')
if (typeof this.setup === 'function')
this.setup()
this.constructor = BrowserWindow