Граф коммитов

532 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari fcbe4c45aa Bug 1573238 - Provide a minimal BrowserUsageTelemetry.jsm module in GeckoView that implements nsIBrowserUsage; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D45428

--HG--
extra : moz-landing-system : lando
2019-09-10 20:52:47 +00:00
Razvan Maries 87792dbd62 Backed out changeset 746c872d6242 (bug 1573238) for ES Lint failure. CLOSED TREE 2019-09-10 23:45:24 +03:00
Ehsan Akhgari 0385a52dd3 Bug 1573238 - Provide a minimal BrowserUsageTelemetry.jsm module in GeckoView that implements nsIBrowserUsage; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D45428

--HG--
extra : moz-landing-system : lando
2019-09-10 19:28:24 +00:00
Elliot Stirling 73adec6cbf Bug 1567549 - Added overloads to GeckoSession.loadUri() that accept additional HTTP request headers r=geckoview-reviewers,snorp,mayhemer
Adds overloads to GeckoSession.loadUri() that accept additional HTTP request headers

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

--HG--
extra : moz-landing-system : lando
2019-09-09 15:59:13 +00:00
Dylan Roeh 9a70aa2560 Bug 1557009 - Add ContentBlockingController to GeckoSession to allow managing exceptions list for content blocking. r=snorp,geckoview-reviewers,Ehsan,agi
Differential Revision: https://phabricator.services.mozilla.com/D43758

--HG--
extra : moz-landing-system : lando
2019-09-06 17:21:16 +00:00
arthur.iakab a85c15b134 Backed out changeset dce44ccda93f (bug 1557009) for causing android lints failure on ContentBlockingController.java CLOSED TREE 2019-09-06 18:53:35 +03:00
Dylan Roeh 5ee7c5e622 Bug 1557009 - Add ContentBlockingController to GeckoSession to allow managing exceptions list for content blocking. r=snorp,geckoview-reviewers,Ehsan,agi
Differential Revision: https://phabricator.services.mozilla.com/D43758

--HG--
extra : moz-landing-system : lando
2019-09-06 15:14:36 +00:00
James Willcox 17531c0400 Bug 1343678 - Add WebPush support to GeckoView r=jcj,lina,agi,geckoview-reviewers,droeh,mt
Differential Revision: https://phabricator.services.mozilla.com/D41290

--HG--
extra : moz-landing-system : lando
2019-09-04 21:25:44 +00:00
Noemi Erli 478b1751c7 Backed out 5 changesets (bug 1343678) for causing multiple web-platform failures CLOSED TREE
Backed out changeset 4b77646bc788 (bug 1343678)
Backed out changeset 7396789341b1 (bug 1343678)
Backed out changeset 85526faefe6d (bug 1343678)
Backed out changeset 07b757a21222 (bug 1343678)
Backed out changeset 3551cc55620d (bug 1343678)
2019-08-30 00:36:40 +03:00
James Willcox fe4b02a3cc Bug 1343678 - Add WebPush support to GeckoView r=jcj,lina,agi,geckoview-reviewers,droeh,mt
Differential Revision: https://phabricator.services.mozilla.com/D41290

--HG--
extra : moz-landing-system : lando
2019-08-29 18:59:31 +00:00
Elliot Stirling 650412e66c Bug 1521094 - Basic API for handling nsIHangReport in GeckoView r=geckoview-reviewers,snorp
Hooks up slow script reporting to the ContentDelegate. Allowing slow script prompts to be implemented.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 15:51:55 +00:00
Dorel Luca 547786f1cd Backed out 3 changesets (bug 1343678) for WPT failures on Android. CLOSED TREE
Backed out changeset 619e7838ebfd (bug 1343678)
Backed out changeset 5010684cdca4 (bug 1343678)
Backed out changeset b01343e4c2eb (bug 1343678)
2019-08-28 23:09:08 +03:00
James Willcox 746abdeae8 Bug 1343678 - Add WebPush support to GeckoView r=jcj,lina,agi,geckoview-reviewers,droeh,mt
Differential Revision: https://phabricator.services.mozilla.com/D41290

--HG--
extra : moz-landing-system : lando
2019-08-28 14:21:47 +00:00
Noemi Erli 15323a790b Backed out 3 changesets (bug 1343678) for breaking Android web platform tests CLOSED TREE
Backed out changeset c22a725950f0 (bug 1343678)
Backed out changeset 0bef62794abb (bug 1343678)
Backed out changeset 37c92bba3e1c (bug 1343678)
2019-08-24 01:13:36 +03:00
James Willcox fa77c48a55 Bug 1343678 - Add WebPush support to GeckoView r=jcj,lina,agi,geckoview-reviewers,droeh,mt
Differential Revision: https://phabricator.services.mozilla.com/D41290

--HG--
extra : moz-landing-system : lando
2019-08-23 16:29:38 +00:00
Thomas Nguyen bbd6f51a56 Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955

--HG--
extra : moz-landing-system : lando
2019-08-21 13:28:23 +00:00
chrmod 3aafa3960e Bug 1562844 - GeckoView webextensions tabs and webnavigation listeners support r=robwu,rpl,snorp
This changes provide basic support for webextenion tabs and webNavigation listeners by implementing missing objects on which Fennec implementation was relying.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 18:59:55 +00:00
Cosmin Sabou 4569ff802f Backed out changeset 2a9a7371947a (bug 1562844) for Android mochitest failures on test_ext_tabs_onUpdated. CLOSED TREE 2019-08-12 19:18:01 +03:00
chrmod 25488b089e Bug 1562844 - GeckoView webextensions tabs and webnavigation listeners support r=robwu,rpl,snorp
This changes provide basic support for webextenion tabs and webNavigation listeners by implementing missing objects on which Fennec implementation was relying.

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

--HG--
extra : moz-landing-system : lando
2019-08-12 12:51:52 +00:00
Dylan Roeh 8ac0d59281 Bug 1567268 - [1.0] Report all ETP-related blocking and non-blocking. r=geckoview-reviewers,snorp,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D40694

--HG--
rename : mobile/android/modules/geckoview/GeckoViewContentBlocking.jsm => mobile/android/chrome/geckoview/GeckoViewContentBlockingChild.js
extra : moz-landing-system : lando
2019-08-09 14:17:35 +00:00
Julian Descottes 3df7a88f3b Bug 1572390 - Split main.js in debugger-server and debugger-server-connection r=yulia,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D41009

--HG--
rename : devtools/server/main.js => devtools/server/debugger-server-connection.js
rename : devtools/server/main.js => devtools/server/debugger-server.js
extra : moz-landing-system : lando
2019-08-08 12:44:13 +00:00
Randall E. Barker 5911905e7c Bug 1571088 - Add LOAD_FLAGS_REPLACE_HISTORY to GeckoSession LoadFlags r=geckoview-reviewers,snorp,droeh
Bug 1571088 - Add LOAD_FLAGS_REPLACE_HISTORY to GeckoSession LoadFlags

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

--HG--
extra : moz-landing-system : lando
2019-08-07 22:58:48 +00:00
Kris Maglione 22592538f5 Bug 1561015: Part 1 - Use BrowsingContext in window provider APIs. r=bzbarsky,mossop
This is the first step in making it possible to return remote WindowProxy
objects from window.open() and related APIs.

This patch also incidentally fixes a bug where getContentWindowOrOpenURI
returned the top-level browser window rather than the new content window when
passed OPEN_NEWWINDOW for the `aWhere` parameter. This was not the expected
behavior, and was a potentially major footgun for any new users who expected
to always get the content window for the URL they were loading, rather than
sometimes getting a chrome browser window instead.

For now, that case just returns null, which is only a minor footgun, rather
than the major one we had before.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 20:48:33 +00:00
James Willcox 6c9d00461e Bug 1561913 - Correctly propagate referrer policy in GeckoView nsIBrowserDOMWindow impl r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36617

--HG--
extra : moz-landing-system : lando
2019-07-29 15:34:45 +00:00
James Willcox 4274c61812 Bug 1561079 - Add a `GeckoSession.loadUri()` overload that takes a referring `GeckoSession` r=geckoview-reviewers,ckerschb,esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D36526

