Add compat note about /json/new and m59

ref #970
This commit is contained in:
Paul Irish 2017-03-14 10:25:02 +11:00 коммит произвёл GitHub
Родитель 174766fc53
Коммит f1d0e62aae
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -44,7 +44,8 @@ class CriConnection extends Connection {
return this._runJsonCommand('new')
.then(response => this._connectToSocket(response))
.catch(_ => {
// headless doesn't support `/json/new` (#970), so we fallback to reuse
// Compat: headless didn't support `/json/new` before m59. (#970, crbug.com/699392)
// If no support, we fallback and reuse an existing open tab
log.warn('CriConnection', 'Cannot create new tab; reusing open tab.');
return this._runJsonCommand('list').then(tabs => {
const firstTab = tabs[0];