gecko-dev/dom
J.C. Jones f7a8b4c054 Bug 1448408 - Web Authentication - Don't immediately abort on visibility events r=keeler
The published recommendation of L1 for WebAuthn changed the visibility/focus
listening behaviors to a SHOULD [1], and Chromium, for reasons like our SoftU2F
bug [0], opted to not interrupt on tabswitch/visibility change.

Let's do the same thing.

This changes the visibility mechanism to set a flag on an ongoing transaction,
and then, upon multiple calls to the FIDO/U2F functions, only aborts if
visibility had changed. Otherwise, subsequent callers return early.

This is harder to explain than it is really to use as a user. I think. At least,
my testing feels natural when I'm working within two windows, both potentially
prompting WebAuthn.

Note: This also affects FIDO U2F API.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1448408#c0
[1] https://www.w3.org/TR/webauthn-1/#abortoperation

Differential Revision: https://phabricator.services.mozilla.com/D25160

--HG--
extra : moz-landing-system : lando
2019-03-29 17:59:08 +00:00
..
abort Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
animation Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
audiochannel
base Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug 2019-03-29 18:05:11 +00:00
battery
bindings Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-30 00:05:29 +02:00
broadcastchannel Bug 1539524 - BroadcastChannel must bind itself to valid nsIGlobalObject in workers, r=smaug 2019-03-28 22:12:27 +00:00
browser-element Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug 2019-03-29 15:11:04 +00:00
cache Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
canvas Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
chrome-webidl Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE. 2019-03-28 20:54:28 +02:00
clients
commandhandler
console Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
credentialmanagement Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
crypto Backed out changeset e356ebea641d (bug 1539578) for causing browser_WebCrypto_telemetry.js to perma fail CLOSED TREE 2019-03-29 21:21:33 +02:00
encoding Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
events Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
fetch Bug 1539208 - P2 - Use RandomNum while failing to get a random number from RandomGenerator; r=baku 2019-03-29 09:04:10 +00:00
file
filehandle
filesystem
flex
gamepad
geolocation
grid
html Bug 1539172 - Make nsContentUtils::DispatchInputEvent() notify content of valid state change of input element r=smaug 2019-03-28 23:40:18 +00:00
imptests
indexedDB Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug 2019-03-29 18:05:11 +00:00
interfaces Bug 1533874. Make nsIDOMWindowUtils builtinclass. r=mccr8 2019-03-28 19:36:50 +00:00
ipc Bug 1538987 - Follow-up: skip incrementing the DOM_CONTENTPROCESS_OS_PRIORITY_RAISED probe for the initialization case. r=gsvelto 2019-03-29 22:07:13 +00:00
jsurl Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan 2019-03-25 12:47:57 +00:00
locales Bug 1386214 - Remove require-sri from the CSP-Module r=ckerschb,qdot 2019-03-26 21:58:48 +00:00
localstorage Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
manifest
mathml
media Bug 1534692 - Part 6: Simplify this identity verification code. Fixes a bug where sRD would not wait for the verification to complete when the target peer identity was set. r=jib 2019-03-29 20:51:19 +00:00
messagechannel
midi
network
notification Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
offline
payments Bug 1538526 - Set BasicCardResponse defaults in IDL. r=baku 2019-03-25 23:40:23 +00:00
performance
permission
plugins Merge inbound to mozilla-central. a=merge 2019-03-29 23:54:39 +02:00
power
presentation Bug 1535442 - Part 10: Fix bug in presentation API mochitest where ICE candidates were being sent to the wrong PC. r=smaug 2019-03-28 21:45:46 +00:00
prio
promise Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
prototype Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
push
quota Bug 1539666 - Add more warning message while a URL is not recognized by MozURL and mark these directries as obsolete to pass the upgrade; r=asuth 2019-03-29 20:08:24 +00:00
reporting
res
script Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan 2019-03-25 12:47:57 +00:00
security Bug 1529893: Set correct CSP within nsWindowWatcher. r=bzbarsky 2019-03-28 19:20:00 +00:00
serviceworkers Bug 1537876 - Augment CSS errors with the CSS selector r=emilio 2019-03-27 12:12:55 +00:00
simpledb
smil Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
storage
svg Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
system
tests Bug 1539541 - Enable FIDO U2F API, and permit registrations for Google Accounts r=keeler,qdot 2019-03-29 17:16:13 +00:00
u2f Bug 1448408 - Web Authentication - Don't immediately abort on visibility events r=keeler 2019-03-29 17:59:08 +00:00
url
vr
webauthn Bug 1448408 - Web Authentication - Don't immediately abort on visibility events r=keeler 2019-03-29 17:59:08 +00:00
webbrowserpersist
webgpu Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
webidl Bug 1492587 - spoof date picker to en-US when pref is set; r=zbraniecki,baku 2019-03-29 10:49:58 +00:00
websocket Bug 1539528 - WebSocket must bind itself to valid nsIGlobalObject in workers, r=smaug 2019-03-29 14:14:53 +00:00
workers Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug 2019-03-29 18:05:11 +00:00
worklet
xbl Merge inbound to mozilla-central. a=merge 2019-03-29 23:54:39 +02:00
xhr Bug 1540159 - XMLHttpRequestUpload must bind itself to valid nsIGlobalObject in workers, r=smaug 2019-03-29 17:22:39 +00:00
xml Bug 1539742 - Notify of appends to the right document when parsing into an already-adopted node. r=bzbarsky 2019-03-29 09:55:10 +00:00
xslt
xul Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
jar.mn
moz.build