--HG--
extra : moz-landing-system : lando
2019-07-29 15:34:40 +00:00
Thomas Nguyen 180aa6b0a1 Bug 1566833 - Update to use ReferrerInfo in nsIWebBrowserChrome3 r=Gijs,snorp
Differential Revision: https://phabricator.services.mozilla.com/D38381

--HG--
extra : moz-landing-system : lando
2019-07-29 10:13:45 +00:00
chrmod 271cd169eb Bug 1565782 - Implement browser.tabs.remove for GeckoView webextensions APIs r=agi,robwu,rpl,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D38216

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs/background.js => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-create/background.js
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs/manifest.json => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-create/manifest.json
extra : moz-landing-system : lando
2019-07-26 20:26:47 +00:00
Coroiu Cristina 075c52994f Backed out 4 changesets (bug 1561079, bug 1561913) for mochitest failures at dom/base/test/test_bug375314.html on a CLOSED TREE
Backed out changeset 0d1eaf86253f (bug 1561913)
Backed out changeset 1d1be67a5950 (bug 1561079)
Backed out changeset 528a46ffe2af (bug 1561079)
Backed out changeset f562e67e38cf (bug 1561079)
2019-07-24 20:56:30 +03:00
James Willcox ffd5747f58 Bug 1561913 - Correctly propagate referrer policy in GeckoView nsIBrowserDOMWindow impl r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36617

--HG--
extra : moz-landing-system : lando
2019-07-24 16:34:00 +00:00
James Willcox 3d039180df Bug 1561079 - Add a `GeckoSession.loadUri()` overload that takes a referring `GeckoSession` r=geckoview-reviewers,ckerschb,esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D36526

--HG--
extra : moz-landing-system : lando
2019-07-24 16:33:52 +00:00
Bogdan Tara e82c5fe738 Backed out 4 changesets (bug 1561079, bug 1561913) for apilint and checkstyle failures CLOSED TREE
Backed out changeset 50244d8132f9 (bug 1561913)
Backed out changeset 9abb44cca93b (bug 1561079)
Backed out changeset e6e23c902808 (bug 1561079)
Backed out changeset e48cf42b707f (bug 1561079)
2019-07-24 19:23:44 +03:00
James Willcox 83bfba712a Bug 1561913 - Correctly propagate referrer policy in GeckoView nsIBrowserDOMWindow impl r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36617

--HG--
extra : moz-landing-system : lando
2019-07-24 15:48:02 +00:00
James Willcox b06b598252 Bug 1561079 - Add a `GeckoSession.loadUri()` overload that takes a referring `GeckoSession` r=geckoview-reviewers,ckerschb,esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D36526

--HG--
extra : moz-landing-system : lando
2019-07-24 15:48:00 +00:00
Bogdan Tara 6d06c40c7c Backed out 2 changesets (bug 1561079, bug 1561913) for apilint and checkstyle failures CLOSED TREE
Backed out changeset c21bf3dfa6e5 (bug 1561913)
Backed out changeset 77ef4f2e0a8d (bug 1561079)
2019-07-24 18:34:06 +03:00
James Willcox c6482d6bcf Bug 1561913 - Correctly propagate referrer policy in GeckoView nsIBrowserDOMWindow impl r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36617

--HG--
extra : moz-landing-system : lando
2019-07-24 14:52:42 +00:00
James Willcox c0a84486f6 Bug 1561079 - Add a `GeckoSession.loadUri()` overload that takes a referring `GeckoSession` r=geckoview-reviewers,ckerschb,esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D36526

--HG--
extra : moz-landing-system : lando
2019-07-24 15:03:36 +00:00
Eugen Sawin 54c69d2380 Bug 1501108 - [5.1] Ensure that the context ID string is safe for Gecko processing. r=Ehsan,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D38188

--HG--
extra : moz-landing-system : lando
2019-07-21 17:36:41 +00:00
Eugen Sawin 10b4aa39cc Bug 1501108 - [3.6] Extend StorageController API to delete session context data. r=baku,snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D23732

--HG--
extra : moz-landing-system : lando
2019-07-21 17:20:19 +00:00
Eugen Sawin 532f60a55d Bug 1501108 - [1.7] Add GeckoView Session Context ID support. r=snorp,baku,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D19182

--HG--
extra : moz-landing-system : lando
2019-07-21 17:18:37 +00:00
Alvina Waseem bf830a7844 Bug 1557096 - Add ContentDelegate.onKill() to differentiate between content process crashes and kills. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D35874

--HG--
extra : moz-landing-system : lando
2019-07-18 15:12:28 +00:00
Gurzau Raul 9e92bbfdc8 Backed out 2 changesets (bug 1557096, bug 1565410) for multiple regressions linked to Bug 1557096. a=backout CLOSED TREE
Backed out changeset d35d90d0322b (bug 1565410)
Backed out changeset 4629e855ea33 (bug 1557096)

--HG--
extra : amend_source : a32a416570e06b3905d482ebf313a0da21e53cb6
2019-07-17 00:07:39 +03:00
Alvina Waseem 485de70925 Bug 1557096 - Add ContentDelegate.onKill() to differentiate between content process crashes and kills. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D35874

--HG--
extra : moz-landing-system : lando
2019-07-11 22:03:43 +00:00
Bogdan Tara 556047a14b Backed out changeset 81f121f3a7cb (bug 1557096) for ES lint failure on GeckoViewContent.jsm CLOSED TREE 2019-07-12 00:40:18 +03:00
Alvina Waseem 133133e12f Bug 1557096 - Add ContentDelegate.onKill() to differentiate between content process crashes and kills. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D35874

--HG--
extra : moz-landing-system : lando
2019-07-11 18:34:55 +00:00
chrmod 8e1240dc4b Bug 1539144 - GeckoView extensions support chrome.tabs.create r=snorp,agi,geckoview-reviewers,robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D32796

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/messaging/background.js => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs/background.js
extra : moz-landing-system : lando
2019-07-11 11:35:25 +00:00
Brindusan Cristian 8594594498 Backed out changeset aebbb469f1d5 (bug 1539144) for ESlint failure at background.js:2:1 and checkstyle bustage. CLOSED TREE 2019-07-11 13:44:29 +03:00
chrmod eb49662142 Bug 1539144 - GeckoView extensions support chrome.tabs.create r=snorp,agi,geckoview-reviewers,robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D32796

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/messaging/background.js => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs/background.js
extra : moz-landing-system : lando
2019-07-11 10:18:02 +00:00
Randall E. Barker 0f6b776ba1 Bug 1556540 - Fix GeckoSession.loadData() so that it can load data URLs r=geckoview-reviewers,agi,esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D37343

--HG--
extra : moz-landing-system : lando
2019-07-09 17:27:05 +00:00
Agi Sferro 68d3e0d0c1 Bug 1553515 - Always send navigation events for about:blank. r=snorp
Some background information on this change:

