Skip to content

Commit e24fe4b

Browse files
committed
[test] issue4521-notification-perm: workaround for nw2 mode
the permission needs to be tested later after the navigation commits. or the origin got in TryBindInterface() in content/browser/renderer_interface_binders.cc will be empty.
1 parent c9a5898 commit e24fe4b

File tree

1 file changed

+2
-2
lines changed
  • test/sanity/issue4521-notification-perm

1 file changed

+2
-2
lines changed

test/sanity/issue4521-notification-perm/index.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
function showPermWin(id, url) {
3535
nw.Window.open(url, function(w) {
3636
if (w && w.window)
37-
showPerm(id, w.window);
37+
setTimeout(function() {showPerm(id, w.window);}, 700);
3838
});
3939
}
4040
function showPermFrame(id, frameId) {
@@ -51,4 +51,4 @@
5151
}
5252
</script>
5353
</body>
54-
</html>
54+
</html>

0 commit comments

Comments
 (0)