window.open() should gate new tab/new popup based on toolbar visibility.

Previously, Chrome required that toolbar, menubar, scrollbars, status,
resizable were all set to enabled to open a window as a new tab rather
than a new popup. However, this causes developer frustration if one of
window features is accidentally omitted (as it then defaults to
disabled).

Instead, just use toolbar visibility to determine whether or not
window.open() creates a new popup or a new tab, which matches Firefox.

BUG=82522

Review-Url: https://codereview.chromium.org/2773573002
Cr-Commit-Position: refs/heads/master@{#459540}
3 files changed