Bug 271505
| Summary: | getCachedWrapper always does HashMap lookup when the wrapper doesn't exist | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | Bindings | Assignee: | Ryosuke Niwa <rniwa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | cdumez, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
WebCore::getCachedWrapper always does the HashMap lookup even for objects which inherits from ScriptWrappable for the main world.
We should avoid this lookup when an object inherits from ScriptWrappable for the main world.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
Pull request: https://github.com/WebKit/WebKit/pull/26355
EWS
Committed 276583@main (de25b66294c4): <https://commits.webkit.org/276583@main>
Reviewed commits have been landed. Closing PR #26355 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/125277776>