Changeset 270048 in webkit
- Timestamp:
- Nov 19, 2020 1:06:46 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r270044 r270048 1 2020-11-19 Chris Dumez <cdumez@apple.com> 2 3 Regression(r267865) Geolocation API's error callback should be nullable 4 https://bugs.webkit.org/show_bug.cgi?id=219165 5 6 Reviewed by Geoffrey Garen. 7 8 Update existing test to reflect behavior change. 9 10 * fast/dom/Geolocation/argument-types-expected.txt: 11 * fast/dom/Geolocation/argument-types.html: 12 1 13 2020-11-19 Zalan Bujtas <zalan@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt
r267865 r270048 18 18 PASS navigator.geolocation.getCurrentPosition("string") threw exception TypeError: Argument 1 ('successCallback') to Geolocation.getCurrentPosition must be a function. 19 19 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined) did not throw exception. 20 PASS navigator.geolocation.getCurrentPosition(emptyFunction, null) threw exception TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function.20 PASS navigator.geolocation.getCurrentPosition(emptyFunction, null) did not throw exception. 21 21 PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function. 22 22 PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function. … … 79 79 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:-Infinity}) did not throw exception. 80 80 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:"string"}) did not throw exception. 81 PASS navigator.geolocation.watchPosition(emptyFunction, null) did not throw exception. 81 82 PASS successfullyParsed is true 82 83 -
trunk/LayoutTests/fast/dom/Geolocation/argument-types.html
r267865 r270048 57 57 58 58 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined)', false); 59 test('navigator.geolocation.getCurrentPosition(emptyFunction, null)', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function");59 test('navigator.geolocation.getCurrentPosition(emptyFunction, null)', false); 60 60 test('navigator.geolocation.getCurrentPosition(emptyFunction, {})', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); 61 61 test('navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException)', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); … … 124 124 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:"string"})', false); 125 125 126 test("navigator.geolocation.watchPosition(emptyFunction, null)", false); 127 126 128 window.jsTestIsAsync = false; 127 129 -
trunk/LayoutTests/imported/w3c/ChangeLog
r270047 r270048 1 2020-11-19 Chris Dumez <cdumez@apple.com> 2 3 Regression(r267865) Geolocation API's error callback should be nullable 4 https://bugs.webkit.org/show_bug.cgi?id=219165 5 6 Reviewed by Geoffrey Garen. 7 8 Rebaseline WPT test now that more checks are passing. 9 10 * web-platform-tests/geolocation-API/PositionOptions.https-expected.txt: 11 1 12 2020-11-19 Darin Adler <darin@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/geolocation-API/PositionOptions.https-expected.txt
r270014 r270048 1 1 2 FAIL Call getCurrentPosition with wrong type for enableHighAccuracy. No exception expected. assert_unreached: An exception was thrown unexpectedly: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function Reached unreachable code 3 FAIL Call watchPosition with wrong type for enableHighAccuracy. No exception expected. assert_unreached: An exception was thrown unexpectedly: Argument 2 ('errorCallback') to Geolocation.watchPosition must be a function Reached unreachable code 2 PASS Call getCurrentPosition with wrong type for enableHighAccuracy. No exception expected. 3 PASS Call watchPosition with wrong type for enableHighAccuracy. No exception expected. 4 4 FAIL PositionOptions tests promise_test: Unhandled rejection with value: object "Error: unimplemented" 5 5 -
trunk/Source/WebCore/ChangeLog
r270046 r270048 1 2020-11-19 Chris Dumez <cdumez@apple.com> 2 3 Regression(r267865) Geolocation API's error callback should be nullable 4 https://bugs.webkit.org/show_bug.cgi?id=219165 5 6 Reviewed by Geoffrey Garen. 7 8 Geolocation API's error callback should be nullable. The callback is nullable in both Firefox 9 and Chrome and there is at least one WPT test that fails unless the error callback is nullable. 10 11 The specification does not have this parameter as nullable. However, it is particularly risky 12 to be the only engine matching the specification here, especially considering that we used to 13 match other browser engines. 14 15 No new tests, updated / rebaselined existing tests. 16 17 * Modules/geolocation/Geolocation.idl: 18 1 19 2020-11-19 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/Modules/geolocation/Geolocation.idl
r267865 r270048 32 32 ] interface Geolocation { 33 33 undefined getCurrentPosition(PositionCallback successCallback, 34 optional PositionErrorCallback errorCallback,34 optional PositionErrorCallback? errorCallback, 35 35 optional PositionOptions options); 36 36 37 37 long watchPosition(PositionCallback successCallback, 38 optional PositionErrorCallback errorCallback,38 optional PositionErrorCallback? errorCallback, 39 39 optional PositionOptions options); 40 40
Note: See TracChangeset
for help on using the changeset viewer.