Changeset 176695 in webkit
- Timestamp:
- Dec 2, 2014, 3:41:23 PM (12 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
WebView/WebView.mm (modified) (2 diffs)
-
WebView/WebViewData.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r176693 r176695 1 2014-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 1 16 2014-12-02 Beth Dakin <bdakin@apple.com> 2 17 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r176680 r176695 1030 1030 #if !PLATFORM(IOS) 1031 1031 [self _registerDraggedTypes]; 1032 1033 if (canLoadLUNotificationPopoverWillClose())1034 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];1035 1032 #endif 1036 1033 … … 8622 8619 textBaselineOrigin = [self.window convertRectToScreen:NSMakeRect(textBaselineOrigin.x, textBaselineOrigin.y, 0, 0)].origin; 8623 8620 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 8625 8627 RetainPtr<NSMutableDictionary> mutableOptions = adoptNS([dictionaryPopupInfo.options mutableCopy]); 8626 8628 if (!mutableOptions) -
trunk/Source/WebKit/mac/WebView/WebViewData.h
r176681 r176695 153 153 #endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 154 154 std::unique_ptr<WebCore::TextIndicatorWindow> textIndicatorWindow; 155 BOOL hasInitializedLookupObserver; 155 156 #endif // PLATFORM(MAC) 156 157
Note:
See TracChangeset
for help on using the changeset viewer.