Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js

Issue 2898793002: DevTools: disable input event processing while auditing with lighthouse. (Closed)
Patch Set: comments addressed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Audits2.Audits2Panel = class extends UI.PanelWithSidebar { 8 Audits2.Audits2Panel = class extends UI.PanelWithSidebar {
9 constructor() { 9 constructor() {
10 super('audits2'); 10 super('audits2');
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 /** @type {?function(string)} */ 397 /** @type {?function(string)} */
398 this._status = null; 398 this._status = null;
399 } 399 }
400 400
401 /** 401 /**
402 * @return {!Promise<undefined>} 402 * @return {!Promise<undefined>}
403 */ 403 */
404 attach() { 404 attach() {
405 return SDK.targetManager.interceptMainConnection(this._dispatchProtocolMessa ge.bind(this)).then(rawConnection => { 405 return SDK.targetManager.interceptMainConnection(this._dispatchProtocolMessa ge.bind(this)).then(rawConnection => {
406 this._rawConnection = rawConnection; 406 this._rawConnection = rawConnection;
407 this._rawConnection.sendMessage(
408 JSON.stringify({id: 0, method: 'Input.setIgnoreInputEvents', params: { ignore: true}}));
407 }); 409 });
408 } 410 }
409 411
410 /** 412 /**
411 * @param {string} inspectedURL 413 * @param {string} inspectedURL
412 * @param {!Array<string>} categoryIDs 414 * @param {!Array<string>} categoryIDs
413 * @return {!Promise<!ReportRenderer.ReportJSON>} 415 * @return {!Promise<!ReportRenderer.ReportJSON>}
414 */ 416 */
415 startLighthouse(inspectedURL, categoryIDs) { 417 startLighthouse(inspectedURL, categoryIDs) {
416 return this._send('start', {url: inspectedURL, categoryIDs}); 418 return this._send('start', {url: inspectedURL, categoryIDs});
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 return; 721 return;
720 722
721 var element = Components.DOMPresentationUtils.linkifyNodeReference(node, undefined, detailsItem.snippet); 723 var element = Components.DOMPresentationUtils.linkifyNodeReference(node, undefined, detailsItem.snippet);
722 origElement.title = ''; 724 origElement.title = '';
723 origElement.textContent = ''; 725 origElement.textContent = '';
724 origElement.appendChild(element); 726 origElement.appendChild(element);
725 }); 727 });
726 }); 728 });
727 } 729 }
728 }; 730 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698