DocShell loads about:blank when first starting up. This initial load can be
avoided by setting `nodefaultsrc` on the browser element, but this will still
cause some load events related to `about:blank` to fire anyway, as they are
specified in the DOM spec (see e.g. bz's Comment #2 Bug 1447406). In particular
`onSecurityChange` and `onLocationChange` are still fired, `onPageStart` and
onPageStop` are not.

These messages are unreliable and sometimes do not fire, to unrestand why it's
helpful to look at a timeline of the events when starting up a GeckoSession.

page           about:blank ---------------------------------------------------------

nsDocShell     --- startup --- onPageStart --- onLocationChange --- onPageStop -----

busyState      idle ---------- busy ------------------------------------------ idle-
                ^           ^               ^                    ^               ^
geckoview.js   (0)         (1)             (2)                  (3)             (4)

geckoview.js loads in parallel with nsDocShell startup process (and loading of
about:blank). This means that consumers of GeckoView might start receiving
navigation events at any of the points marked with (0) - (4). E.g. if geckoview
starts up at (4) a consumer waiting for onPageStop for `about:blank` will
actually wait forever (this is what happens before this change for our tests).

As it can be seen there's not really a way to detect in which of the (0) - (4)
state DocShell is when starting up geckoview.js. Checking for the busy state is
not enough as an `idle` busy state might mean that we're in (0) or (4).
Furthermore a consumer of geckoview has no way to know which onPageStop
messages to wait for after an initial loadUri as e.g. the following is what
would happen if geckoview.js happens to startup at (3):

- loadUri(hello.html)
- onPageStop (for about:blank)
- onLoadRequest (for hello.html)

which confuses any code that just waits for onPageStop.

Desktop deals with this in `TabProgressListener.onStateChange` where the
initial `about:blank` navigation is ignored and fake events are triggered at a
convenient time.

To patch implements a very similar behavior for geckoview, we ignore the
initial `about:blank` `onLoadRequest` call, set `nodefaultsrc` so `onPageStart`
and `onPageStop` events don't fire and fire the above calls when the
`GeckoViewProgress` module has finished loading.

This makes `about:blank` events deterministic with the exception of reloading
an empty `GeckoSession`, which will often not fire any extra events. To account
for that we load a dummy html page before the tests that used to rely on this
behavior (which would actually fail occasionally due to the startup race
condition explained above).

This makes the tests pass reliably on x86_64 (20/20 runs passed in try).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:32 +00:00
Jonathan Kingston 31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Victor Porof 9e9be26a9b Bug 1561435 - Fix linting errors for mobile/, r=standard8
# ignore-this-changeset

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

--HG--
extra : source : 2072cc33ae8e2b64a761ece5ab32ce711d547c97
extra : intermediate-source : afb89fcad8e41f4f03ea5d16a7528002820b8305
2019-06-20 11:33:11 -07:00
Victor Porof e999ae1989 Bug 1561435 - Format mobile/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : eafb1052afc7712c969e57552da5affc63093e9e
2019-07-05 10:53:35 +02:00
Victor Porof b5a4cb3848 Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34535

--HG--
extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8
extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
2019-06-28 17:14:01 +02:00
Eugen Sawin 81dd9a3a64 Bug 1559084 - [1.0] Fix wrong nsIClearDataService constant name for clearing push notifications. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D34859

--HG--
extra : moz-landing-system : lando
2019-06-13 11:17:20 +00:00
Boris Zbarsky 9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Agi Sferro a641bc8da0 Bug 1554260 - Send WebExtension Page messages to GeckoSession. r=snorp
WebExtension pages introduce a case that was previously not possible: a script
with full WebExtension privileges that runs on a page with a GeckoSession
associated to it.

This breaks the assumption that all messages from a privileged context don't
have a GeckoSession associated to it. We fix this by checking if we can find an
eventDispatcher for the given window.

This also fixes the test which had the same wrong assumption.

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

--HG--
extra : moz-landing-system : lando
2019-06-10 20:09:25 +00:00
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
Sean Feng 9be59499b0 Bug 1549519 - Add page reload telemetry probe for geckoview r=bdekoz,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D32143

--HG--
extra : moz-landing-system : lando
2019-05-30 14:37:03 +00:00
Emily Toop da9b93a7f1 Bug 1554778 - Fetch dispatcher at the beginning of `handleRecordingDeviceEvents`. r=geckoview-reviewers,snorp
This is because in some circumstances, when navigating away from a page, the dispatcher is no longer present when trying to send the `GeckoView:MediaRecordingStatusChanged` causing the message not to be sent. Fetching the dispatcher earlier ensures that it is present at the point of message sending.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 14:57:03 +00:00
chrmod aa9e661a42 Bug 1551377 - GeckoView unique tab id r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D32824

--HG--
extra : moz-landing-system : lando
2019-05-28 16:54:40 +00:00
Eugen Sawin 52bea1fda2 Bug 1553454 - [1.1] Only enable handling of CLEAR_HISTORY when Places is supported. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D32473

--HG--
extra : moz-landing-system : lando
2019-05-27 11:09:50 +00:00
Emily Toop f00e577132 Bug 1549633 - Enable listening for `recording-device-events`. r=esawin,geckoview-reviewers,snorp
This is to allow us to detect the enabling and disabling of recording so that we can notify the embedding application of the change in status.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 07:45:41 +00:00
Eugen Sawin c0069258a0 Bug 1489669 - [1.4] Add Storage Controller API. r=baku,snorp
Differential Revision: https://phabricator.services.mozilla.com/D32153

--HG--
extra : moz-landing-system : lando
2019-05-22 20:21:09 +00:00
Agi Sferro 92c0a96191 Bug 1553371 - Load moz-extension pages in extension principal. r=snorp
WebExtension can always open their respective WebExtension pages even when the
WebExtension page is not content accessible.

However, this is not true for `tabs.update`, which couldn't link to
WebExtension pages at all.

Similarly, a user should be able to open a WebExtension page directly by typing
the URL.

To fix the above problems we pass the correct `triggeringPrincipal` when
loading such URIs. This change also makes URI typed by the user not use the
`systemPrincipal` anymore but a more restrictive codebase principal local to
the page that's being typed to avoid unintended side-effects. This also makes
the triggering URI always the page for these privileged pages, so we need to
adjust some tests to account for that by loading unprivileged `http` pages
instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 19:20:54 +00:00
Agi Sferro 1324e8b036 Bug 1550877 - Use correct E10SUtils in GeckoViewNavigation. r=snorp
This fixes a crash in `browser.tabs.update` when used with WebExtension pages.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 13:43:44 +00:00
Agi Sferro b6a082b167 Bug 1552328 - Add missing unregisterListener in GeckoViewProgress. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D31538

--HG--
extra : moz-landing-system : lando
2019-05-17 13:43:44 +00:00
Narcis Beleuzu ac51017892 Backed out 2 changesets (bug 1550877, bug 1552328) for causing perma geckoview-junit failures on contentPortDisconnectFromApp
Backed out changeset 877ae9359a27 (bug 1550877)
Backed out changeset aee7bbc03bff (bug 1552328)
2019-05-17 10:50:50 +03:00
Agi Sferro bdf3d1a97c Bug 1550877 - Use correct E10SUtils in GeckoViewNavigation. r=snorp
This fixes a crash in `browser.tabs.update` when used with WebExtension pages.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 04:10:53 +00:00
Agi Sferro 432633e493 Bug 1552328 - Add missing unregisterListener in GeckoViewProgress. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D31538

--HG--
extra : moz-landing-system : lando
2019-05-17 04:11:29 +00:00
Makoto Kato fcfbec0479 Bug 1538458 - Part 1. LoginManagerContent requires <input> or <input type="password"> element to recognize login form r=geckoview-reviewers,snorp
Actually, sample url has `<fieldset>` element, so LoginManagerContent cannot detects username field.

`LoginManagerContent.getUserNameAndPasswordFields` detects username field and password field when passing `<input>` element.  So we should pass password field if possible.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 20:18:12 +00:00
Eugen Sawin d1db7a80be Bug 1545255 - [1.0] Use ReferrerInfo when loading URIs in GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D29683

--HG--
extra : moz-landing-system : lando
2019-05-03 22:08:29 +00:00
Sebastian Hengst 3dd01e8232 Backed out 4 changesets (bug 1501108) for causing very frequent leaks in macOS debug wpt tests. a=backout
Backed out changeset 23a77e063257 (bug 1501108)
Backed out changeset 335cec0aacd8 (bug 1501108)
Backed out changeset 99ba286125d1 (bug 1501108)
Backed out changeset 8f2d511ad49f (bug 1501108)

--HG--
extra : rebase_source : 01925c24ac47b37135fcfebab8ae7e9876d5b90e
2019-04-29 17:39:42 +02:00
Ryan Hunt e9e7d608be Bug 1534395 - Rename nsITabChild to nsIBrowserChild. r=nika,mconley
Similarly to nsITabParent, TabChild is exposed to frontend code via nsITabChild. It's not clear what the future of this interface will be, but for now we can just rename it to nsIBrowserChild.

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

--HG--
rename : dom/interfaces/base/nsITabChild.idl => dom/interfaces/base/nsIBrowserChild.idl
extra : rebase_source : a6c42a661e35b19e46c60f6f6a6f3dab64c0a1bc
extra : histedit_source : 1eb475bd840bf37a3f86294685c9b3c250684e79
2019-04-09 18:15:02 -05:00
Ryan Hunt 3675f2449b Bug 1534395 - Rename nsITabParent to nsIRemoteTab. r=nika,mconley
nsITabParent is exposed to frontend code and is generally used as a representation of a remote tab. We could just rename the interface to nsIBrowserParent and worry about it later, but I think it's better to rename the interface to nsIRemoteTab so that we can later work on splitting the interface away from the PBrowser protocol.

Note: Some frontend code refers to a TabParentId. This commit renames this to RemoteTabId. We need to figure out the purpose of TabId with fission.

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

--HG--
rename : dom/interfaces/base/nsITabParent.idl => dom/interfaces/base/nsIRemoteTab.idl
extra : rebase_source : 9d8a1790a7bb10195ad063644d1a93d63b2afb72
2019-04-09 15:59:37 -05:00
Christoph Kerschbaumer 42672fde72 Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 14:37:40 +00:00
Dorel Luca facaf244e4 Backed out changeset 7d3f2f4c53be (bug 1544863) for eslint failure 2019-04-23 17:16:13 +03:00
Christoph Kerschbaumer 73a324ee2d Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 13:02:40 +00:00
Dylan Roeh 542b50c669 Bug 1538294 - Add internal support for flushing session state to GV and flush state in response to a GeckoSession being set inactive. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D27081

--HG--
extra : moz-landing-system : lando
2019-04-17 15:26:53 +00:00
Rob Wu 1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Agi Sferro 83bc10f815 Bug 1518843 - GeckoView WebExtension Messaging. r=snorp,esawin,robwu,kmag
This change allows GeckoView embedders to respond to
`runtime.sendNativeMessage` and `runtime.connectNative` sent from
WebExtensions.

These APIs are available behind the new privileged-only permission
`geckoViewAddons` and are used by GeckoView apps to communicate between content
and the app.

Depends On D22621

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:28:10 +00:00
Agi Sferro f9fe9e667f Bug 1518843 - Add GeckoView API to unregister WebExtensions. r=snorp,mbrubeck
Depends On D23093

---
 .../components/geckoview/GeckoViewStartup.js  |  1 +
 mobile/android/geckoview/api.txt              |  1 +
 .../geckoview/test/WebExtensionTest.kt        | 17 +++++++--
 .../org/mozilla/geckoview/GeckoRuntime.java   | 31 +++++++++++++++-
 .../mozilla/geckoview/doc-files/CHANGELOG.md  |  6 ++-
 .../geckoview/GeckoViewWebExtension.jsm       | 37 ++++++++++++++++++-
 6 files changed, 85 insertions(+), 8 deletions(-)

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:27:40 +00:00
Eugen Sawin 2fd75d1a4e Bug 1501108 - [1.3] Add GeckoView Session Context ID support. r=snorp,baku,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D19182

--HG--
extra : moz-landing-system : lando
2019-04-16 20:24:29 +00:00
Jan Henning c8789cfdbb Bug 1410749 - Start tab ID numbering from #1. r=geckoview-reviewers,esawin
It's easier this way than fixing who knows how many Webextension APIs that have
learned from Desktop that there is no tab #0 and that therefore refuse to work
in our first tab.

We'll also make a similar change to GeckoView's stub implementation of the tab
API because that affects Custom Tabs and PWAs in Fennec for now.

The tests for tab ID 0 are therefore no longer required - they were added in a
previous attempt to fix the Webextension APIs themselves, which was ultimately
never carried through to completion, though.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 21:20:47 +00:00
Cosmin Sabou 18065e80c7 Backed out 4 changesets (bug 1501108) for browser chrome failures on browser_principalSerialization_version1.js. CLOSED TREE
Backed out changeset da28ce3af312 (bug 1501108)
Backed out changeset 1936dde5f34c (bug 1501108)
Backed out changeset de36c9fb8c65 (bug 1501108)
Backed out changeset cad2b29b79d2 (bug 1501108)
2019-04-16 01:10:26 +03:00
Cosmin Sabou 268db1d41b Bug 1501108 - Removed extra spaces in order to fix eslint failure. 2019-04-16 00:28:56 +03:00
Eugen Sawin 2437dae249 Bug 1501108 - [1.2] Add GeckoView Session Context ID support. r=snorp,baku,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D19182

--HG--
extra : moz-landing-system : lando
2019-04-15 20:58:30 +00:00
Csoregi Natalia dbf1e77fba Backed out changeset f7cce6a270c2 (bug 1410749) for Android 4.3 failures on test_ext_tabs_sendMessage.html. CLOSED TREE 2019-04-13 03:24:55 +03:00
Dylan Roeh c1dd451d30 Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-12 22:54:37 +00:00
Jan Henning 96ef73cc3d Bug 1410749 - Start tab ID numbering from #1. r=geckoview-reviewers,esawin
It's easier this way than fixing who knows how many Webextension APIs that have
learned from Desktop that there is no tab #0 and that therefore refuse to work
in our first tab.

We'll also make a similar change to GeckoView's stub implementation of the tab
API because that affects Custom Tabs and PWAs in Fennec for now.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 20:47:32 +00:00
Oana Pop Rus 7977731cfd Backed out 2 changesets (bug 1509110) for geckoview failures on HistoryDelegateTest on a CLOSED TREE
Backed out changeset 1bc29703a90f (bug 1509110)
Backed out changeset 9ed5bb5e0cfc (bug 1509110)
2019-04-11 21:12:26 +03:00
Dylan Roeh a7923fe371 Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-11 16:46:49 +00:00
Andreea Pavel 2a5a89a5ec Backed out 2 changesets (bug 1509110) for failing geckoview on a CLOSED TREE
Backed out changeset 81253689d39c (bug 1509110)
Backed out changeset f3338782b169 (bug 1509110)
2019-04-11 19:19:28 +03:00
Dylan Roeh 207106354e Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-11 12:51:12 +00:00
Agi Sferro 8d021a698c Bug 1539639 - [geckoview] Add eslint for indentation and fix existing. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D26025

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:24 +00:00
Emily Toop d75296da81 Bug 1532582 - Display autofill popup in correct location.
This autofill popover was being displayed in the incorrect place because the display rect we were providing to the `AutofillManager` was the rect for the `GeckoView` and not the rect for the HTML element that the autofill popover was relating to.

1. Add view dimensions to info passed to autofill in `GeckoViewAutoFill`.
2. Use those view dimensions to calculate the correct location on the screen using `pageToScreenMatrix` in `GeckoSession`.

The resulting locations were incorrect, as the values used by `pageToScreenMatrix` were out of date. The `GeckoSession` was only notified about updated metrics during first composite, which meant that when the metrics changed during zoom and scroll on soft keyboard presentation, `GeckoSession` was unaware of it.

3. Update `GeckoSession` with new screen metrics when they change and not only during first composite.

Despite this change ensuring that `GeckoSession` always had the correct values for the viewport size and location, the request to provide the autofill location was made before the zoom and scroll was complete, meaning that even then out of date values were used during the calculation. The intial solution was to fire an event once zoom was complete, but despite this event being fired after the new screen size had been calculcated in `AsyncCompositionManager`, `GeckoSession` did not receive the values until after the event had been processed (the calls were out by 0.024ms).

5. Call new method `onScreenMetricsUpdated` inside `SessionTextInput` after screen metrics have been updated. Call `AutofillManager#notifyViewEntered` from this function.

This was not my preferred solution to this, but timing issues meant I could not find/think of an alternative way of delaying the calculation of the autofill popover location until after `GeckoSession` had been updated.

This patch currently fixes things on GV apps. Occasionally, on Fennec, the autofill view is out of alignment slightly. This needs further work.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:25:42 +00:00
Dorel Luca a91d673cd5 Backed out changeset b6f5942c42bb (bug 1532582) for Eslint failure. CLOSED TREE 2019-03-29 16:37:21 +02:00
Emily Toop 65bf84e5c6 Bug 1532582 - Display autofill popup in correct location. r=geckoview-reviewers,snorp,kats
This autofill popover was being displayed in the incorrect place because the display rect we were providing to the `AutofillManager` was the rect for the `GeckoView` and not the rect for the HTML element that the autofill popover was relating to.

1. Add view dimensions to info passed to autofill in `GeckoViewAutoFill`.
2. Use those view dimensions to calculate the correct location on the screen using `pageToScreenMatrix` in `GeckoSession`.

The resulting locations were incorrect, as the values used by `pageToScreenMatrix` were out of date. The `GeckoSession` was only notified about updated metrics during first composite, which meant that when the metrics changed during zoom and scroll on soft keyboard presentation, `GeckoSession` was unaware of it.

3. Update `GeckoSession` with new screen metrics when they change and not only during first composite.

Despite this change ensuring that `GeckoSession` always had the correct values for the viewport size and location, the request to provide the autofill location was made before the zoom and scroll was complete, meaning that even then out of date values were used during the calculation. The intial solution was to fire an event once zoom was complete, but despite this event being fired after the new screen size had been calculcated in `AsyncCompositionManager`, `GeckoSession` did not receive the values until after the event had been processed (the calls were out by 0.024ms).

5. Call new method `onScreenMetricsUpdated` inside `SessionTextInput` after screen metrics have been updated. Call `AutofillManager#notifyViewEntered` from this function.

This was not my preferred solution to this, but timing issues meant I could not find/think of an alternative way of delaying the calculation of the autofill popover location until after `GeckoSession` had been updated.

This patch currently fixes things on GV apps. Occasionally, on Fennec, the autofill view is out of alignment slightly. This needs further work.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:49:26 +00:00
Nick Alexander 9890db9633 Bug 1533704 - Don't make GeckoView's remote debugging setting control Marionette. r=snorp
We really want GeckoView's single remote debugigng setting to
determine whether the engine can be remote controlled, but we're not
quite there yet.  The devtools use an abstract UNIX socket for this
purpose, but Marionette uses a TCP socket that defaults to port 2828,
and that means we see cross-App clashes for that port.

Functionally this means that enabling Marionette reverts to the "old
method": either pass the "--marionette" command line argument or set
the `MOZ_MARIONETTE=1` environment variable to enable.  Callers remain
responsible for ensuring that the Marionette port is available.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 20:28:14 +00:00
Agi Sferro 337193c3e5 Bug 1536929 - [geckoview] Use const when possible and enforce it. r=geckoview-reviewers,esawin
Generated with ./mach eslint mobile/android/modules/geckoview --fix

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

--HG--
extra : moz-landing-system : lando
2019-03-27 20:56:16 +00:00
Eugen Sawin 9e20531da6 Bug 1530789 - [2.0] Initialize the SafeBrowsing module only in the parent process. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D21422
2019-03-25 16:53:12 +01:00
shindli 3234d0805e Backed out 2 changesets (bug 1530789) for linting failures on Android
Backed out changeset 2038ef43f89a (bug 1530789)
Backed out changeset 3f03780957a4 (bug 1530789)
2019-03-23 12:36:33 +02:00
Eugen Sawin 2276021d2f Bug 1530789 - [2.0] Initialize the SafeBrowsing module only in the parent process. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D21422

--HG--
extra : moz-landing-system : lando
2019-03-22 20:46:04 +00:00
Dylan Roeh 57859e9bc1 Bug 1463878 - Update GeckoView API to reflect new session storage and remove old API and associated dead code. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D23697

--HG--
extra : moz-landing-system : lando
2019-03-22 00:51:13 +00:00
Coroiu Cristina 8460161d60 Backed out 2 changesets (bug 1463878) for ESlint and checkstyle failure on a CLOSED TREE
Backed out changeset 2cc833baea24 (bug 1463878)
Backed out changeset 11415a3e72f6 (bug 1463878)
2019-03-22 00:18:04 +02:00
Dylan Roeh 889b7b818e Bug 1463878 - Update GeckoView API to reflect new session storage and remove old API and associated dead code. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D23697

--HG--
extra : moz-landing-system : lando
2019-03-21 21:29:41 +00:00
Julian Descottes cdbf93e9a7 Bug 1528276 - Set DebuggerServer.keepAlive for RemoteDebugger and GeckoViewRemoteDebugger;r=ochameau
Depends on D20831

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

--HG--
extra : moz-landing-system : lando
2019-02-27 17:09:05 +00:00
Agi Sferro ee86fd5efc Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 17:00:18 +00:00
Andreea Pavel f49b3214e3 Backed out changeset 51467afba450 (bug 1518841) for failing eslint at GeckoViewWebExtension.jsm on a CLOSED TREE 2019-02-25 18:53:15 +02:00
Agi Sferro 9ccb6c983d Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:46 +00:00
Eugen Sawin 1fc5f0ebdc Bug 1526981 - [2.4] Simplify JSM module logger initialization and ensure compatibility with ES6. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D19580

--HG--
extra : moz-landing-system : lando
2019-02-20 16:11:57 +00:00
Jonathan Kingston cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Randall Barker ed2e78aef0 Bug 1508372 - Add scrollTo and scrollBy to PanZoomController r=geckoview-reviewers,snorp,esawin
The scrollTo() and scrollBy() functions in the PanZoomController may be
used to scroll the root document in GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 19:04:06 +00:00
Nick Alexander 4bef3af91a Bug 1524673 - Make Marionette part of remote debugging within GeckoView. r=whimboo,snorp
Functionally, we want Marionette to be enabled whenever remote
debugging enabled and disabled whenever remote debugging is enabled.

That's not particularly well supported by Gecko prefs, so we don't try
to handle all situations.  We force the Marionette pref whenever the
remote debugging pref changes; if consumers get themselves into a bad
state by fiddling the Marionette pref independently, that's fine:
GeckoView will take back control eventually.

There are a couple of wrinkles here.  The first is that GeckoView and
Marionette race to set themselves up in "profile-after-change".  We
ensure that both are configured before GeckoView notifies
"marionette-startup-requested".  The second is that the initial value
of the Marionette pref is taken from the environment variable
MOZ_MARIONETTE; therefore, we set that variable when starting the
Gecko thread.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:35:30 +00:00
Jan Henning 5ca29b004c Bug 1496684 - Dispatch commonly expected startup notifications when opening a GeckoView window. r=snorp
Once a webextension using a blocking WebRequest listener has started loading,
all network connections covered by the extension's manifest are held until the
extension is ready the process them.
One condition for the extension being ready apparently includes browser startup
having progressed far enough, as signified by "browser-delayed-startup-finished"
having been dispatched.
Therefore, we have to start sending that notification when opening a new Gecko-
View window, too, and copy Fennec's InitLater() system for that.

Unlike Fennec, we cannot tie registration of those InitLater() runnables to the
initial content load having progressed far enough because of
a) e10s, which makes that approach neither easily possible nor really sensible,
   as content will load in a different process in that case, and
