Changeset 228707 in webkit


Ignore:
Timestamp:
Feb 19, 2018 12:56:41 PM (6 years ago)
Author:
jmarcell@apple.com
Message:

Cherry-pick r228580. rdar://problem/37675341

Location:
branches/safari-605-branch/Source/WebKitLegacy/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-605-branch/Source/WebKitLegacy/mac/ChangeLog

    r228083 r228707  
     12018-02-19  Jason Marcell  <jmarcell@apple.com>
     2
     3        Cherry-pick r228580. rdar://problem/37675341
     4
     5    2018-02-16  Brent Fulgham  <bfulgham@apple.com>
     6
     7            [Cocoa][WebKitLegacy] REGRESSION(r221559): Coda 2 crashes when switching views
     8            https://bugs.webkit.org/show_bug.cgi?id=182882
     9            <rdar://problem/35672661>
     10
     11            Reviewed by Dan Bernstein.
     12
     13            Make sure the smart pointer hold the collection of subviews lives at least as
     14            long as the loop using it.
     15
     16            * WebView/WebHTMLView.mm:
     17            (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]):
     18
    1192018-02-04  Jason Marcell  <jmarcell@apple.com>
    220
  • branches/safari-605-branch/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm

    r226452 r228707  
    11/*
    2  * Copyright (C) 2005-2017 Apple Inc. All rights reserved.
     2 * Copyright (C) 2005-2018 Apple Inc. All rights reserved.
    33 *           (C) 2006, 2007 Graham Dennis (graham.dennis@gmail.com)
    44 *
     
    14281428    // Copy subviews because [self subviews] returns the view's mutable internal array,
    14291429    // and we must avoid mutating the array while enumerating it.
    1430     for (NSView *view in adoptNS([[self subviews] copy]).get()) {
     1430    auto subviewsCopy = adoptNS([self.subviews copy]);
     1431    for (NSView *view in subviewsCopy.get()) {
    14311432        if ([view isKindOfClass:[WebBaseNetscapePluginView class]])
    14321433            [view performSelector:selector withObject:object];
Note: See TracChangeset for help on using the changeset viewer.