Summary: | [WTR] Crash in EventSendingController::contextClick() when context menu event is not handled | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, lforschler | ||||
Priority: | P2 | ||||||
Version: | WebKit Local Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 153493 | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2016-02-03 10:08:05 PST
Created attachment 270583 [details]
Patch
Comment on attachment 270583 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=270583&action=review > Tools/ChangeLog:9 > + the context menu event is not hanlded, but we are using the Nit: hanlded -> handled > Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp:558 > - size_t entriesSize = WKArrayGetSize(menuEntries.get()); > + size_t entriesSize = menuEntries ? WKArrayGetSize(menuEntries.get()) : 0; Perhaps better to simply return early in this case? Comment on attachment 270583 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=270583&action=review Thanks for the review! >> Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp:558 >> + size_t entriesSize = menuEntries ? WKArrayGetSize(menuEntries.get()) : 0; > > Perhaps better to simply return early in this case? Yes, indeed. Committed r196110: <http://trac.webkit.org/changeset/196110> |