Changeset 175638 in webkit
- Timestamp:
- Nov 5, 2014 1:21:45 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r175637 r175638 1 2014-11-05 Alexey Proskuryakov <ap@apple.com> 2 3 fast/dom/remove-body-during-body-replacement2.html fails on WK2 4 https://bugs.webkit.org/show_bug.cgi?id=138334 5 6 Reviewed by Anders Carlsson. 7 8 Added an SPI to focus a frame. 9 10 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: 11 (WKBundleFrameFocus): 12 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: 13 * WebProcess/WebPage/WebPage.cpp: 14 (WebKit::WebPage::setViewState): 15 1 16 2014-11-05 Tim Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r164192 r175638 36 36 #include "WebSecurityOrigin.h" 37 37 #include <WebCore/Document.h> 38 #include <WebCore/FocusController.h> 38 39 #include <WebCore/Frame.h> 39 40 #include <WebCore/FrameLoader.h> 40 41 #include <WebCore/FrameView.h> 42 #include <WebCore/Page.h> 41 43 42 44 using namespace WebCore; … … 271 273 return toCopiedAPI(coreFrame->document()->securityOrigin()); 272 274 } 275 276 void WKBundleFrameFocus(WKBundleFrameRef frameRef) 277 { 278 Frame* coreFrame = toImpl(frameRef)->coreFrame(); 279 if (!coreFrame) 280 return; 281 282 coreFrame->page()->focusController().setFocusedFrame(coreFrame); 283 } -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
r168541 r175638 55 55 WK_EXPORT bool WKBundleFrameHandlesPageScaleGesture(WKBundleFrameRef frame); 56 56 57 WK_EXPORT void WKBundleFrameFocus(WKBundleFrameRef frame); 58 57 59 #ifdef __cplusplus 58 60 } -
trunk/Tools/ChangeLog
r175618 r175638 1 2014-11-05 Alexey Proskuryakov <ap@apple.com> 2 3 fast/dom/remove-body-during-body-replacement2.html fails on WK2 4 https://bugs.webkit.org/show_bug.cgi?id=138334 5 6 Reviewed by Anders Carlsson. 7 8 Reset focus to main frame between tests. DumpRenderTree does this via -makeFirstResponder 9 calls, which works because each frame is an NSView in WK1. WK2 makes equivalent 10 -makeFirstResponder calls, which may or may not be needed for other reasons, but 11 it also needs to reset internal focus explicitly. 12 13 It's not clear if this is the right long-term fix or a workaround for a WebKit bug. 14 WebKit behavior appears wrong, but it matches Firefox. 15 16 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 17 (WTR::InjectedBundlePage::resetAfterTest): 18 1 19 2014-11-05 Carlos Garcia Campos <cgarcia@igalia.com> 2 20 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r174866 r175638 419 419 { 420 420 WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page); 421 422 // WebKit currently doesn't reset focus even when navigating to a new page. This may or may not be a bug 423 // (see <https://bugs.webkit.org/show_bug.cgi?id=138334>), however for tests, we want to start each one with a clean state. 424 WKBundleFrameFocus(frame); 425 421 426 JSGlobalContextRef context = WKBundleFrameGetJavaScriptContext(frame); 422 427 WebCoreTestSupport::resetInternalsObject(context);
Note: See TracChangeset
for help on using the changeset viewer.