b) because we're racing with extension startup here - if extensions are loaded
   quick enough to block even the initial page load, we'd be deadlocked: We
   cannot send the notification until the page finishes loading, but the page
   cannot load until we send the notification. Fennec isn't affected by the
   latter problem because "sessionstore-windows-restored", which Fennec will
   send in any case, serves as an alternative pathway for completing extension
   startup.

And unlike Desktop, we don't really have any chrome content to paint, so we
cannot tie delayed initialisation to a paint listener for that, either.

Therefore, we simply fire off a runnable at the *end* of geckoview.js's
startup() method, which should give more pressing initialisation tasks enough of
a headstart.

For completeness, we're also adding the "browser-idle-startup-tasks-finished"
notification and thereby solve bug 1465832 as well, allowing the ScriptPreloader
to detect which scripts are commonly loaded during GeckoView startup and to
start caching and pre-parsing them.

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

--HG--
rename : mobile/android/modules/DelayedInit.jsm => mobile/android/modules/geckoview/DelayedInit.jsm
extra : moz-landing-system : lando
2019-02-07 20:41:16 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Eugen Sawin dfe7344df0 Bug 1499214 - [1.6] Add Content Blocking API. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15140

--HG--
rename : mobile/android/modules/geckoview/GeckoViewTrackingProtection.jsm => mobile/android/modules/geckoview/GeckoViewContentBlocking.jsm
extra : moz-landing-system : lando
2019-01-30 14:24:29 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Ehsan Akhgari 4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Eugen Sawin 7fe599273b Bug 1518951 - [1.1] Remove redundant trackingMode field from SecurityInformation.
Differential Revision: https://phabricator.services.mozilla.com/D16365

