Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (250394 => 250395)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-09-26 20:05:25 UTC (rev 250395)
@@ -1,3 +1,17 @@
+2019-09-26 Truitt Savell <[email protected]>
+
+ Unreviewed, rolling out r250385.
+
+ Broke imported/w3c/web-platform-tests/svg/animations/syncbase-
+ remove-add-while-running.html on all platforms. Which was
+ caught by EWS
+
+ Reverted changeset:
+
+ "Non-callable "handleEvent" property is silently ignored"
+ https://bugs.webkit.org/show_bug.cgi?id=200066
+ https://trac.webkit.org/changeset/250385
+
2019-09-26 Alexey Shvayka <[email protected]>
Non-callable "handleEvent" property is silently ignored
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-error-event-exception-expected.txt (250394 => 250395)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-error-event-exception-expected.txt 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-error-event-exception-expected.txt 2019-09-26 20:05:25 UTC (rev 250395)
@@ -3,7 +3,7 @@
PASS Exception in error event handler on request, with preventDefault
PASS Exception in error event listener on request
PASS Exception in error event listener ("handleEvent" lookup) on request
-PASS Exception in error event listener (non-callable "handleEvent") on request
+FAIL Exception in error event listener (non-callable "handleEvent") on request assert_equals: expected "AbortError" but got "ConstraintError"
PASS Exception in second error event listener on request
PASS Exception in first error event listener on request, transaction active in second
PASS Exception in error event handler on transaction
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception-expected.txt (250394 => 250395)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception-expected.txt 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception-expected.txt 2019-09-26 20:05:25 UTC (rev 250395)
@@ -2,7 +2,7 @@
PASS Exception in success event handler on request
PASS Exception in success event listener on request
PASS Exception in success event listener ("handleEvent" lookup) on request
-PASS Exception in success event listener (non-callable "handleEvent") on request
+FAIL Exception in success event listener (non-callable "handleEvent") on request assert_unreached: transaction should abort Reached unreachable code
PASS Exception in second success event listener on request
PASS Exception in first success event listener, tx active in second
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-upgradeneeded-event-exception-expected.txt (250394 => 250395)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-upgradeneeded-event-exception-expected.txt 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/fire-upgradeneeded-event-exception-expected.txt 2019-09-26 20:05:25 UTC (rev 250395)
@@ -1,7 +1,6 @@
CONSOLE MESSAGE: line 31: Error
CONSOLE MESSAGE: line 37: Error
CONSOLE MESSAGE: line 44: Error
-CONSOLE MESSAGE: TypeError: 'handleEvent' property of event listener should be callable
CONSOLE MESSAGE: line 62: Error
CONSOLE MESSAGE: line 70: Error
@@ -8,7 +7,7 @@
PASS Exception in upgradeneeded handler
PASS Exception in upgradeneeded listener
PASS Exception in upgradeneeded "handleEvent" lookup
-PASS Exception in upgradeneeded due to non-callable "handleEvent"
+FAIL Exception in upgradeneeded due to non-callable "handleEvent" assert_unreached: open should fail Reached unreachable code
PASS Exception in second upgradeneeded listener
PASS Exception in first upgradeneeded listener, tx active in second
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventListener-handleEvent-expected.txt (250394 => 250395)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventListener-handleEvent-expected.txt 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventListener-handleEvent-expected.txt 2019-09-26 20:05:25 UTC (rev 250395)
@@ -1,11 +1,9 @@
CONSOLE MESSAGE: line 46: [object Object]
-CONSOLE MESSAGE: line 101: TypeError: 'handleEvent' property of event listener should be callable
-CONSOLE MESSAGE: line 122: TypeError: 'handleEvent' property of event listener should be callable
PASS calls `handleEvent` method of `EventListener`
PASS rethrows errors when getting `handleEvent`
PASS performs `Get` every time event is dispatched
PASS doesn't call `handleEvent` method on callable `EventListener`
-PASS throws if `handleEvent` is falsy and not callable
-PASS throws if `handleEvent` is thruthy and not callable
+FAIL throws if `handleEvent` is falsy and not callable assert_true: expected true got false
+FAIL throws if `handleEvent` is thruthy and not callable assert_true: expected true got false
Modified: trunk/Source/WebCore/ChangeLog (250394 => 250395)
--- trunk/Source/WebCore/ChangeLog 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/Source/WebCore/ChangeLog 2019-09-26 20:05:25 UTC (rev 250395)
@@ -1,3 +1,17 @@
+2019-09-26 Truitt Savell <[email protected]>
+
+ Unreviewed, rolling out r250385.
+
+ Broke imported/w3c/web-platform-tests/svg/animations/syncbase-
+ remove-add-while-running.html on all platforms. Which was
+ caught by EWS
+
+ Reverted changeset:
+
+ "Non-callable "handleEvent" property is silently ignored"
+ https://bugs.webkit.org/show_bug.cgi?id=200066
+ https://trac.webkit.org/changeset/250385
+
2019-09-26 Kate Cheney <[email protected]>
Enable LayoutTests using ResourceLoadStatistics SQLite backend (195420)
Modified: trunk/Source/WebCore/bindings/js/JSEventListener.cpp (250394 => 250395)
--- trunk/Source/WebCore/bindings/js/JSEventListener.cpp 2019-09-26 19:20:22 UTC (rev 250394)
+++ trunk/Source/WebCore/bindings/js/JSEventListener.cpp 2019-09-26 20:05:25 UTC (rev 250395)
@@ -148,13 +148,11 @@
return;
}
callType = getCallData(vm, handleEventFunction, callData);
- if (callType == CallType::None) {
- event.target()->uncaughtExceptionInEventHandler();
- reportException(exec, createTypeError(exec, "'handleEvent' property of event listener should be callable"_s));
- return;
- }
}
+ if (callType == CallType::None)
+ return;
+
Ref<JSEventListener> protectedThis(*this);
MarkedArgumentBuffer args;