mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(chromium): roll Chromium to r574897 (#2887)
This roll includes: - https://crrev.com/574785 - DevTools: allow tracing over the remote debugging pipe. This fixes tracing over the remote debugging pipe.
This commit is contained in:
parent
8802253e13
commit
e7b0e0f448
@ -35,14 +35,14 @@ class Pipe extends EventEmitter {
|
||||
*/
|
||||
send(message) {
|
||||
this._pipeWrite.write(message);
|
||||
this._pipeWrite.write('\n');
|
||||
this._pipeWrite.write('\0');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {!Buffer} buffer
|
||||
*/
|
||||
_dispatch(buffer) {
|
||||
let end = buffer.indexOf('\n');
|
||||
let end = buffer.indexOf('\0');
|
||||
if (end === -1) {
|
||||
this._pendingMessage += buffer.toString();
|
||||
return;
|
||||
@ -51,11 +51,11 @@ class Pipe extends EventEmitter {
|
||||
this.emit('message', message);
|
||||
|
||||
let start = end + 1;
|
||||
end = buffer.indexOf('\n', start);
|
||||
end = buffer.indexOf('\0', start);
|
||||
while (end !== -1) {
|
||||
this.emit('message', buffer.toString(undefined, start, end));
|
||||
start = end + 1;
|
||||
end = buffer.indexOf('\n', start);
|
||||
end = buffer.indexOf('\0', start);
|
||||
}
|
||||
this._pendingMessage = buffer.toString(undefined, start);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
"node": ">=6.4.0"
|
||||
},
|
||||
"puppeteer": {
|
||||
"chromium_revision": "571375"
|
||||
"chromium_revision": "574897"
|
||||
},
|
||||
"scripts": {
|
||||
"unit": "node test/test.js",
|
||||
|
Loading…
Reference in New Issue
Block a user