--HG--
extra : moz-landing-system : lando
2019-01-11 23:50:45 +00:00
Makoto Kato e305b5ca33 Bug 1497682 - Part 2. Don't set inputType to all <input type=text>. r=droeh
Summary:
LastPass will fill password to all input elements which InputType is
TYPE_CALSS_TEXT and TYPE_TEXT_VARIATION_WEB_EDIT_TEXT and has no AutofillHint.
And it will fill username when InputType and AutofillHint is nothing in
<input type="text">.

Actually, current implementation of GeckoView sets InputType only for
<input type="text">, so LastPass fills password to all <input type="text">

So as workaround, we should set InputType and AutofillHint when input element
presumes username fields.

Depends on D12880

Reviewers: droeh

Reviewed By: droeh

Bug #: 1497682

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

--HG--
extra : rebase_source : b5ab3deadf0dd67bbdb1aa7e7656fe677c6670c4
2018-12-18 17:20:10 +09:00
Randall Barker 5d8ff39a09 Bug 1511281 - Update GeckoView user agent override to use docShell.customUserAgent r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13593

--HG--
extra : moz-landing-system : lando
2018-12-14 14:40:06 +00:00
Daisuke Akatsuka 4c9372bcb0 Bug 1497450: Get DOMTitleChanged event of Android from DevTools server. r=ochameau,jdescottes
Currently, when `about:debugging` is displaying, even if move to another URL on
Android, its update does not reflect to `about:debugging` page. Because the `DOMTitleChanged` event on message manager comes from only in case of remote browser. In this patch, get the event on even not remote browser, then notify to clients.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 02:16:25 +00:00
Ehsan Akhgari 0dcf936804 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Eugen Sawin 9183f65395 Bug 1509018 - [1.1] Add load flag to bypass the URI classifier. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D12541

