Skip to content

Commit 85b8827

Browse files
Elchi3caugner
andauthored
Safari 18.4 supports Notification.navigate (#27812)
* Add Notification.navigate * Apparently not in webview_ios * test(utils/walk): update expectations One feature was added to `api.Notification`. --------- Co-authored-by: Claas Augner <caugner@mozilla.com>
1 parent e16cbd7 commit 85b8827

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

api/Notification.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,39 @@
824824
}
825825
}
826826
},
827+
"navigate": {
828+
"__compat": {
829+
"spec_url": "https://notifications.spec.whatwg.org/#dom-notification-navigate",
830+
"support": {
831+
"chrome": {
832+
"version_added": false
833+
},
834+
"chrome_android": "mirror",
835+
"edge": "mirror",
836+
"firefox": {
837+
"version_added": false
838+
},
839+
"firefox_android": "mirror",
840+
"oculus": "mirror",
841+
"opera": "mirror",
842+
"opera_android": "mirror",
843+
"safari": {
844+
"version_added": "18.4"
845+
},
846+
"safari_ios": "mirror",
847+
"samsunginternet_android": "mirror",
848+
"webview_android": "mirror",
849+
"webview_ios": {
850+
"version_added": false
851+
}
852+
},
853+
"status": {
854+
"experimental": true,
855+
"standard_track": true,
856+
"deprecated": false
857+
}
858+
}
859+
},
827860
"permission_static": {
828861
"__compat": {
829862
"description": "`permission` static property",

utils/walk.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('walk()', () => {
2929

3030
it('should walk a single tree', () => {
3131
const results = Array.from(walk('api.Notification'));
32-
assert.equal(results.length, 28);
32+
assert.equal(results.length, 29);
3333
assert.equal(results[0].path, 'api.Notification');
3434
assert.equal(results[1].path, 'api.Notification.Notification');
3535
});
@@ -38,7 +38,7 @@ describe('walk()', () => {
3838
const results = Array.from(
3939
walk(['api.Notification', 'css.properties.color']),
4040
);
41-
assert.equal(results.length, 29);
41+
assert.equal(results.length, 30);
4242
assert.equal(results[0].path, 'api.Notification');
4343
assert.equal(results[results.length - 1].path, 'css.properties.color');
4444
});

0 commit comments

Comments
 (0)