Browse Source

window.opener location should be webview src URL

Kevin Sawicki 8 years ago
parent
commit
082b47fb85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/chromium-spec.js

+ 1 - 1
spec/chromium-spec.js

@@ -401,7 +401,7 @@ describe('chromium feature', function () {
       webview = new WebView()
       webview.addEventListener('console-message', function (e) {
         webview.remove()
-        assert.equal(e.message, location.href)
+        assert.equal(e.message, webview.src)
         done()
       })
       webview.setAttribute('allowpopups', 'on')