Changeset 32282 in webkit
- Timestamp:
- Apr 20, 2008 1:48:55 PM (16 years ago)
- Location:
- trunk/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r32261 r32282 1 2008-04-20 Matt Lilek <webkit@mattlilek.com> 2 3 Mysteriously reviewed by mitz|away. 4 5 Bug 18111: Closing a tab while dragging crashes Safari 6 https://bugs.webkit.org/show_bug.cgi?id=18111 7 8 Null check the page before handling drag events. 9 10 * WebView/WebView.mm: 11 (-[WebView draggingUpdated:]): 12 (-[WebView draggingExited:]): 13 1 14 2008-04-19 Brady Eidson <beidson@apple.com> 2 15 -
trunk/WebKit/mac/WebView/WebView.mm
r32261 r32282 2503 2503 - (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)draggingInfo 2504 2504 { 2505 Page* page = core(self); 2506 if (!page) 2507 return NSDragOperationNone; 2508 2505 2509 NSView <WebDocumentView>* view = [self documentViewAtWindowPoint:[draggingInfo draggingLocation]]; 2506 2510 WebPasteboardHelper helper([view isKindOfClass:[WebHTMLView class]] ? (WebHTMLView*)view : nil); … … 2508 2512 IntPoint global(globalPoint([draggingInfo draggingLocation], [self window])); 2509 2513 DragData dragData(draggingInfo, client, global, (DragOperation)[draggingInfo draggingSourceOperationMask], &helper); 2510 return core(self)->dragController()->dragUpdated(&dragData);2514 return page->dragController()->dragUpdated(&dragData); 2511 2515 } 2512 2516 2513 2517 - (void)draggingExited:(id <NSDraggingInfo>)draggingInfo 2514 2518 { 2519 Page* page = core(self); 2520 if (!page) 2521 return; 2522 2515 2523 NSView <WebDocumentView>* view = [self documentViewAtWindowPoint:[draggingInfo draggingLocation]]; 2516 2524 WebPasteboardHelper helper([view isKindOfClass:[WebHTMLView class]] ? (WebHTMLView*)view : nil); … … 2518 2526 IntPoint global(globalPoint([draggingInfo draggingLocation], [self window])); 2519 2527 DragData dragData(draggingInfo, client, global, (DragOperation)[draggingInfo draggingSourceOperationMask], &helper); 2520 core(self)->dragController()->dragExited(&dragData);2528 page->dragController()->dragExited(&dragData); 2521 2529 } 2522 2530
Note: See TracChangeset
for help on using the changeset viewer.