Bug 303438
| Summary: | [WebXR Hit Test] Crashing due to empty Ref<WebXRHitTestResult> returned by WebXRFrame::getHitTestResults | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | WebXR | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | djg, kkinnunen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 300754 | ||
Fujii Hironori
[WebXR Hit Test] Crashing due to empty Ref<WebXRHitTestResult> returned by WebXRFrame::getHitTestResults
> Vector<Ref<WebXRHitTestResult>> results(platformResults->value.size());
> for (auto& platformResult : platformResults->value)
> results.append(WebXRHitTestResult::create(*this, platformResult));
> return results;
This is misuse of Vector. This code adds empty items to results.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/54739
EWS
Committed 303814@main (1bac13ec19e9): <https://commits.webkit.org/303814@main>
Reviewed commits have been landed. Closing PR #54739 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/165745682>