⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176749 in webkit


Ignore:
Timestamp:
Dec 3, 2014, 12:42:22 PM (12 years ago)
Author:
dburkart@apple.com
Message:

Merged r176695. rdar://problems/19120929

Location:
branches/safari-600.3-branch/Source/WebKit/mac
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-600.3-branch/Source/WebKit/mac/ChangeLog

    r176746 r176749  
     12014-12-03  Dana Burkart  <dburkart@apple.com>
     2
     3        Merge r176695. <rdar://problem/19120929>
     4
     5    2014-12-02  Tim Horton  <timothy_horton@apple.com>
     6
     7            Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
     8            https://bugs.webkit.org/show_bug.cgi?id=139204
     9
     10            Reviewed by Anders Carlsson.
     11
     12            * WebView/WebView.mm:
     13            (-[WebView _commonInitializationWithFrameName:groupName:]):
     14            (-[WebView _showDictionaryLookupPopup:]):
     15            * WebView/WebViewData.h:
     16            Work around this by delaying the softlinking (and setting up the notification
     17            observer) until we actually need it. There's still an underlying bug, but
     18            this will fix the test.
     19
     20
    1212014-12-03  Dana Burkart  <dburkart@apple.com>
    222
  • branches/safari-600.3-branch/Source/WebKit/mac/WebView/WebView.mm

    r176737 r176749  
    10331033#if !PLATFORM(IOS)
    10341034    [self _registerDraggedTypes];
    1035 
    1036     if (canLoadLUNotificationPopoverWillClose())
    1037         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];
    10381035#endif
    10391036
     
    86268623    textBaselineOrigin = [self.window convertRectToScreen:NSMakeRect(textBaselineOrigin.x, textBaselineOrigin.y, 0, 0)].origin;
    86278624
    8628     if (canLoadLUTermOptionDisableSearchTermIndicator()) {
     8625    if (canLoadLUTermOptionDisableSearchTermIndicator() && canLoadLUNotificationPopoverWillClose()) {
     8626        if (!_private->hasInitializedLookupObserver) {
     8627            [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];
     8628            _private->hasInitializedLookupObserver = YES;
     8629        }
     8630
    86298631        RetainPtr<NSMutableDictionary> mutableOptions = adoptNS([dictionaryPopupInfo.options mutableCopy]);
    86308632        if (!mutableOptions)
  • branches/safari-600.3-branch/Source/WebKit/mac/WebView/WebViewData.h

    r176738 r176749  
    153153#endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
    154154    std::unique_ptr<WebCore::TextIndicatorWindow> textIndicatorWindow;
     155    BOOL hasInitializedLookupObserver;
    155156#endif // PLATFORM(MAC)
    156157
Note: See TracChangeset for help on using the changeset viewer.