| Summary: | Web Inspector: support awaitPromise parameter in Runtime.callFunctionOn | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> |
| Component: | Web Inspector | Assignee: | Yury Semikhatsky <yurys> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | hi, inspector-bugzilla-changes, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 264920 | ||
|
Description
Yury Semikhatsky
2023-11-07 16:35:04 PST
if you also add `awaitPromise` to `Audit.run` then Web Inspector could/would use it in `WI.AuditTestBase.prototype.runSetup` and `WI.AuditTestCase.prototype.run` too =D for consistency/"completeness" id also suggest adding it to `Runtime.evaluate` and `Debugger.evaluateOnCallFrame` as well Pull request: https://github.com/WebKit/WebKit/pull/20137 (In reply to Devin Rousso from comment #1) > if you also add `awaitPromise` to `Audit.run` then Web Inspector could/would > use it in `WI.AuditTestBase.prototype.runSetup` and > `WI.AuditTestCase.prototype.run` too =D > Given that we'd need to check for pretense of the new parameter in the protocol and the code already prefers AuditAgent.run if it's present, I believe it'd be sufficient to add the parameter to Audit.run. In practice, it would always be called it with awaitPromise=true. Do you think it's worth updating? > for consistency/"completeness" id also suggest adding it to > `Runtime.evaluate` and `Debugger.evaluateOnCallFrame` as well I'm a bit hesitant updating these commands if there is no demand. With callFunctionOn we've been using the parameter for a while and did not need it in other places. I can certainly implement it there as well. Committed 270784@main (700de83458a2): <https://commits.webkit.org/270784@main> Reviewed commits have been landed. Closing PR #20137 and removing active labels. |