Skip to content

Commit b8c6e23

Browse files
authored
Reword docs for HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS. NFC (#22154)
1 parent 0f73b36 commit b8c6e23

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,11 +3054,10 @@ Certain browser DOM API operations, such as requesting fullscreen mode
30543054
transition or pointer lock require that the request originates from within
30553055
an user initiated event, such as mouse click or keyboard press. Refactoring
30563056
an application to follow this kind of program structure can be difficult, so
3057-
HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS=1 flag allows transparent
3058-
emulation of this by deferring synchronous fullscreen mode and pointer lock
3059-
requests until a suitable event callback is generated. Set this to 0
3060-
to disable support for deferring to save code space if your application does
3061-
not need support for deferred calls.
3057+
HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS allows transparent emulation
3058+
of this by deferring such requests until a suitable event callback is
3059+
generated. Set this to 0 to disable support for deferring to on save code
3060+
size if your application does not need support for deferred calls.
30623061

30633062
Default value: true
30643063

src/settings.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,11 +1988,10 @@ var DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR = true;
19881988
// transition or pointer lock require that the request originates from within
19891989
// an user initiated event, such as mouse click or keyboard press. Refactoring
19901990
// an application to follow this kind of program structure can be difficult, so
1991-
// HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS=1 flag allows transparent
1992-
// emulation of this by deferring synchronous fullscreen mode and pointer lock
1993-
// requests until a suitable event callback is generated. Set this to 0
1994-
// to disable support for deferring to save code space if your application does
1995-
// not need support for deferred calls.
1991+
// HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS allows transparent emulation
1992+
// of this by deferring such requests until a suitable event callback is
1993+
// generated. Set this to 0 to disable support for deferring to on save code
1994+
// size if your application does not need support for deferred calls.
19961995
// [link]
19971996
var HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS = true;
19981997

0 commit comments

Comments
 (0)