Skip to content

Commit 40ba5eb

Browse files
Mark onvisibilitychange & visibilityState partial
This change marks support for the onvisibilitychange event handler and document.visibilityState property a partial_implementation:true for Safari (due the fact that Safari apparently doesn’t fire visibilitychange as expected when visibilityState transitions to "hidden").
1 parent 9317fea commit 40ba5eb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

api/Document.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7671,10 +7671,14 @@
76717671
"notes": "Doesn't fire the <code>visibilitychange</code> event when the browser window is minimized, nor when <code>hidden</code> is set to true."
76727672
},
76737673
"safari": {
7674-
"version_added": "7"
7674+
"version_added": "7",
7675+
"partial_implementation": true,
7676+
"notes": "Doesn't fire the <code>visibilitychange</code> event when <code>document.visibilityState</code> transitions to <code>hidden</code>, so also include code to check for the <code>pagehide</code> event (which does fire for that case in all current browsers). See WebKit bugs <a href='https://webkit.org/b/116769'>116769</a>, <a href='https://webkit.org/b/151234'>151234</a>, <a href='https://webkit.org/b/151610'>151610</a>, and <a href='https://webkit.org/b/194897'>194897</a>."
76757677
},
76767678
"safari_ios": {
7677-
"version_added": "7"
7679+
"version_added": "7",
7680+
"partial_implementation": true,
7681+
"notes": "Doesn't fire the <code>visibilitychange</code> event when <code>document.visibilityState</code> transitions to <code>hidden</code>, so also include code to check for the <code>pagehide</code> event (which does fire for that case in all current browsers). See WebKit bugs <a href='https://webkit.org/b/116769'>116769</a>, <a href='https://webkit.org/b/151234'>151234</a>, <a href='https://webkit.org/b/151610'>151610</a>, and <a href='https://webkit.org/b/194897'>194897</a>."
76787682
},
76797683
"samsunginternet_android": {
76807684
"version_added": "2.0"
@@ -10919,10 +10923,14 @@
1091910923
"notes": "Doesn't fire the <code>visibilitychange</code> event when the browser window is minimized, nor when <code>hidden</code> is set to true."
1092010924
},
1092110925
"safari": {
10922-
"version_added": "7"
10926+
"version_added": "7",
10927+
"partial_implementation": true,
10928+
"notes": "Doesn't fire the <code>visibilitychange</code> event when <code>document.visibilityState</code> transitions to <code>hidden</code>, so also include code to check for the <code>pagehide</code> event (which does fire for that case in all current browsers). See WebKit bugs <a href='https://webkit.org/b/116769'>116769</a>, <a href='https://webkit.org/b/151234'>151234</a>, <a href='https://webkit.org/b/151610'>151610</a>, and <a href='https://webkit.org/b/194897'>194897</a>."
1092310929
},
1092410930
"safari_ios": {
10925-
"version_added": "7"
10931+
"version_added": "7",
10932+
"partial_implementation": true,
10933+
"notes": "Doesn't fire the <code>visibilitychange</code> event when <code>document.visibilityState</code> transitions to <code>hidden</code>, so also include code to check for the <code>pagehide</code> event (which does fire for that case in all current browsers). See WebKit bugs <a href='https://webkit.org/b/116769'>116769</a>, <a href='https://webkit.org/b/151234'>151234</a>, <a href='https://webkit.org/b/151610'>151610</a>, and <a href='https://webkit.org/b/194897'>194897</a>."
1092610934
},
1092710935
"samsunginternet_android": [
1092810936
{

0 commit comments

Comments
 (0)