--HG--
extra : moz-landing-system : lando
2018-11-22 17:11:27 +00:00
Masayuki Nakano 0acd37ec1d Bug 1504911 - part 4: Make all script for web content dispatch "input" event with proper event interface r=smaug
Currently, some "input" event dispatchers in our script dispatch "input" event
with UIEvent.  This is completely wrong.  For conforming to HTML spec, Event
is proper event.  Additionally, for conforming to Input Events, InputEvent
is proper event only on <textarea> or <input> element which has a single line
editor.

For making us to maintain easier, this patch adds new API, "isInputEventTarget"
to MozEditableElement which returns true when "input" event dispatcher should
use InputEvent for the input element.

Finally, this makes some dispatchers use setUserInput() instead of
setting value and dispatching event by themselves.  This also makes
us to maintain them easier.

Note that this does not touch "input" event dispatchers which dispatch events
only for chrome (such as URL bar, some pages in about: scheme) for making
this change safer as far as possible.

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

--HG--
extra : moz-landing-system : lando
2018-11-20 14:35:38 +00:00
Randall Barker f65f0ce0b9 Bug 1507369 - Add GeckoView API to set an arbitrary user agent string r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D12069

--HG--
extra : moz-landing-system : lando
2018-11-16 18:02:26 +00:00
Jim Chen 3b0544a8ad Bug 1507324 - 2. Don't start in remote mode when there is opener; r=geckoview-reviewers,snorp
Gecko doesn't support creating a remote browser from a non-remote
browser when there is an opener, so create a non-remote browser when
there is an opener, even in multiprocess mode.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 23:43:10 +00:00
Jim Chen 376d2464a2 Bug 1507324 - 1. Keep current remote type if possible; r=geckoview-reviewers,snorp
Some pages can be either remote or non-remote depending on the current
remote type, so we need to take that into account when updating the
remote type.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 23:39:21 +00:00
Eugen Sawin 07ea285dac Bug 1499418 - [1.3] Add GeckoView page load and startup performance telemetry probes. r=snorp,chutten,jchen 2018-11-13 17:39:26 +01:00
Imanol Fernandez 3bdc0135ba Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-09 11:59:28 +00:00
Matt Brubeck 3fdb63b8b7 Bug 1499067 - Stub implementation of BrowserApp.closeTab for GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11121

--HG--
extra : moz-landing-system : lando
2018-11-07 17:22:13 +00:00
Csoregi Natalia a5ca9eb6ff Backed out changeset a6b390c7b979 (bug 1498246) for failures on org.mozilla.geckoview.test.GeckoSessionTestRuleTest.includesAllCallbacks. CLOSED TREE 2018-11-09 02:47:36 +02:00
Imanol Fernandez a4065c4324 Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-08 22:11:36 +00:00
shindli 327a967b87 Backed out changeset 60659171e414 (bug 1498246) for geckoview bustages CLOSED TREE 2018-11-08 14:56:40 +02:00
Imanol Fernandez 39c972b3f6 Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-08 01:37:56 +00:00
Daisuke Akatsuka 56d22dec55 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

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

--HG--
extra : moz-landing-system : lando
2018-11-08 00:41:18 +00:00
Jim Chen 13aca0e600 Bug 1496220 - 2. Default to null triggering principal for GeckoView.loadUri; r=esawin
For improved security, default to a null triggering principal for
GeckoView.loadUri calls, except when loading certain privileged schemes
such as "resource" and "file".

Differential Revision: https://phabricator.services.mozilla.com/D7785
2018-11-07 16:17:17 -05:00
Mike Conley 2556e11420 Bug 1498233 - Stub out getBrowserForOuterWindowID for GeckoViewTab. r=jchen
GeckoViewTab stubs out gBrowser on the root window for WebExtension compatibility.
LoginManagerParent also looks for gBrowser on windows that are handling username
and password form fills, and expects it to implement getBrowserForOuterWindowID.

This patch makes the stub implement getBrowserForOuterWindowID, which just returns
the lone GeckoViewTab browser.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 04:35:00 +00:00
Dylan Roeh 4f0bb8bae4 Bug 1502950 - Fix error pages in custom tabs. r=snorp 2018-11-05 12:31:10 -06:00
Daniel Varga e86b1d05f8 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/chrome/geckoview/GeckoViewNavigationContent.js => mobile/android/chrome/geckoview/GeckoViewNavigationChild.js
2018-11-02 00:27:53 +02:00
James Willcox b7c617749d Bug 1496217 - Followup to fix raptor failures r=me 2018-11-01 15:09:30 -05:00
James Willcox 4e683c0261 Bug 1496217 - Support process switching in GeckoView r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D9589
2018-11-01 09:52:42 -05:00
Emily Toop 4871a0b182 Bug 1395217 - Rename Use "Child" instead of "Content" to denote GeckoView child process modules r=snorp
Renamed:

* `GeckoViewContent.js` -> `GeckoViewContentChild.js`
* `GeckoViewNavigationContent.js` -> `GeckViewNavigationChild.js`
* `GeckoViewProgressContent.js` -> `GeckoViewProgressChild.js`
* `GeckoViewPromptContent.js` -> `GeckoViewPromptChild.js`
* `GeckoViewScrollContent.js` -> `GeckoViewScrollChild.js`
* `GeckoViewSelectionActionContent.js` -> `GeckoViewSelectionActionChild.js`
* `GeckoViewSettingsContent.js` -> `GeckoViewSettingsChild.js`
* `GeckoViewContentModule.jsm` -> `GeckoViewChildModule.jsm`

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

--HG--
rename : mobile/android/chrome/geckoview/GeckoViewContent.js => mobile/android/chrome/geckoview/GeckoViewContentChild.js
rename : mobile/android/chrome/geckoview/GeckoViewNavigationContent.js => mobile/android/chrome/geckoview/GeckoViewNavigationChild.js
rename : mobile/android/chrome/geckoview/GeckoViewProgressContent.js => mobile/android/chrome/geckoview/GeckoViewProgressChild.js
rename : mobile/android/chrome/geckoview/GeckoViewPromptContent.js => mobile/android/chrome/geckoview/GeckoViewPromptChild.js
rename : mobile/android/chrome/geckoview/GeckoViewScrollContent.js => mobile/android/chrome/geckoview/GeckoViewScrollChild.js
rename : mobile/android/chrome/geckoview/GeckoViewSelectionActionContent.js => mobile/android/chrome/geckoview/GeckoViewSelectionActionChild.js
rename : mobile/android/chrome/geckoview/GeckoViewContentSettings.js => mobile/android/chrome/geckoview/GeckoViewSettingsChild.js
rename : mobile/android/modules/geckoview/GeckoViewContentModule.jsm => mobile/android/modules/geckoview/GeckoViewChildModule.jsm
extra : moz-landing-system : lando
2018-11-01 14:40:29 +00:00
Brindusan Cristian 3d5e6205ca Merge inbound to mozilla-central. a=merge 2018-10-31 23:41:40 +02:00
Dylan Roeh 326c6c435c Bug 1477070 - Add STATE_IS_INSECURE check to checkIdentity in GeckoViewProgress.jsm r=snorp 2018-10-29 12:11:32 -05:00
Randall Barker 08d5ac65fb Bug 1484391 - Update Mobile VR UA string in GeckoView r=agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D10306

