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

Changeset 176695 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 3:41:23 PM (12 years ago)
Author:
timothy_horton@apple.com
Message:

Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
https://bugs.webkit.org/show_bug.cgi?id=139204
<rdar://problem/19120929>

Reviewed by Anders Carlsson.

  • WebView/WebView.mm:

(-[WebView _commonInitializationWithFrameName:groupName:]):
(-[WebView _showDictionaryLookupPopup:]):

  • WebView/WebViewData.h:

Work around this by delaying the softlinking (and setting up the notification
observer) until we actually need it. There's still an underlying bug, but
this will fix the test.

Location:
trunk/Source/WebKit/mac
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r176693 r176695  
     12014-12-02  Tim Horton  <timothy_horton@apple.com>
     2
     3        Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
     4        https://bugs.webkit.org/show_bug.cgi?id=139204
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * WebView/WebView.mm:
     9        (-[WebView _commonInitializationWithFrameName:groupName:]):
     10        (-[WebView _showDictionaryLookupPopup:]):
     11        * WebView/WebViewData.h:
     12        Work around this by delaying the softlinking (and setting up the notification
     13        observer) until we actually need it. There's still an underlying bug, but
     14        this will fix the test.
     15
    1162014-12-02  Beth Dakin  <bdakin@apple.com>
    217
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r176680 r176695  
    10301030#if !PLATFORM(IOS)
    10311031    [self _registerDraggedTypes];
    1032 
    1033     if (canLoadLUNotificationPopoverWillClose())
    1034         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];
    10351032#endif
    10361033
     
    86228619    textBaselineOrigin = [self.window convertRectToScreen:NSMakeRect(textBaselineOrigin.x, textBaselineOrigin.y, 0, 0)].origin;
    86238620
    8624     if (canLoadLUTermOptionDisableSearchTermIndicator()) {
     8621    if (canLoadLUTermOptionDisableSearchTermIndicator() && canLoadLUNotificationPopoverWillClose()) {
     8622        if (!_private->hasInitializedLookupObserver) {
     8623            [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];
     8624            _private->hasInitializedLookupObserver = YES;
     8625        }
     8626
    86258627        RetainPtr<NSMutableDictionary> mutableOptions = adoptNS([dictionaryPopupInfo.options mutableCopy]);
    86268628        if (!mutableOptions)
  • trunk/Source/WebKit/mac/WebView/WebViewData.h

    r176681 r176695  
    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.