Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Audit: allow audits to be evaluated as a user gesture
https://bugs.webkit.org/show_bug.cgi?id=200276 Reviewed by Patrick Angle. This will allow developers to create/run audits that pretend to be a user (e.g. play media, etc.). * Source/WebCore/inspector/InspectorAuditDOMObject.idl: * Source/WebCore/inspector/InspectorAuditDOMObject.h: (WebCore::InspectorAuditDOMObject::create): * Source/WebCore/inspector/InspectorAuditDOMObject.cpp: (WebCore::InspectorAuditDOMObject::InspectorAuditDOMObject): (WebCore::InspectorAuditDOMObject::simulateUserInteraction): Added. * Source/JavaScriptCore/inspector/protocol/Audit.json: * Source/WebInspectorUI/UserInterface/Models/AuditTestBase.js: Increment the current audit version number. * Source/WebCore/inspector/agents/page/PageAuditAgent.h: (WebCore::PageAuditAgent::inspectedPage const): Added. Expose a way for `InspectorAudit*Object` to access the inspected `Page`. * Source/WebCore/inspector/UserGestureEmulationScope.h: Renamed from Source/WebCore/inspector/agents/page/UserGestureEmulationScope.h. * Source/WebCore/inspector/UserGestureEmulationScope.cpp: Renamed from Source/WebCore/inspector/agents/page/UserGestureEmulationScope.cpp. * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: Drive-by: Move this file as it's now used by more than just the `Page*Agent` specializations. * LayoutTests/inspector/audit/run-dom.html: * LayoutTests/inspector/audit/run-dom-expected.txt: * LayoutTests/inspector/model/auditTestCase.html: * LayoutTests/inspector/model/auditTestCase-expected.txt: * LayoutTests/inspector/model/auditTestGroup.html: * LayoutTests/inspector/model/auditTestGroup-expected.txt: Drive-by: Make it so that these tests no longer need to be updated when the audit version changes. Canonical link: https://commits.webkit.org/251241@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
16 changed files
with
138 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.