Diff
Modified: trunk/LayoutTests/ChangeLog (270867 => 270868)
--- trunk/LayoutTests/ChangeLog 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/ChangeLog 2020-12-15 23:04:22 UTC (rev 270868)
@@ -1,3 +1,28 @@
+2020-12-15 Sihui Liu <[email protected]>
+
+ Add webkit- prefix to SpeechRecognition
+ https://bugs.webkit.org/show_bug.cgi?id=219869
+
+ Reviewed by Geoffrey Garen.
+
+ Replace SpeechRecognition with webkitSpeechRecognition in tests.
+
+ * fast/speechrecognition/ios/audio-capture-expected.txt:
+ * fast/speechrecognition/ios/audio-capture.html:
+ * fast/speechrecognition/ios/restart-recognition-after-stop-expected.txt:
+ * fast/speechrecognition/ios/restart-recognition-after-stop.html:
+ * fast/speechrecognition/ios/start-recognition-then-stop-expected.txt:
+ * fast/speechrecognition/ios/start-recognition-then-stop.html:
+ * fast/speechrecognition/permission-error-expected.txt:
+ * fast/speechrecognition/permission-error.html:
+ * fast/speechrecognition/resources/removed-iframe.html:
+ * fast/speechrecognition/start-recognition-then-stop-expected.txt:
+ * fast/speechrecognition/start-recognition-then-stop.html:
+ * fast/speechrecognition/start-recognition-twice-exception-expected.txt:
+ * fast/speechrecognition/start-recognition-twice-exception.html:
+ * fast/speechrecognition/start-second-recognition-expected.txt:
+ * fast/speechrecognition/start-second-recognition.html:
+
2020-12-15 Commit Queue <[email protected]>
Unreviewed, reverting r270860.
Modified: trunk/LayoutTests/fast/speechrecognition/ios/audio-capture-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/audio-capture-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/audio-capture-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition(); did not throw exception.
+PASS recognition = new webkitSpeechRecognition(); did not throw exception.
PASS recognition.start() did not throw exception.
Received start event
Received audiostart event
Modified: trunk/LayoutTests/fast/speechrecognition/ios/audio-capture.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/audio-capture.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/audio-capture.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -9,7 +9,7 @@
jsTestIsAsync = true;
}
-shouldNotThrow("recognition = new SpeechRecognition();");
+shouldNotThrow("recognition = new webkitSpeechRecognition();");
recognition._onstart_ = (event) => {
debug("Received start event");
}
Modified: trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition() did not throw exception.
+PASS recognition = new webkitSpeechRecognition() did not throw exception.
PASS recognition.start() did not throw exception.
Received start event
Received audiostart event
Modified: trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/restart-recognition-after-stop.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -10,7 +10,7 @@
}
var hasStopped = false;
-shouldNotThrow("recognition = new SpeechRecognition()");
+shouldNotThrow("recognition = new webkitSpeechRecognition()");
recognition.continuous = true;
recognition._onstart_ = (event) => {
Modified: trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition() did not throw exception.
+PASS recognition = new webkitSpeechRecognition() did not throw exception.
PASS recognition.start() did not throw exception.
Received start event
Received audiostart event
Modified: trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/ios/start-recognition-then-stop.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -10,7 +10,7 @@
}
var hasReceivedResult = false;
-shouldNotThrow("recognition = new SpeechRecognition()");
+shouldNotThrow("recognition = new webkitSpeechRecognition()");
recognition.continuous = true;
recognition._onstart_ = (event) => {
Modified: trunk/LayoutTests/fast/speechrecognition/permission-error-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/permission-error-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/permission-error-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition() did not throw exception.
+PASS recognition = new webkitSpeechRecognition() did not throw exception.
PASS recognition.start() did not throw exception.
PASS event.error is "not-allowed"
PASS event.message is "Permission check failed"
Modified: trunk/LayoutTests/fast/speechrecognition/permission-error.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/permission-error.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/permission-error.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -10,7 +10,7 @@
testRunner.setIsSpeechRecognitionPermissionGranted(false);
}
-shouldNotThrow("recognition = new SpeechRecognition()");
+shouldNotThrow("recognition = new webkitSpeechRecognition()");
shouldNotThrow("recognition.start()");
recognition._onerror_ = (event) => {
shouldBeEqualToString("event.error", "not-allowed");
Modified: trunk/LayoutTests/fast/speechrecognition/resources/removed-iframe.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/resources/removed-iframe.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/resources/removed-iframe.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -4,7 +4,7 @@
<script>
function startRecognition() {
- recognition = new SpeechRecognition();
+ recognition = new webkitSpeechRecognition();
parent.removeFrame();
recognition.start();
}
Modified: trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition(); did not throw exception.
+PASS recognition = new webkitSpeechRecognition(); did not throw exception.
PASS recognition.start() did not throw exception.
Received start event
Received audiostart event
Modified: trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-recognition-then-stop.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -9,7 +9,7 @@
jsTestIsAsync = true;
}
-shouldNotThrow("recognition = new SpeechRecognition();");
+shouldNotThrow("recognition = new webkitSpeechRecognition();");
recognition._onstart_ = (event) => {
debug("Received start event");
}
Modified: trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition(); did not throw exception.
+PASS recognition = new webkitSpeechRecognition(); did not throw exception.
PASS recognition.start() did not throw exception.
PASS recognition.start() threw exception InvalidStateError: Recognition is being started or already started.
PASS successfullyParsed is true
Modified: trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-recognition-twice-exception.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -5,7 +5,7 @@
<script>
description("Verify that starting a started recognition throws exception.");
-shouldNotThrow("recognition = new SpeechRecognition();");
+shouldNotThrow("recognition = new webkitSpeechRecognition();");
shouldNotThrow("recognition.start()");
shouldThrow("recognition.start()");
Modified: trunk/LayoutTests/fast/speechrecognition/start-second-recognition-expected.txt (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-second-recognition-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-second-recognition-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -3,9 +3,9 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS recognition = new SpeechRecognition(); did not throw exception.
+PASS recognition = new webkitSpeechRecognition(); did not throw exception.
PASS recognition.start() did not throw exception.
-PASS secondRecognition = new SpeechRecognition(); did not throw exception.
+PASS secondRecognition = new webkitSpeechRecognition(); did not throw exception.
PASS secondRecognition.start() did not throw exception.
PASS receivedStart is true
PASS event.error is "aborted"
Modified: trunk/LayoutTests/fast/speechrecognition/start-second-recognition.html (270867 => 270868)
--- trunk/LayoutTests/fast/speechrecognition/start-second-recognition.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/fast/speechrecognition/start-second-recognition.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -9,7 +9,7 @@
jsTestIsAsync = true;
}
-shouldNotThrow("recognition = new SpeechRecognition();");
+shouldNotThrow("recognition = new webkitSpeechRecognition();");
receivedStart = false;
recognition._onstart_ = (event) => {
receivedStart = true;
@@ -24,7 +24,7 @@
}
shouldNotThrow("recognition.start()");
-shouldNotThrow("secondRecognition = new SpeechRecognition();");
+shouldNotThrow("secondRecognition = new webkitSpeechRecognition();");
shouldNotThrow("secondRecognition.start()");
</script>
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (270867 => 270868)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-12-15 23:04:22 UTC (rev 270868)
@@ -1,3 +1,16 @@
+2020-12-15 Sihui Liu <[email protected]>
+
+ Add webkit- prefix to SpeechRecognition
+ https://bugs.webkit.org/show_bug.cgi?id=219869
+
+ Reviewed by Geoffrey Garen.
+
+ Update test expectations as SpeechRecognition becomes not available.
+
+ * web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt:
+ * web-platform-tests/speech-api/historical-expected.txt:
+ * web-platform-tests/speech-api/idlharness.window-expected.txt:
+
2020-12-15 Antoine Quint <[email protected]>
[Web Animations] Implied keyframes should not account for animations on siblings
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt (270867 => 270868)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -1,3 +1,3 @@
-FAIL SpeechRecognition basics undefined is not an object (evaluating 'reco.grammars.length')
+FAIL SpeechRecognition basics Can't find variable: SpeechRecognition
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/historical-expected.txt (270867 => 270868)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/historical-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/historical-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -2,7 +2,7 @@
PASS SpeechRecognitionError interface should not exist
PASS webkitSpeechGrammar interface should not exist
PASS webkitSpeechGrammarList interface should not exist
-PASS webkitSpeechRecognition interface should not exist
+FAIL webkitSpeechRecognition interface should not exist assert_false: expected false got true
PASS webkitSpeechRecognitionError interface should not exist
PASS webkitSpeechRecognitionEvent interface should not exist
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/idlharness.window-expected.txt (270867 => 270868)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/idlharness.window-expected.txt 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/idlharness.window-expected.txt 2020-12-15 23:04:22 UTC (rev 270868)
@@ -11,52 +11,52 @@
PASS Window includes AnimationFrameProvider: member names are unique
PASS Window includes WindowSessionStorage: member names are unique
PASS Window includes WindowLocalStorage: member names are unique
-PASS SpeechRecognition interface: existence and properties of interface object
-PASS SpeechRecognition interface object length
-PASS SpeechRecognition interface object name
-PASS SpeechRecognition interface: existence and properties of interface prototype object
-PASS SpeechRecognition interface: existence and properties of interface prototype object's "constructor" property
-PASS SpeechRecognition interface: existence and properties of interface prototype object's @@unscopables property
-FAIL SpeechRecognition interface: attribute grammars assert_true: The prototype object must have a property "grammars" expected true got false
-PASS SpeechRecognition interface: attribute lang
-PASS SpeechRecognition interface: attribute continuous
-PASS SpeechRecognition interface: attribute interimResults
-PASS SpeechRecognition interface: attribute maxAlternatives
-PASS SpeechRecognition interface: operation start()
-PASS SpeechRecognition interface: operation stop()
-PASS SpeechRecognition interface: operation abort()
-PASS SpeechRecognition interface: attribute onaudiostart
-PASS SpeechRecognition interface: attribute onsoundstart
-PASS SpeechRecognition interface: attribute onspeechstart
-PASS SpeechRecognition interface: attribute onspeechend
-PASS SpeechRecognition interface: attribute onsoundend
-PASS SpeechRecognition interface: attribute onaudioend
-PASS SpeechRecognition interface: attribute onresult
-PASS SpeechRecognition interface: attribute onnomatch
-PASS SpeechRecognition interface: attribute onerror
-PASS SpeechRecognition interface: attribute onstart
-PASS SpeechRecognition interface: attribute onend
-PASS SpeechRecognition must be primary interface of new SpeechRecognition()
-PASS Stringification of new SpeechRecognition()
-FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "grammars" with the proper type assert_inherits: property "grammars" not found in prototype chain
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "lang" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "continuous" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "interimResults" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "maxAlternatives" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "start()" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "stop()" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "abort()" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudiostart" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundstart" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechstart" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechend" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundend" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudioend" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onresult" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onnomatch" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onerror" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onstart" with the proper type
-PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onend" with the proper type
+FAIL SpeechRecognition interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface object length assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface object name assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute grammars assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute lang assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute continuous assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute interimResults assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute maxAlternatives assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: operation start() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: operation stop() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: operation abort() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onaudiostart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onsoundstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onspeechstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onspeechend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onsoundend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onaudioend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onresult assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onnomatch assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onerror assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition interface: attribute onend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
+FAIL SpeechRecognition must be primary interface of new SpeechRecognition() assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL Stringification of new SpeechRecognition() assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "grammars" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "lang" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "continuous" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "interimResults" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "maxAlternatives" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "start()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "stop()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "abort()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudiostart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudioend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onresult" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onnomatch" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onerror" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
+FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
PASS SpeechRecognitionErrorEvent interface: existence and properties of interface object
PASS SpeechRecognitionErrorEvent interface object length
PASS SpeechRecognitionErrorEvent interface object name
Modified: trunk/Source/WebCore/ChangeLog (270867 => 270868)
--- trunk/Source/WebCore/ChangeLog 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/Source/WebCore/ChangeLog 2020-12-15 23:04:22 UTC (rev 270868)
@@ -1,3 +1,13 @@
+2020-12-15 Sihui Liu <[email protected]>
+
+ Add webkit- prefix to SpeechRecognition
+ https://bugs.webkit.org/show_bug.cgi?id=219869
+
+ Reviewed by Geoffrey Garen.
+
+ * Modules/speech/SpeechRecognition.idl:
+ * bindings/js/WebCoreBuiltinNames.h:
+
2020-12-15 Simon Fraser <[email protected]>
REGRESSION (r259137): Clip-path rendering regression when element contains transformed child
Modified: trunk/Source/WebCore/Modules/speech/SpeechRecognition.idl (270867 => 270868)
--- trunk/Source/WebCore/Modules/speech/SpeechRecognition.idl 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/Source/WebCore/Modules/speech/SpeechRecognition.idl 2020-12-15 23:04:22 UTC (rev 270868)
@@ -26,6 +26,7 @@
[
ActiveDOMObject,
EnabledBySetting=SpeechRecognition,
+ InterfaceName=webkitSpeechRecognition,
Exposed=Window
] interface SpeechRecognition : EventTarget {
[CallWith=Document] constructor();
Modified: trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h (270867 => 270868)
--- trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h 2020-12-15 23:04:22 UTC (rev 270868)
@@ -469,6 +469,7 @@
macro(webkitIndexedDB) \
macro(webkitOfflineAudioContext) \
macro(webkitOscillatorNode) \
+ macro(webkitSpeechRecognition) \
macro(whenSignalAborted) \
macro(window) \
macro(writable) \
Modified: trunk/Tools/ChangeLog (270867 => 270868)
--- trunk/Tools/ChangeLog 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/Tools/ChangeLog 2020-12-15 23:04:22 UTC (rev 270868)
@@ -1,3 +1,14 @@
+2020-12-15 Sihui Liu <[email protected]>
+
+ Add webkit- prefix to SpeechRecognition
+ https://bugs.webkit.org/show_bug.cgi?id=219869
+
+ Reviewed by Geoffrey Garen.
+
+ Replace SpeechRecognition with webkitSpeechRecognition in test.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/speechrecognition-user-permission-persistence.html:
+
2020-12-15 Jonathan Bedard <[email protected]>
[webkitscmpy] Save contributors to json file
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/speechrecognition-user-permission-persistence.html (270867 => 270868)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/speechrecognition-user-permission-persistence.html 2020-12-15 22:58:16 UTC (rev 270867)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/speechrecognition-user-permission-persistence.html 2020-12-15 23:04:22 UTC (rev 270868)
@@ -6,7 +6,7 @@
{
stop();
- speechRecognition = new SpeechRecognition();
+ speechRecognition = new webkitSpeechRecognition();
speechRecognition._onerror_ = (event) => {
window.webkit.messageHandlers.testHandler.postMessage("Error: " + event.error + " - " + event.message);
}