[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 11:13:22 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 0e3fc2bcb75afe7d8def4c9558e20a551dac5aaa
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jul 15 06:49:28 2010 +0000

    2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
    
            Unreviewed, rolling out r63352.
            http://trac.webkit.org/changeset/63352
            https://bugs.webkit.org/show_bug.cgi?id=42341
    
            Broke plugin-initiate-popup-window.html and plugin-javascript-
            access.html on snow leopard (Requested by abarth on #webkit).
    
            * platform/chromium/test_expectations.txt:
            * platform/gtk/Skipped:
            * platform/qt/Skipped:
            * platform/win/Skipped:
            * plugins/plugin-initiate-popup-window-expected.txt: Removed.
            * plugins/plugin-initiate-popup-window.html: Removed.
    2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
    
            Unreviewed, rolling out r63352.
            http://trac.webkit.org/changeset/63352
            https://bugs.webkit.org/show_bug.cgi?id=42341
    
            Broke plugin-initiate-popup-window.html and plugin-javascript-
            access.html on snow leopard (Requested by abarth on #webkit).
    
            * bindings/v8/NPV8Object.cpp:
            (_NPN_EvaluateHelper):
    2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
    
            Unreviewed, rolling out r63352.
            http://trac.webkit.org/changeset/63352
            https://bugs.webkit.org/show_bug.cgi?id=42341
    
            Broke plugin-initiate-popup-window.html and plugin-javascript-
            access.html on snow leopard (Requested by abarth on #webkit).
    
            * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
            (pluginAllocate):
            * DumpRenderTree/TestNetscapePlugIn/PluginObject.h:
            * DumpRenderTree/TestNetscapePlugIn/main.cpp:
            (NPP_New):
            (handleEventCarbon):
            (handleEventCocoa):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63409 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index eaa0d0a..776c023 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,19 @@
+2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
+
+        Unreviewed, rolling out r63352.
+        http://trac.webkit.org/changeset/63352
+        https://bugs.webkit.org/show_bug.cgi?id=42341
+
+        Broke plugin-initiate-popup-window.html and plugin-javascript-
+        access.html on snow leopard (Requested by abarth on #webkit).
+
+        * platform/chromium/test_expectations.txt:
+        * platform/gtk/Skipped:
+        * platform/qt/Skipped:
+        * platform/win/Skipped:
+        * plugins/plugin-initiate-popup-window-expected.txt: Removed.
+        * plugins/plugin-initiate-popup-window.html: Removed.
+
 2010-07-14  Martin Robinson  <mrobinson at igalia.com>
 
         Unreviewed.
diff --git a/LayoutTests/platform/chromium/test_expectations.txt b/LayoutTests/platform/chromium/test_expectations.txt
index 5339a0f..7ad52b1 100644
--- a/LayoutTests/platform/chromium/test_expectations.txt
+++ b/LayoutTests/platform/chromium/test_expectations.txt
@@ -3002,9 +3002,6 @@ BUG48737 WIN LINUX MAC SKIP : ietestcenter/Javascript/15.4.4.15-3-14.html = TIME
 BUG48737 WIN LINUX MAC SKIP : ietestcenter/Javascript/15.4.4.15-3-29.html = TIMEOUT
 BUG48737 WIN LINUX MAC SKIP : ietestcenter/Javascript/15.4.4.15-3-8.html = TIMEOUT
 
-// Implement new test logic in Chromium's TestNetscape Plugin to pass the plugins/plugin-initiate-popup-window.html
-BUG48033 SKIP : plugins/plugin-initiate-popup-window.html = TIMEOUT
-
 // Broken prior to r62921.
 BUG48696 WIN LINUX : fast/forms/focus2.html = CRASH
 BUG48696 WIN LINUX MAC : fast/forms/tabs-with-modifiers.html = CRASH
diff --git a/LayoutTests/platform/gtk/Skipped b/LayoutTests/platform/gtk/Skipped
index 8dc2e6e..8241a29 100644
--- a/LayoutTests/platform/gtk/Skipped
+++ b/LayoutTests/platform/gtk/Skipped
@@ -3341,14 +3341,13 @@ plugins/throw-on-dealloc.html
 plugins/undefined-property-crash.html
 #   These test require Qt Widgets
 plugins/qt-qwidget-plugin.html
-#   Tests failing, need to implement NPP_HandleEvent() in TestNetscapePlugin
+#   Tests failing
 plugins/embed-attributes-setting.html
 plugins/get-url-with-blank-target.html
 plugins/mouse-events.html
 plugins/mouse-events-fixedpos.html
 plugins/keyboard-events.html
 plugins/geturlnotify-during-document-teardown.html
-plugins/plugin-initiate-popup-window.html
 
 # This test is for clients that choose to make the missing plugin indicator a button
 plugins/clicking-missing-plugin-fires-delegate.html
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 40eb076..e1756b3 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -457,7 +457,6 @@ fast/dom/object-embed-plugin-scripting.html
 plugins/mouse-events.html
 plugins/keyboard-events.html
 plugins/mouse-events-fixedpos.html
-plugins/plugin-initiate-popup-window.html
 # ---- to be reviewed
 http/tests/plugins/plugin-document-has-focus.html
 
diff --git a/LayoutTests/platform/win/Skipped b/LayoutTests/platform/win/Skipped
index 506bd4d..efd7c2f 100644
--- a/LayoutTests/platform/win/Skipped
+++ b/LayoutTests/platform/win/Skipped
@@ -804,7 +804,6 @@ fast/loader/api-test-new-window-data-load-base-url.html
 # Needs to implement NPP_HandleEvent() in TestNetscapePlugin
 plugins/keyboard-events.html
 http/tests/plugins/plugin-document-has-focus.html
-plugins/plugin-initiate-popup-window.html
 
 # DumpRenderTree code to enable Java is currently a no-op. Windows doesn't come with Java by default.
 java
diff --git a/LayoutTests/plugins/plugin-initiate-popup-window-expected.txt b/LayoutTests/plugins/plugin-initiate-popup-window-expected.txt
deleted file mode 100644
index 2d390ff..0000000
--- a/LayoutTests/plugins/plugin-initiate-popup-window-expected.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-CONSOLE MESSAGE: line 0: PLUGIN: getFocusEvent
-CONSOLE MESSAGE: line 0: PLUGIN: getFocusEvent
-CONSOLE MESSAGE: line 0: PLUGIN: getFocusEvent
-CONSOLE MESSAGE: line 0: PLUGIN: mouseDown at (12, 12)
-CONSOLE MESSAGE: line 0: PLUGIN: mouseUp at (12, 12)
-CONSOLE MESSAGE: line 0: PLUGIN: loseFocusEvent
-CONSOLE MESSAGE: line 0: PLUGIN: getFocusEvent
-CONSOLE MESSAGE: line 0: PLUGIN: mouseDown at (52, 12)
-CONSOLE MESSAGE: line 0: PLUGIN: mouseUp at (52, 12)
-CONSOLE MESSAGE: line 0: PLUGIN: keyDown 'p'
-CONSOLE MESSAGE: line 0: PLUGIN: keyUp 'p'
-CONSOLE MESSAGE: line 0: PLUGIN: loseFocusEvent
-ALERT: MOUSEDOWN PASSED
-ALERT: KEYDOWN PASSED
-
-
-Specify a script and a mouse/keyboard event to the plugin. The specified script will be evaluated in the browser when the specified event is received by the plugin. The test is for bug https://bugs.webkit.org/show_bug.cgi?id=41292.
-
-
-
-
diff --git a/LayoutTests/plugins/plugin-initiate-popup-window.html b/LayoutTests/plugins/plugin-initiate-popup-window.html
deleted file mode 100644
index 98c81eb..0000000
--- a/LayoutTests/plugins/plugin-initiate-popup-window.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<html>
-<head>
-<script>
-if (window.layoutTestController) {
-  layoutTestController.dumpAsText();
-  layoutTestController.setCanOpenWindows();
-  layoutTestController.setPopupBlockingEnabled(true);
-  layoutTestController.setCloseRemainingWindowsWhenComplete(true);
-  layoutTestController.waitUntilDone();
-}
-
-function test() {
-    if (window.layoutTestController) {
-        // Send a mouse-click event to set the input focus to the test plug-in.
-        eventSender.mouseMoveTo(0, 0);
-        eventSender.mouseMoveTo(20, 20);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-function popup_by_mousedown() {
-    // We rely on sequential ordering of POST processing.
-    var form = document.getElementById('form');
-    form.submit();
-    setTimeout(send_key_to_plugin, 1);
-}
-
-function send_key_to_plugin() {
-  // Send keyboard events to the plug-in.
-  if (window.layoutTestController) {
-      eventSender.mouseMoveTo(0, 0);
-      eventSender.mouseMoveTo(60, 60);
-      eventSender.mouseDown();
-      eventSender.mouseUp();
-      eventSender.keyDown('p');
-  }
-}
-
-function popup_by_keydown() {
-    // We rely on sequential ordering of POST processing.
-    var form = document.getElementById('form2');
-    form.submit();
-    setTimeout(close_test, 1);
-}
-function close_test() {
-    var form = document.getElementById('form3');
-    form.submit();
-}
-</script>
-</head>
-<body onload="test()">
-<embed name="plg" type="application/x-webkit-test-netscape" width=100 height=40 evaluatescript="mouse::popup_by_mousedown()"></embed><br>
-<embed type="application/x-webkit-test-netscape" width=100 height=40 evaluatescript="key::popup_by_keydown()"></embed><br>
-Specify a script and a mouse/keyboard event to the plugin. The specified script will be evaluated in the browser when the specified event is received by the plugin. The test is for bug https://bugs.webkit.org/show_bug.cgi?id=41292.
-<form id="form" action="data:text/html,<script>alert('MOUSEDOWN PASSED')</script>" target="target1">
-<input type="submit" value="Submit to new window"/>
-</form>
-<form id="form2" action="data:text/html,<script>alert('KEYDOWN PASSED')</script>" target="target2">
-<input type="submit" value="Submit to new window"/>
-</form>
-<form id="form3" action="data:text/html,<b>hello!</b><script>window.layoutTestController && layoutTestController.notifyDone()</script>" target="panel">
-<input type="submit" value="Submit local page Javascript"/>
-</form>
-<iframe id="target1"></iframe><iframe id="target2"></iframe><iframe id="panel"></iframe>
-</body>
-</html>
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 809d144..4685c0f 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
+
+        Unreviewed, rolling out r63352.
+        http://trac.webkit.org/changeset/63352
+        https://bugs.webkit.org/show_bug.cgi?id=42341
+
+        Broke plugin-initiate-popup-window.html and plugin-javascript-
+        access.html on snow leopard (Requested by abarth on #webkit).
+
+        * bindings/v8/NPV8Object.cpp:
+        (_NPN_EvaluateHelper):
+
 2010-07-14  Eric Seidel  <eric at webkit.org>
 
         Reviewed by Adam Barth.
diff --git a/WebCore/bindings/v8/NPV8Object.cpp b/WebCore/bindings/v8/NPV8Object.cpp
index 94b7d88..a25a5eb 100644
--- a/WebCore/bindings/v8/NPV8Object.cpp
+++ b/WebCore/bindings/v8/NPV8Object.cpp
@@ -34,7 +34,6 @@
 #include "OwnArrayPtr.h"
 #include "PlatformString.h"
 #include "ScriptController.h"
-#include "UserGestureIndicator.h"
 #include "V8GCController.h"
 #include "V8Helpers.h"
 #include "V8NPUtils.h"
@@ -279,8 +278,6 @@ bool _NPN_EvaluateHelper(NPP npp, bool popupsAllowed, NPObject* npObject, NPStri
     if (!popupsAllowed)
         filename = "npscript";
 
-    UserGestureIndicator gestureIndicator(popupsAllowed ? DefinitelyProcessingUserGesture : DefinitelyNotProcessingUserGesture);
-
     String script = String::fromUTF8(npScript->UTF8Characters, npScript->UTF8Length);
     v8::Local<v8::Value> v8result = proxy->evaluate(ScriptSourceCode(script, KURL(ParsedURLString, filename)), 0);
 
diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog
index 8c6b5c5..fa6ccbb 100644
--- a/WebKitTools/ChangeLog
+++ b/WebKitTools/ChangeLog
@@ -1,3 +1,20 @@
+2010-07-14  Sheriff Bot  <webkit.review.bot at gmail.com>
+
+        Unreviewed, rolling out r63352.
+        http://trac.webkit.org/changeset/63352
+        https://bugs.webkit.org/show_bug.cgi?id=42341
+
+        Broke plugin-initiate-popup-window.html and plugin-javascript-
+        access.html on snow leopard (Requested by abarth on #webkit).
+
+        * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
+        (pluginAllocate):
+        * DumpRenderTree/TestNetscapePlugIn/PluginObject.h:
+        * DumpRenderTree/TestNetscapePlugIn/main.cpp:
+        (NPP_New):
+        (handleEventCarbon):
+        (handleEventCocoa):
+
 2010-07-14  Maciej Stachowiak  <mjs at apple.com>
 
         Reviewed by Mark Rowe.
diff --git a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp
index b2b4013..671069e 100644
--- a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp
+++ b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp
@@ -978,19 +978,16 @@ static NPObject *pluginAllocate(NPP npp, NPClass *theClass)
     newInstance->returnNegativeOneFromWrite = FALSE;
     newInstance->stream = 0;
 
-    newInstance->firstUrl = 0;
-    newInstance->firstHeaders = 0;
-    newInstance->lastUrl = 0;
-    newInstance->lastHeaders = 0;
+    newInstance->firstUrl = NULL;
+    newInstance->firstHeaders = NULL;
+    newInstance->lastUrl = NULL;
+    newInstance->lastHeaders = NULL;
 
     newInstance->testGetURLOnDestroy = FALSE;
     newInstance->testDocumentOpenInDestroyStream = FALSE;
     newInstance->testWindowOpen = FALSE;
     newInstance->testKeyboardFocusForPlugins = FALSE;
 
-    newInstance->mouseDownForEvaluateScript = FALSE;
-    newInstance->evaluateScriptOnMouseDownOrKeyDown = 0;
-
     return (NPObject*)newInstance;
 }
 
diff --git a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h
index 206cad3..03befb0 100644
--- a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h
+++ b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h
@@ -54,7 +54,6 @@ typedef struct {
     NPBool testGetURLOnDestroy;
     NPBool testWindowOpen;
     NPBool testKeyboardFocusForPlugins;
-    NPBool mouseDownForEvaluateScript;
     char* onStreamLoad;
     char* onStreamDestroy;
     char* onDestroy;
@@ -64,7 +63,6 @@ typedef struct {
     char* firstHeaders;
     char* lastUrl;
     char* lastHeaders;
-    char* evaluateScriptOnMouseDownOrKeyDown;
 #ifdef XP_MACOSX
     NPEventModel eventModel;
 #endif
diff --git a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/main.cpp b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/main.cpp
index aeaee30..82a6e3a 100644
--- a/WebKitTools/DumpRenderTree/TestNetscapePlugIn/main.cpp
+++ b/WebKitTools/DumpRenderTree/TestNetscapePlugIn/main.cpp
@@ -183,20 +183,8 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc
             // FIXME: When https://bugs.webkit.org/show_bug.cgi?id=41831 is fixed, this #ifdef can be removed.
             obj->testGetURLOnDestroy = TRUE;
 #endif
-        } else if (!strcasecmp(argn[i], "src") && strstr(argv[i], "plugin-document-has-focus.pl"))
+        } else if (strcasecmp(argn[i], "src") == 0 && strstr(argv[i], "plugin-document-has-focus.pl"))
             obj->testKeyboardFocusForPlugins = TRUE;
-        else if (!strcasecmp(argn[i], "evaluatescript")) {
-            char* script = argv[i];
-            if (script == strstr(script, "mouse::")) {
-                obj->mouseDownForEvaluateScript = true;
-                obj->evaluateScriptOnMouseDownOrKeyDown = strdup(script + sizeof("mouse::") - 1);
-            } else if (script == strstr(script, "key::")) {
-                obj->evaluateScriptOnMouseDownOrKeyDown = strdup(script + sizeof("key::") - 1);
-            }
-            // When testing evaluate script on mouse-down or key-down, allow event logging to handle events.
-            if (obj->evaluateScriptOnMouseDownOrKeyDown)
-                obj->eventLogging = true;
-        }
     }
 
 #if XP_MACOSX
@@ -381,8 +369,6 @@ static int16_t handleEventCarbon(NPP instance, PluginObject* obj, EventRecord* e
         case mouseDown:
             GlobalToLocal(&pt);
             pluginLog(instance, "mouseDown at (%d, %d)", pt.h, pt.v);
-            if (obj->evaluateScriptOnMouseDownOrKeyDown && obj->mouseDownForEvaluateScript)
-                executeScript(obj, obj->evaluateScriptOnMouseDownOrKeyDown);
             break;
         case mouseUp:
             GlobalToLocal(&pt);
@@ -390,8 +376,6 @@ static int16_t handleEventCarbon(NPP instance, PluginObject* obj, EventRecord* e
             break;
         case keyDown:
             pluginLog(instance, "keyDown '%c'", (char)(event->message & 0xFF));
-            if (obj->evaluateScriptOnMouseDownOrKeyDown && !obj->mouseDownForEvaluateScript)
-                executeScript(obj, obj->evaluateScriptOnMouseDownOrKeyDown);
             break;
         case keyUp:
             pluginLog(instance, "keyUp '%c'", (char)(event->message & 0xFF));
@@ -465,8 +449,6 @@ static int16_t handleEventCocoa(NPP instance, PluginObject* obj, NPCocoaEvent* e
         case NPCocoaEventKeyDown:
             if (event->data.key.characters)
                 pluginLog(instance, "keyDown '%c'", CFStringGetCharacterAtIndex(reinterpret_cast<CFStringRef>(event->data.key.characters), 0));
-            if (obj->evaluateScriptOnMouseDownOrKeyDown && !obj->mouseDownForEvaluateScript)
-                executeScript(obj, obj->evaluateScriptOnMouseDownOrKeyDown);
             return 1;
 
         case NPCocoaEventKeyUp:
@@ -487,8 +469,6 @@ static int16_t handleEventCocoa(NPP instance, PluginObject* obj, NPCocoaEvent* e
             pluginLog(instance, "mouseDown at (%d, %d)", 
                    (int)event->data.mouse.pluginX,
                    (int)event->data.mouse.pluginY);
-            if (obj->evaluateScriptOnMouseDownOrKeyDown && obj->mouseDownForEvaluateScript)
-                executeScript(obj, obj->evaluateScriptOnMouseDownOrKeyDown);
             return 1;
         case NPCocoaEventMouseUp:
             pluginLog(instance, "mouseUp at (%d, %d)", 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list