--HG--
extra : moz-landing-system : lando
2018-10-31 15:36:16 +00:00
Narcis Beleuzu 2a625fa2aa Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-19 16:30:39 +03:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Eugen Sawin 6ed8cc4d6c Bug 1499895 - [1.3] Add triggering URI to onLoadRequest. r=snorp,jchen 2018-10-19 02:56:11 +02:00
Daniel Varga e4438031ba Backed out 5 changesets (bug 1496220) for chrome failure at toolkit/content/tests/chrome/test_findbar_events.xul. on a CLOSED TREE
Backed out changeset 2c1353f4a3f5 (bug 1496220)
Backed out changeset bc592bed0522 (bug 1496220)
Backed out changeset 7b5505d44965 (bug 1496220)
Backed out changeset 670b75f8446f (bug 1496220)
Backed out changeset c4a8a6256d7f (bug 1496220)

--HG--
extra : rebase_source : 43edfc28753cca429f7a72994d568091f30e62bc
extra : amend_source : 738723a11e8fb88a71cac79de93b878d82230409
2018-10-17 20:21:16 +03:00
Jim Chen 1ba080f4c2 Bug 1496220 - 2. Default to null triggering principal for GeckoView.loadUri; r=esawin
For improved security, default to a null triggering principal for
GeckoView.loadUri calls, except when loading certain privileged schemes
such as "resource" and "file".

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

--HG--
extra : moz-landing-system : lando
2018-10-17 16:12:28 +00:00
Agi Sferro 305f478024 Bug 1454444: Add GeckoSession.getUserAgent. r=snorp,esawin
This patch adds a new API to GeckoSession to get the currently used
UserAgent.

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

--HG--
extra : moz-landing-system : lando
2018-10-11 15:31:15 +00:00
Eitan Isaacson 65050213b6 Bug 1479037 - Implement native accessible tree 3/4. r=Jamie
Depends on D6682

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

--HG--
extra : moz-landing-system : lando
2018-10-11 16:21:09 +00:00
Ciure Andrei 74d2eeef4c Backed out 3 changesets (bug 1496220) for browser_e10s_switchbrowser.js and test_findbar.xul failures CLOSED TREE
Backed out changeset 70505741627f (bug 1496220)
Backed out changeset daf7ced3bbcc (bug 1496220)
Backed out changeset abf2e04e30e4 (bug 1496220)
2018-10-11 01:03:27 +03:00
Jim Chen 90a2822ab1 Bug 1496220 - 2. Default to null triggering principal for GeckoView.loadUri; r=esawin
For improved security, default to a null triggering principal for
GeckoView.loadUri calls, except when loading certain privileged schemes
such as "resource" and "file".

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

--HG--
extra : moz-landing-system : lando
2018-10-05 13:43:05 +00:00
Jim Chen 46f4db9a26 Bug 1497259 - 3. Control GV logging through pref; r=droeh
Use the "geckoview.logging" pref to control GV logging.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 17:36:13 +00:00
Jim Chen 006913a322 Bug 1497259 - 2. Don't log auto-fill values; r=droeh
Auto-fill values can contain personal information and must not appear in
the log.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 17:36:11 +00:00
Jim Chen 3b23e49920 Bug 1497259 - 1. Fix log module names; r=droeh
Fix the GV log module names so they are all under the GeckoView group.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 17:36:03 +00:00
Dorel Luca 92a3152cee Backed out 4 changesets (bug 1479037) on dev's request for causing android crashes. a=backout
Backed out changeset 85f8ca59f747 (bug 1479037)
Backed out changeset 630601f0663e (bug 1479037)
Backed out changeset c926c6470235 (bug 1479037)
Backed out changeset f8a20bd86895 (bug 1479037)
2018-10-10 18:52:59 +03:00
Eitan Isaacson f3d88538aa Bug 1479037 - Implement native accessible tree 3/4. r=jchen,yzen
Depends on D6682

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

--HG--
extra : moz-landing-system : lando
2018-10-09 17:20:53 +00:00
Jim Chen 605abe9bb4 Bug 1492704 - 2. Keep track of the auto-fill focus root node; r=droeh
The crash is happening because we may not have a full node tree when
looking at a particular node; in that case we may not be able to find
the root node. This patch makes us keep track of the root node from the
beginning, so we always know what the root node is.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:41:40 +00:00
Jim Chen 60f51ffb1e Bug 1492704 - 1. Update auto-fill then selecting tabs; r=petru
Update auto-fill info when selecting tabs. Also for auto-fill focus and
page events, only handle those events for the foreground tab, so
events from background tabs don't inadvertently affect auto-fill for the
foreground tab.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:41:37 +00:00
arthur.iakab 0fa921ab4c Backed out 2 changesets (bug 1492704)by request of jcristau for causing multiple nightly crashes a=backout CLOSED TREE
Backed out changeset a44a660a1580 (bug 1492704)
Backed out changeset bf4e7fd47d96 (bug 1492704)
2018-10-01 11:49:35 +03:00
Ehsan Akhgari 5f0be07390 Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 14:46:02 -04:00
Noemi Erli 4419e20e14 Backed out 12 changesets (bug 1493563) for failures in test_css-logic-getCssPath.html CLOSED TREE
Backed out changeset d2e83655082f (bug 1493563)
Backed out changeset 1ce58f004593 (bug 1493563)
Backed out changeset 344298c73ee7 (bug 1493563)
Backed out changeset 02b8b073f7d7 (bug 1493563)
Backed out changeset 3ef707008502 (bug 1493563)
Backed out changeset bb2720a401fe (bug 1493563)
Backed out changeset ce0211be57a1 (bug 1493563)
Backed out changeset 83d6c2bf8dc6 (bug 1493563)
Backed out changeset 1844af4cc25b (bug 1493563)
Backed out changeset c8ab17addb7a (bug 1493563)
Backed out changeset a1ff0cd62563 (bug 1493563)
Backed out changeset 932b41e211e0 (bug 1493563)
2018-09-28 21:31:18 +03:00
Ehsan Akhgari f0108e78c2 Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 13:24:41 -04:00
Jim Chen 04df1a8b78 Bug 1492704 - 1. Update auto-fill then selecting tabs; r=petru
Update auto-fill info when selecting tabs. Also for auto-fill focus and
page events, only handle those events for the foreground tab, so
events from background tabs don't inadvertently affect auto-fill for the
foreground tab.

Differential Revision: https://phabricator.services.mozilla.com/D6757
2018-09-27 10:59:48 -04:00
Tiberius Oros 70e8d3a299 Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE
Backed out changeset 0bb55b604bfd (bug 1493563)
Backed out changeset 8e25c301675a (bug 1493563)
Backed out changeset 4f608b8801d4 (bug 1493563)
Backed out changeset f58d0b1ca088 (bug 1493563)
Backed out changeset eae105f2bf6d (bug 1493563)
Backed out changeset 7a8a0d1cfd69 (bug 1493563)
Backed out changeset dbba8451aab1 (bug 1493563)
Backed out changeset a6141dbd0328 (bug 1493563)
Backed out changeset f4ca3d8fa90e (bug 1493563)
Backed out changeset 56bab7fae64d (bug 1493563)
Backed out changeset 66787e603401 (bug 1493563)
2018-09-26 06:16:22 +03:00
Ehsan Akhgari 4ced8fedcb Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-25 21:02:51 -04:00
Tiberius Oros 8acb878ef1 Backed out 11 changesets (bug 1493563) for failures on browser_blockingCookies.js on a CLOSED TREE
Backed out changeset d755b96837ac (bug 1493563)
Backed out changeset 651f87dca51f (bug 1493563)
Backed out changeset 68de8f0866d0 (bug 1493563)
Backed out changeset 205d69890f50 (bug 1493563)
Backed out changeset 5f922cd6c21e (bug 1493563)
Backed out changeset 84dc54c1a9c1 (bug 1493563)
Backed out changeset 287666ecdd17 (bug 1493563)
Backed out changeset c64a2ea15b7b (bug 1493563)
Backed out changeset 9085269938cd (bug 1493563)
Backed out changeset de06604fefcb (bug 1493563)
Backed out changeset f9bac5e73bd4 (bug 1493563)
2018-09-25 23:12:03 +03:00
Ehsan Akhgari 59e50ba2d0 Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-25 13:51:47 -04:00
Jim Chen c603332d5d Bug 1485810 - 1. Move auto-fill code to GeckoViewAutoFill.jsm; r=droeh
Move all auto-fill code to GeckoViewAutoFill.jsm, so they can be shared
between GeckoView and Fennec.

