Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt NetworkInformation API to new events structure #15177

Merged
merged 2 commits into from
Mar 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 93 additions & 88 deletions api/NetworkInformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,39 +48,36 @@
"deprecated": false
}
},
"downlink": {
"change_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/downlink",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-downlink",
"description": "<code>change</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/change_event",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-onchange",
"support": {
"chrome": {
"version_added": "61",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "61"
},
"chrome_android": {
"version_added": "38",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "38"
},
"edge": {
"version_added": "79",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "79"
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
"version_added": false,
"notes": "On Firefox, the event handler property corresponding to the <code>change</code> event is <code>ontypechange</code>."
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "48",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "48"
},
"opera_android": {
"version_added": "25",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "45"
},
"safari": {
"version_added": false
Expand All @@ -89,12 +86,10 @@
"version_added": false
},
"samsunginternet_android": {
"version_added": "3.0",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "3.0"
},
"webview_android": {
"version_added": "50",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
"version_added": "50"
}
},
"status": {
Expand All @@ -104,20 +99,22 @@
}
}
},
"downlinkMax": {
"downlink": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/downlinkMax",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-downlinkmax",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/downlink",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-downlink",
"support": {
"chrome": {
"version_added": "61",
"notes": "Only supported in Chrome OS"
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"chrome_android": {
"version_added": "38"
"version_added": "38",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"edge": {
"version_added": false
"version_added": "79",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"firefox": {
"version_added": false
Expand All @@ -129,10 +126,12 @@
"version_added": false
},
"opera": {
"version_added": false
"version_added": "48",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"opera_android": {
"version_added": "45"
"version_added": "25",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"safari": {
"version_added": false
Expand All @@ -141,10 +140,12 @@
"version_added": false
},
"samsunginternet_android": {
"version_added": "3.0"
"version_added": "3.0",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
},
"webview_android": {
"version_added": "50"
"version_added": "50",
"notes": "The value is never greater than 10 Mbps, as a non-standard anti-fingerprinting measure."
}
},
"status": {
Expand All @@ -154,19 +155,20 @@
}
}
},
"effectiveType": {
"downlinkMax": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/effectiveType",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-effectivetype",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/downlinkMax",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-downlinkmax",
"support": {
"chrome": {
"version_added": "61"
"version_added": "61",
"notes": "Only supported in Chrome OS"
},
"chrome_android": {
"version_added": "38"
},
"edge": {
"version_added": "79"
"version_added": false
},
"firefox": {
"version_added": false
Expand All @@ -178,7 +180,7 @@
"version_added": false
},
"opera": {
"version_added": "48"
"version_added": false
},
"opera_android": {
"version_added": "45"
Expand All @@ -203,10 +205,10 @@
}
}
},
"onchange": {
"effectiveType": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/onchange",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-onchange",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/effectiveType",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-effectivetype",
"support": {
"chrome": {
"version_added": "61"
Expand All @@ -221,8 +223,7 @@
"version_added": false
},
"firefox_android": {
"version_added": false,
"notes": "On Firefox, the event handler property corresponding to the <code>change</code> event is <code>ontypechange</code>."
"version_added": false
},
"ie": {
"version_added": false
Expand Down Expand Up @@ -253,55 +254,6 @@
}
}
},
"ontypechange": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/ontypechange",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-onchange",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": {
"version_added": "38"
},
"edge": {
"version_added": false
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": "31"
},
"ie": {
"version_added": false
},
"opera": {
"version_added": false
},
"opera_android": {
"version_added": "25"
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": "3.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": false,
"deprecated": true
}
}
},
"rtt": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/rtt",
Expand Down Expand Up @@ -457,6 +409,59 @@
}
}
},
"typechange_event": {
"__compat": {
"description": "<code>typechange</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/NetworkInformation/typechange_event",
"spec_url": "https://wicg.github.io/netinfo/#dom-networkinformation-onchange",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": {
"version_added": "38",
"notes": "Removal proposed in <a href=' https://crbug.com/699892'>bug 699892</a>."
},
"edge": {
"version_added": false
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": "31"
},
"ie": {
"version_added": false
},
"opera": {
"version_added": false
},
"opera_android": {
"version_added": "25",
"notes": "Removal proposed in <a href=' https://crbug.com/699892'>bug 699892</a>."
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": "3.0",
"notes": "Removal proposed in <a href=' https://crbug.com/699892'>bug 699892</a>."
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": false,
"deprecated": true
}
}
},
"worker_support": {
"__compat": {
"description": "Available in workers",
Expand Down