Changeset 56096 in webkit
- Timestamp:
- Mar 16, 2010 5:31:41 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56094 r56096 1 2010-03-16 John Abd-El-Malek <jam@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Give keyboard focus to PluginDocuments by default 6 https://bugs.webkit.org/show_bug.cgi?id=36147 7 8 * http/tests/plugins/plugin-document-has-focus-expected.txt: Added. 9 * http/tests/plugins/plugin-document-has-focus.html: Added. 10 * http/tests/plugins/resources/plugin-document-has-focus.pl: Added. 11 * platform/gtk/Skipped: 12 * platform/mac/Skipped: 13 * platform/qt/Skipped: 14 * platform/win/Skipped: 15 1 16 2010-03-16 Chris Fleizach <cfleizach@apple.com> 2 17 -
trunk/LayoutTests/platform/gtk/Skipped
r56057 r56096 3586 3586 plugins/mouse-events-fixedpos.html 3587 3587 plugins/keyboard-events.html 3588 plugins/plugin-document-has-focus.html 3588 3589 3589 3590 # https://bugs.webkit.org/show_bug.cgi?id=30561 -
trunk/LayoutTests/platform/mac/Skipped
r56093 r56096 145 145 fast/canvas/webgl/triangle.html 146 146 fast/canvas/webgl/viewport-unchanged-upon-resize.html 147 148 # eventSender needs to propagate the event to the calling window, not the main frame always. 149 plugins/plugin-document-has-focus.html -
trunk/LayoutTests/platform/qt/Skipped
r56012 r56096 537 537 plugins/open-and-close-window-with-plugin.html 538 538 plugins/keyboard-events.html 539 plugins/plugin-document-has-focus.html 539 540 540 541 security/block-test.html -
trunk/LayoutTests/platform/win/Skipped
r56025 r56096 784 784 # Needs to implement NPP_HandleEvent() in TestNetscapePlugin 785 785 plugins/keyboard-events.html 786 plugins/plugin-document-has-focus.html 786 787 787 788 # DumpRenderTree code to enable Java is currently a no-op. Windows doesn't come with Java by default. -
trunk/WebCore/ChangeLog
r56094 r56096 1 2010-03-16 John Abd-El-Malek <jam@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Give keyboard focus to PluginDocuments by default 6 https://bugs.webkit.org/show_bug.cgi?id=36147 7 8 Test: http/tests/plugins/plugin-document-has-focus.html 9 10 * loader/PluginDocument.cpp: 11 (WebCore::PluginDocument::pluginNode): 12 * loader/PluginDocument.h: 13 * page/EventHandler.cpp: 14 (WebCore::eventTargetNodeForDocument): 15 1 16 2010-03-16 Chris Fleizach <cfleizach@apple.com> 2 17 -
trunk/WebCore/loader/PluginDocument.cpp
r55814 r56096 169 169 } 170 170 171 Node* PluginDocument::pluginNode() 172 { 173 RefPtr<Element> body_element = body(); 174 if (body_element) 175 return body_element->firstChild(); 176 177 return 0; 171 178 } 179 180 } -
trunk/WebCore/loader/PluginDocument.h
r55814 r56096 30 30 namespace WebCore { 31 31 32 class Node; 32 33 class Widget; 33 34 class PluginDocument : public HTMLDocument { … … 39 40 40 41 Widget* pluginWidget(); 42 Node* pluginNode(); 41 43 42 44 private: -
trunk/WebCore/page/EventHandler.cpp
r55909 r56096 58 58 #include "PlatformKeyboardEvent.h" 59 59 #include "PlatformWheelEvent.h" 60 #include "PluginDocument.h" 60 61 #include "RenderFrameSet.h" 61 62 #include "RenderTextControlSingleLine.h" … … 2058 2059 return 0; 2059 2060 Node* node = doc->focusedNode(); 2061 if (!node && doc->isPluginDocument()) { 2062 PluginDocument* pluginDocument = static_cast<PluginDocument*>(doc); 2063 node = pluginDocument->pluginNode(); 2064 } 2060 2065 if (!node && doc->isHTMLDocument()) 2061 2066 node = doc->body(); -
trunk/WebKitTools/ChangeLog
r56091 r56096 1 2010-03-16 John Abd-El-Malek <jam@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Give keyboard focus to PluginDocuments by default 6 https://bugs.webkit.org/show_bug.cgi?id=36147 7 8 * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp: 9 (pluginAllocate): 10 * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h: 11 * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp: 12 (NPP_New): 13 (NPP_SetWindow): 14 (handleEventCarbon): 15 (handleEventCocoa): 16 1 17 2010-03-16 Sam Weinig <sam@webkit.org> 2 18 -
trunk/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp
r56090 r56096 953 953 newInstance->testDocumentOpenInDestroyStream = FALSE; 954 954 newInstance->testWindowOpen = FALSE; 955 newInstance->testKeyboardFocusForPlugins = FALSE; 955 956 956 957 return (NPObject*)newInstance; -
trunk/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h
r56086 r56096 42 42 NPBool testDocumentOpenInDestroyStream; 43 43 NPBool testWindowOpen; 44 NPBool testKeyboardFocusForPlugins; 44 45 char* onStreamLoad; 45 46 char* onStreamDestroy; -
trunk/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp
r56086 r56096 112 112 else if (strcasecmp(argn[i], "testwindowopen") == 0) 113 113 obj->testWindowOpen = TRUE; 114 else if (strcasecmp(argn[i], "src") == 0 && strstr(argv[i], "plugin-document-has-focus.pl")) 115 obj->testKeyboardFocusForPlugins = TRUE; 114 116 } 115 117 … … 179 181 if (obj->logSetWindow) { 180 182 pluginLog(instance, "NPP_SetWindow: %d %d", (int)window->width, (int)window->height); 181 obj->logSetWindow = false;183 obj->logSetWindow = FALSE; 182 184 } 183 185 … … 186 188 obj->testWindowOpen = FALSE; 187 189 } 190 191 if (obj->testKeyboardFocusForPlugins) { 192 obj->eventLogging = true; 193 executeScript(obj, "eventSender.keyDown('A');"); 194 } 188 195 } 189 196 … … 278 285 case keyUp: 279 286 pluginLog(instance, "keyUp '%c'", (char)(event->message & 0xFF)); 287 if (obj->testKeyboardFocusForPlugins) { 288 obj->eventLogging = false; 289 obj->testKeyboardFocusForPlugins = FALSE; 290 executeScript(obj, "layoutTestController.notifyDone();"); 291 } 280 292 break; 281 293 case autoKey: … … 346 358 347 359 case NPCocoaEventKeyUp: 348 if (event->data.key.characters) 360 if (event->data.key.characters) { 349 361 pluginLog(instance, "keyUp '%c'", CFStringGetCharacterAtIndex(reinterpret_cast<CFStringRef>(event->data.key.characters), 0)); 362 if (obj->testKeyboardFocusForPlugins) { 363 obj->eventLogging = false; 364 obj->testKeyboardFocusForPlugins = FALSE; 365 executeScript(obj, "layoutTestController.notifyDone();"); 366 } 367 } 350 368 return 1; 351 369
Note: See TracChangeset
for help on using the changeset viewer.