Differential Revision: https://phabricator.services.mozilla.com/D4803
2018-09-14 14:46:25 -04:00
Dylan Roeh b18b70dfcf Bug 1489257 - Backed out 3 changesets (bug 1441059, bug 1478171) for causing bug 1489257. r=me
Backed out changeset f7bd4f224f9a (bug 1441059)
Backed out changeset e66e6bd82e3f (bug 1441059)
Backed out changeset 94cfd6113ca7 (bug 1478171)
2018-09-13 12:27:23 -05:00
James Willcox 500e2cea93 Bug 1483329 - Report content process crashes via GeckoRuntime r=jchen 2018-09-11 12:04:09 -05:00
arthur.iakab 9b05873885 Backed out changeset 16d2d6dc3cdf (bug 1489257)on request by droeh for causing geckowiev failures
--HG--
extra : rebase_source : 6a1e51a55ff18795c981518845735fe73bd78b6c
extra : amend_source : 3c5f4c8f15db8f361b41f29e632ff42563753639
2018-09-11 18:47:58 +03:00
Dylan Roeh 2cf215fea4 Bug 1489257 - Backed out 3 changesets (bug 1441059, bug 1478171) for causing bug 1489257. r=me
Backed out changeset f7bd4f224f9a (bug 1441059)
Backed out changeset e66e6bd82e3f (bug 1441059)
Backed out changeset 94cfd6113ca7 (bug 1478171)
2018-09-10 16:15:31 -05:00
Dipen Patel aeed887ff8 Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 00:07:30 +00:00
Csoregi Natalia 0400fe7b57 Backed out changeset bd8baf88f373 (bug 1468222) for test_security-info-parser.js failures. CLOSED TREE 2018-09-08 03:16:25 +03:00
Dipen Patel 0679e09a9a Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=snorp,ato,sfraser,keeler,baku,mcmanus,Gijs
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-07 22:50:17 +00:00
Imanol Fernandez fab5f04e0f Bug 1483397 - Add media control API so apps can control when media is paused r=snorp,rbarker,jchen
Add a GeckoSession property too specify if media should be suspended when the session is inactive.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 21:55:03 +00:00
Kris Maglione 4d7a8aa50d Bug 1484496: Part 5c - Convert mobile/ nsISimpleEnumerator users to use JS iteration. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3731

--HG--
extra : rebase_source : 6ba05bd9240694fa7c37481b138c67671da39a9e
extra : histedit_source : 51439d03c5cb87f041a995d7ba6978f01035eb99
2018-08-18 19:28:06 -07:00
James Willcox e07c741622 Bug 1480095 - Allow NavigationDelegate.onLoadError() to return URL for error page r=esawin,jchen
MozReview-Commit-ID: 4pgHD6oh4GY
2018-08-22 08:48:20 -05:00
Jim Chen 042d95a78e Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-21 15:23:28 -04:00
Gurzau Raul fce80a532e Backed out 8 changesets (bug 1330257) for Geckoview failures at GeckoSessionTestRuleTest.waitForPageStop_throwOnChangedCallback on a CLOSED TREE
Backed out changeset c26970c767e1 (bug 1330257)
Backed out changeset 53ef69afca69 (bug 1330257)
Backed out changeset 62e53fa35d5b (bug 1330257)
Backed out changeset 7c589fc8621b (bug 1330257)
Backed out changeset 593f9a799d11 (bug 1330257)
Backed out changeset 9085b9fd557c (bug 1330257)
Backed out changeset aa0ef9b0e96a (bug 1330257)
Backed out changeset 7186e64192f7 (bug 1330257)
2018-08-21 06:51:29 +03:00
Jim Chen fa4ec16cc2 Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-20 22:28:20 -04:00
Randall Barker 832c1cbf6b Bug 1483596 - Add GeckoView API to set VR UA string r=esawin,jchen
Differential Revision: https://phabricator.services.mozilla.com/D3545

--HG--
extra : moz-landing-system : lando
2018-08-17 20:34:04 +00:00
Eugen Sawin 19c0050828 Bug 1483342 - [2.1] Initialize SafeBrowsing module by default to enable safe browsing. r=jchen 2018-08-16 17:56:34 +02:00
Matt Brubeck acd631b030 Bug 1481471 - Implement browser.tab.getActive() in GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3355

--HG--
extra : rebase_source : 493842fd508f221c839afe676a60e6a419fc2506
2018-08-14 11:05:12 -07:00
Dylan Roeh 63ca464a8c Bug 1441059 - Make nsILoadURIDelegate async to preserve the order of GeckoSession.loadUri() calls. r=snorp,bz
This alters nsILoadURIDelegate.loadURI() to return a Promise rather than spinning the event loop to synchronously return a boolean, and alters nsDocShell::InternalLoad to allow for those changes by re-calling itself if necessary based on the resolution of the promise.
2018-08-07 13:42:07 -05:00
Kris Maglione c50886cf4e Bug 1480327: Part 2 - Modernize what's left of Log.jsm a bit. r=Mossop
MozReview-Commit-ID: H06rpiZuIEF

--HG--
extra : rebase_source : e10781ffdfaa264370ca95a720298dc3607a079b
2018-08-01 23:23:34 -07:00
Kris Maglione bf729d7e98 Bug 1480327: Part 1 - Get rid of most of Log.jsm. r=Mossop
MozReview-Commit-ID: JVKJtkLhCDS

--HG--
extra : rebase_source : 8b47dbfaa6f279901b99c93c26eee27f719b1d1d
2018-08-01 23:41:01 -07:00
Boris Zbarsky c02c1c0f2b Bug 1476142 part 3. Remove some unnecessary QIs in mobile. r=snorp 2018-08-02 15:26:48 -04:00
dvarga 956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
Mark Banner 43685f06cb Bug 1478305 - Remove unnecessary ChromeUtils.import calls in mobile/. r=snorp
MozReview-Commit-ID: 1eLC4Hutkcc

--HG--
extra : rebase_source : bb56e8164e816948100cb813f84b8b17c6fab490
2018-07-30 10:36:49 +01:00
Bogdan Tara 9c44097a0d Merge inbound to mozilla-central. a=merge 2018-08-01 00:58:55 +03:00
Jim Chen 79ae4ae18f Bug 1479536 - Fix SessionFinder.clear(); r=droeh
Fix the clear() call to clear highlights in addition to the selection.

MozReview-Commit-ID: 1DNXa8fIGTP

--HG--
extra : rebase_source : c84033c644becf2c9b0e7df8d2580523e75de97d
2018-07-30 16:21:29 -04:00
Eugen Sawin 80290a1133 Bug 1451476 - [1.2] Add GeckoView page load error API. r=snorp,droeh,smaug 2018-07-31 20:43:33 +02:00
Boris Zbarsky 74a3d194eb Bug 1446940 part 4. Stop getting docshells from windows via getInterface in mobile. r=snorp 2018-08-01 13:07:11 -04:00
Makoto Kato aa6e598c39 Bug 1462019 - Part 2. Use abstract socket address for USB remote debugging. r=jryans 2018-07-25 14:47:49 +09:00
Csoregi Natalia 033d45ca70 Merge inbound to mozilla-central. a=merge 2018-07-29 12:45:56 +03:00