Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8c953985cecd728b79098cf004b27e6c32b1377a
https://github.com/WebKit/WebKit/commit/8c953985cecd728b79098cf004b27e6c32b1377a
Author: Devin Rousso <[email protected]>
Date: 2025-03-21 (Fri, 21 Mar 2025)
Changed paths:
M LayoutTests/inspector/canvas/recording-html-2d.html
M LayoutTests/inspector/debugger/breakpoint-action-eval.html
M LayoutTests/inspector/debugger/breakpoint-action-log.html
M LayoutTests/inspector/debugger/probe-manager-add-remove-actions.html
M LayoutTests/inspector/dom/event-listener-inspected-node.html
M LayoutTests/inspector/model/remote-object-api.html
M LayoutTests/inspector/runtime/executionContextCreated-isolated-world.html
M LayoutTests/inspector/timeline/resources/timeline-event-utilities.js
M LayoutTests/inspector/unit-tests/set-utilities-expected.txt
M LayoutTests/inspector/unit-tests/set-utilities.html
R LayoutTests/inspector/unit-tests/wrapped-promise-expected.txt
R LayoutTests/inspector/unit-tests/wrapped-promise.html
M Source/WebInspectorUI/UserInterface/Base/FileUtilities.js
M Source/WebInspectorUI/UserInterface/Base/Main.js
M Source/WebInspectorUI/UserInterface/Base/Utilities.js
M
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js
M
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js
M Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js
M Source/WebInspectorUI/UserInterface/Controllers/TargetManager.js
M Source/WebInspectorUI/UserInterface/Debug/CapturingProtocolTracer.js
M Source/WebInspectorUI/UserInterface/Main.html
M Source/WebInspectorUI/UserInterface/Models/BackForwardEntry.js
M Source/WebInspectorUI/UserInterface/Models/DOMNode.js
M Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js
M Source/WebInspectorUI/UserInterface/Models/Resource.js
R Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js
M Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js
M Source/WebInspectorUI/UserInterface/Protocol/RemoteObject.js
M Source/WebInspectorUI/UserInterface/Test.html
M Source/WebInspectorUI/UserInterface/Test/Test.js
M Source/WebInspectorUI/UserInterface/TestStub.html
M Source/WebInspectorUI/UserInterface/Views/DataGrid.js
M Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js
M Source/WebInspectorUI/UserInterface/Views/Table.js
M Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
M
Source/WebInspectorUI/UserInterface/Views/WebInspectorExtensionTabContentView.js
Log Message:
-----------
Web Inspector: use new JS builtin methods instead of custom utility functions
https://bugs.webkit.org/show_bug.cgi?id=290149
Reviewed by Yusuke Suzuki.
These custom utility functions are no longer needed now that there's builtin JS
methods for this same functionality.
- `{...object}` instead of `Object.shallowCopy`
- `Promise.withResolvers` instead of `WI.WrappedPromise`
- `Set.prototype.isDisjointFrom` instead of `Set.prototype.intersects`
- `Set.prototype.isSubsetOf`
- `Set.prototype.difference`
* Source/WebInspectorUI/UserInterface/Base/Utilities.js:
(Object.shallowCopy): Deleted.
(Set.prototype.isDisjointFrom): Deleted.
(Set.prototype.isSubsetOf): Deleted.
(Set.prototype.difference): Deleted.
* Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js: Removed.
* Source/WebInspectorUI/UserInterface/Base/FileUtilities.js:
(WI.FileUtilities.async save):
* Source/WebInspectorUI/UserInterface/Base/Main.js:
(WI.loaded):
* Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js:
(WI.LoggingProtocolTracer.prototype.logDidHandleResponse):
(WI.LoggingProtocolTracer.prototype.logDidHandleEvent):
* Source/WebInspectorUI/UserInterface/Protocol/RemoteObject.js:
(WI.RemoteObject.prototype.async findFunctionSourceCodeLocation):
(WI.RemoteObject.prototype.findFunctionSourceCodeLocation): Deleted.
* Source/WebInspectorUI/UserInterface/Models/BackForwardEntry.js:
(WI.BackForwardEntry.prototype.get cookie):
* Source/WebInspectorUI/UserInterface/Models/DOMNode.js:
(WI.DOMNode.prototype._handleDOMNodeDidFireEvent):
* Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js:
(WI.DOMNodeStyles.prototype.refresh):
* Source/WebInspectorUI/UserInterface/Models/Resource.js:
(WI.Resource.prototype.async createLocalResourceOverride):
*
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:
(WI.CodeMirrorCompletionController):
(WI.CodeMirrorCompletionController.prototype.completeAtCurrentPositionIfNeeded):
(WI.CodeMirrorCompletionController.prototype._resolveUpdatePromise):
*
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js:
(WI.CodeMirrorTokenTrackingController.prototype._updateHoveredTokenInfo):
* Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:
(WI.DOMManager.prototype._requestDocumentWithPromise):
* Source/WebInspectorUI/UserInterface/Controllers/TargetManager.js:
(WI.TargetManager.prototype._initializePageTarget):
* Source/WebInspectorUI/UserInterface/Views/DataGrid.js:
(WI.DataGrid.prototype.insertColumn):
(WI.DataGrid.prototype.setColumnVisible):
* Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js:
(WI.RecordingContentView.prototype._generateContentCanvas2D):
* Source/WebInspectorUI/UserInterface/Views/Table.js:
(WI.Table.prototype.showColumn):
(WI.Table.prototype.hideColumn):
* Source/WebInspectorUI/UserInterface/Views/TreeOutline.js:
(WI.TreeOutline.prototype._updateVirtualizedElements):
*
Source/WebInspectorUI/UserInterface/Views/WebInspectorExtensionTabContentView.js:
(WI.WebInspectorExtensionTabContentView):
(WI.WebInspectorExtensionTabContentView.prototype._extensionFrameDidLoad):
* Source/WebInspectorUI/UserInterface/Debug/CapturingProtocolTracer.js:
(WI.CapturingProtocolTracer.prototype.logDidHandleResponse):
(WI.CapturingProtocolTracer.prototype.logDidHandleEvent):
* Source/WebInspectorUI/UserInterface/Test/Test.js:
(WI.loaded):
* Source/WebInspectorUI/UserInterface/Main.html:
* Source/WebInspectorUI/UserInterface/Test.html:
* Source/WebInspectorUI/UserInterface/TestStub.html:
* LayoutTests/inspector/canvas/recording-html-2d.html:
* LayoutTests/inspector/debugger/breakpoint-action-eval.html:
* LayoutTests/inspector/debugger/breakpoint-action-log.html:
* LayoutTests/inspector/debugger/probe-manager-add-remove-actions.html:
* LayoutTests/inspector/dom/event-listener-inspected-node.html:
* LayoutTests/inspector/model/remote-object-api.html:
* LayoutTests/inspector/runtime/executionContextCreated-isolated-world.html:
* LayoutTests/inspector/timeline/resources/timeline-event-utilities.js:
(InspectorTest.TimelineEvent.captureTimelineWithScript):
(InspectorTest.TimelineEvent.captureTimelineWithMarker):
* LayoutTests/inspector/unit-tests/set-utilities.html:
* LayoutTests/inspector/unit-tests/set-utilities-expected.txt:
* LayoutTests/inspector/unit-tests/wrapped-promise.html: Removed.
* LayoutTests/inspector/unit-tests/wrapped-promise-expected.txt: Removed.
Canonical link: https://commits.webkit.org/292512@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes