gecko-dev/dom
Emilio Cobos Álvarez b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

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

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
..
abort
animation Bug 1553154 - enable animation preferences for test_animation_observers_async.html. r=birtles 2019-05-22 23:51:19 +00:00
audiochannel
base Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp 2019-06-03 19:42:28 +00:00
battery
bindings Bug 1555729 - Improve CallbackObject::CallbackPreserveColor comments to warn about use of Reset() r=bzbarsky? 2019-05-31 16:19:41 +00:00
broadcastchannel Bug 1554361 - Move the high-level storage access check APIs to mozilla/StorageAccess.h; r=baku 2019-05-27 14:06:49 +00:00
browser-element Bug 1551729 - Revert bug 1548432 - Re-introducing the support for cookies without values, r=mayhemer 2019-05-22 06:31:22 +00:00
cache Bug 1555189 - Enable partitioning of DOM cache in the third-party context; r=baku 2019-05-29 15:42:43 +00:00
canvas Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya 2019-06-03 09:54:43 +00:00
chrome-webidl Bug 1555301 - Fix JSWindowActor.webidl comments; r=nika 2019-05-31 14:32:47 +00:00
clients Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp 2019-06-03 19:42:28 +00:00
commandhandler Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
console
credentialmanagement Bug 1551342 - Update U2F, WebAuthn, and CredMan tests for Android r=keeler 2019-05-15 21:34:58 +00:00
crypto
docs
encoding
events Bug 1543439 - Part 3: change and click event fired from browser UI should be considered as an user interaction event; r=masayuki 2019-05-27 12:50:33 +00:00
fetch Bug 1546041 - Throw TypeError if mode is Navigate r=baku 2019-05-27 13:51:16 +00:00
file Bug 1536744 - Remove nsIProtocolHandler.newURI r=baku 2019-05-28 13:49:27 +00:00
filehandle
filesystem
flex Bug 1532937 - Enable ESLint for dom/flex and dom/grid (automatic changes). r=Standard8,smaug 2019-06-03 10:42:12 +00:00
gamepad Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar 2019-06-01 02:29:26 +00:00
geolocation Bug 1547218 - Part 2: Stop special casing pointer types in ParamTraits specialization, r=froydnj 2019-05-21 17:04:39 +00:00
grid Bug 1532937 - Enable ESLint for dom/flex and dom/grid (automatic changes). r=Standard8,smaug 2019-06-03 10:42:12 +00:00
html Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya 2019-06-03 09:54:43 +00:00
imptests
indexedDB Bug 1555876 - Part 2: Use storage principal in IDBFactory::CreateForMainThreadJS(); r=baku 2019-05-31 19:31:04 +00:00
interfaces Merge mozilla-central to autoland. 2019-06-03 19:24:20 +03:00
ipc Bug 1545499 - Remove dead code for threading accelerator state. r=NeilDeakin 2019-06-03 15:29:06 +00:00
jsurl Bug 1478037. Allow bookmarklets to run even on pages with a CSP. r=ckerschb 2019-05-31 19:21:31 +00:00
l10n Bug 1555340 - Check for pending mutations when Document creates PresShell. r=smaug 2019-06-03 10:00:47 +00:00
locales Bug 1428913 - Deny full-screen on right or middle mouse button. r=smaug 2019-05-22 19:16:31 +00:00
localstorage Backed out changeset 01dd2842bbaa (bug 1552428) for ES Lint failure. CLOSED TREE 2019-05-31 18:07:15 +03:00
manifest
mathml Bug 1556095 - Make BindContext carry a bit more information. r=bzbarsky 2019-06-01 14:40:33 +00:00
media Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya 2019-06-03 09:54:43 +00:00
messagechannel Bug 1552751 - MessagePort should not work when created from a disconnected window, r=smaug 2019-05-23 13:44:17 +00:00
midi Bug 1121623 part 8. Remove MIDIPort::WrapObject. r=baku 2019-05-23 05:36:56 +00:00
network Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-05-25 17:46:15 +00:00
notification Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp 2019-06-03 19:42:28 +00:00
offline
payments
performance Bug 1121623 part 5. Remove PerformanceEntry::WrapObject. r=peterv 2019-05-24 07:23:47 +00:00
permission
plugins Merge mozilla-inbound to mozilla-central a=merge 2019-06-02 12:43:23 +03:00
power
presentation
prio Bug 1552315 - Hardcode the new prio keys to avoid misconfiguration. r=rhelmer 2019-05-23 18:13:53 +00:00
promise
prototype
push Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana 2019-05-31 17:29:53 +00:00
quota Bug 944918 - Allow thumbs.db in the storage directory; r=asuth 2019-06-03 16:22:43 +00:00
reporting Bug 1121623 part 6. Remove ReportBody::WrapObject. r=baku 2019-05-23 05:36:43 +00:00
res
script Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar 2019-06-01 02:29:26 +00:00
security Bug 1496418: Update Content Policy checks and allow CSP checks for system principal triggered loads. r=mccr8,baku 2019-06-03 06:04:25 +00:00
serviceworkers Bug 1550059 - Clear ServiceWorker(Registration)Infos on shutdown. r=asuth 2019-05-28 21:14:44 +00:00
simpledb
smil Bug 1552345 - Should not assume en is always an accepted language r=birtles 2019-05-27 00:17:13 +00:00
storage Bug 1555564 - Part 3: Make sure local storage manager caches the partitioned origins separately from each other; r=baku 2019-05-30 12:09:42 +00:00
svg Bug 1556095 - Make BindContext carry a bit more information. r=bzbarsky 2019-06-01 14:40:33 +00:00
system Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar 2019-06-01 02:29:26 +00:00
tests Bug 1553852 - Mark eCompositionChange as composed event; r=smaug 2019-06-03 09:18:47 +00:00
u2f Bug 1554223. Add a version of JS::NewFunctionFromSpec that does not require passing an id. r=jandem 2019-05-27 13:26:04 +00:00
url Bug 1536744 - Rename NS_NewURIOnAnyThread to NS_NewURI. r=baku 2019-05-28 14:17:04 +00:00
vr Bug 1550422 - P12. Convert Live gfxPrefs into StaticPrefs. r=jrmuizel 2019-05-26 14:29:42 +00:00
webauthn Bug 1121623 part 7. Remove AuthenticatorResponse::WrapObject. r=peterv 2019-05-24 07:23:54 +00:00
webbrowserpersist
webgpu
webidl Bug 1415270 - Part 1: Move nsHTMLDocument editing APIs to Document; r=farre,masayuki 2019-05-31 01:37:26 +00:00
websocket Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-05-25 17:46:15 +00:00
workers Bug 1496418: Update Content Policy checks and allow CSP checks for system principal triggered loads. r=mccr8,baku 2019-06-03 06:04:25 +00:00
worklet
xbl Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky 2019-05-31 23:31:52 +02:00
xhr Bug 1554516 - Bring the implementation of XMLHttpRequest.requestType setter on the worker thread up to the spec; r=baku 2019-05-27 11:12:04 +00:00
xml Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky 2019-05-31 23:31:52 +02:00
xslt Bug 1549560 - Move HTMLDocument.open/close/write/writeln to Document; r=farre 2019-05-27 23:03:03 +00:00
xul Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer 2019-06-03 12:37:12 +00:00
jar.mn
moz.build