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

3386 Коммитов

Автор SHA1 Сообщение Дата
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
Jonathan Kingston 3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Gijs Kruitbosch bb91abcfd1 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-10 21:28:20 +00:00
shindli 326271039b Backed out changeset b3bcf26d4dad (bug 1252831) for xpcshell failures in uriloader/exthandler/tests/unit/test_handlerService.js CLOSED TREE 2019-02-08 22:57:20 +02:00
Yuan Cheng 7be13dade4 Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D17731

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:15 +00:00
Gijs Kruitbosch dcea4f2a22 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-08 19:04:53 +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
Jan Henning 40a3a5ea2e Bug 1524857 - Part 1: Separate base domain for doorhangers from base domain used for domain highlighting. r=Gijs
Currently, the Android front-end uses a tab's base domain both for permission
prompt doorhangers, as well as for doing domain highlighting in the URL bar. The
base domain in turn is based on the document's nodePrincipal's URI.

As per bug 1325955, the nodePrincipal is the right choice for permission
prompts, but it causes some problems for domain highlighting instead: For error
pages for example, the nodePrincipal's URI will be some variety of
about:neterror, which means that the front-end won't be able to do any domain
highlighting based on that, since
a) we don't generate any baseDomain anyway because the URI's scheme isn't
   HTTP(S)/FTP, and
b) even if we did, the nodePrincipal's baseDomain won't match the contents of
   the URI displayed in the URL bar.

Therefore, we want to separate these two concerns, and generate two baseDomains:
One based on the nodePrincipal for use in permission prompts, and one based on
the display URI, which going forward will power our domain highlighting.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 19:23:47 +00:00
Jan Henning 6a3ce29d7f Bug 1524857 - Part 0: Use short form where possible for defining properties. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18585

--HG--
extra : moz-landing-system : lando
2019-02-07 19:21:27 +00:00
Jan Henning 68bf77cc33 Bug 1525666 - Fix typo in distribution parsing code. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D18864

--HG--
extra : moz-landing-system : lando
2019-02-06 19:45:08 +00:00
Mike de Boer 481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
shindli d6dd350c66 Merge inbound to mozilla-central. a=merge 2019-02-01 05:56:53 +02:00
Mike Conley c2ea02dd67 Bug 1522546 - Make GeckoView use browser.remoteType instead of getting at the attribute directly. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D18225

--HG--
extra : moz-landing-system : lando
2019-01-31 19:54:21 +00:00
Dylan Roeh add93d33eb Bug 1382637 - Backing out patch due to breakage (see: 1532161, 1532157). r=me 2019-01-31 13:58:54 -06: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
Cosmin Sabou 599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Jan Henning 24c879e19f Bug 1510029 - Correctly set desktop mode viewport when creating a tab. r=esawin
The desktopMode property on Fennec's tab object is already being correctly being
preserved when (re)creating a tab [1], but we don't propagate its state to the
content window's desktop viewport mode setting.

[1] When restoring into a fresh tab, the session restore code passes the stored
desktopMode flag to addTab, whereas zombifying an existing tab destroys its
<browser>, but leaves the tab object's properties intact, so we merely need to
re-set the desktop viewport mode on the new <browser>'s content window.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 21:01:55 +00:00
Alphan Chen e6cc4bf7ca Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-28 19:44:03 +00:00
Nick Alexander dc88caf991 Bug 1520226 - Make GeckoView set permanentKey on <browser> elements for Marionette. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D17577

--HG--
extra : moz-landing-system : lando
2019-01-28 18:35:45 +00:00
Eugen Sawin effaab9cc0 Bug 1522228 - [1.0] Add baseUri to ContextElement and enforce absolute URI for linkUri. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D17567

--HG--
extra : moz-landing-system : lando
2019-01-28 18:28:19 +00:00
Ciure Andrei 849dbde8e4 Backed out 2 changesets (bug 1507286, bug 1497146) for causing multiple crashes in nsFocusManager::GetRedirectedFocus a=backout
Backed out changeset 0509a9edc58a (bug 1507286)
Backed out changeset 21ad3aeb636f (bug 1497146)
2019-01-26 15:09:03 +02:00
Alphan Chen 0022290b4b Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-25 10:19:04 +00:00
arthur.iakab a5462dcda4 Backed out changeset a6cc9b15b1e3 (bug 1497146)for hazard build bustage on sessionstore/SessionStoreUtils.cpp CLOSED TREE 2019-01-24 16:56:32 +02:00
Alphan Chen ea7eaa36e4 Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-24 12:53:28 +00:00
Dylan Roeh 978362d8c2 Bug 1382637 - Zombify tabs in onDestroy to ensure video/audio recording ends when Fennec is swipe-to-killed. r=snorp 2019-01-23 11:41:01 -06: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
Petru-Mugurel Lingurar 095fa60743 Bug 1520520 - Part 1 - Update UI with tracking events from ContentBlockingEvent; r=esawin,ehsan
onSecurityChange from browser.js will not send information about tracking
anymore to Java (because it doesn't know about that anymore).

onContentBlocking from browser.js will be responsible for this from now on.

    is called after onSecurityChange which will have created a SiteIdentity()

for that tab in Java

    is informed only about tracking status which it caches to only send updates

downstream to Java. Will not propagate identical events one after the other.

    will not fire for websites which do not contains any tracking elements

A Content:ContentBlockingEvent received in Java will update the tracking
property of SiteIdentity and finally update the UI with
ToolbarDisplayLayout#updateSiteIdentity().

Differential Revision: https://phabricator.services.mozilla.com/D16822
2019-01-21 10:02:16 -05: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
Alphan Chen 58400124a1 Bug 1497146 part 2 - Convert FormData.jsm to C++ [collect() part] r=nika,peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12112

--HG--
extra : moz-landing-system : lando
2019-01-17 14:56:51 +00:00
Alphan Chen 5d28867416 Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-17 14:58:31 +00:00
Sebastian Hengst 3dc0a3b83a Bug 1520470 - Update metadata for related Bugzilla product and component for geckoview. r=snorp DONTBUILD
Reviewers: snorp

Tags: #secure-revision

Bug #: 1520470

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

--HG--
extra : rebase_source : 61edc61854b0c74f492e9ee97b075a74d6efe8dd
extra : amend_source : b31c3975770475dd835f97d2272b1028c0f3e23d
2019-01-16 16:18:45 +02:00
Petru Lingurar f968908060 Bug 1473470 - Part 2 - Inform user about synced logins if Sync is used. r=JanH
Summary:
The reason for this ticket was that it was not immediately obvious for
Sync users that deleting logins on this device may affect all logins stored in
user's Sync account. So it was possible that users could unintentionally loose
all their login data.

While we should still offer the option to remove login data, even to Sync users,
we will explicitly inform them that deleting logins can affect all their
synced logins.

Also refactored the code to minimize duplicated code.

Depends on D16026

Reviewers: JanH, #geckoview-reviewers

Reviewed By: JanH

Subscribers: reviewbot, flod

Bug #: 1473470

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

--HG--
extra : rebase_source : a0e83ce91e7d217c6b46fa81472eb5f54c92420d
extra : histedit_source : b9d9435857c04a73d960275409fd65cf1725edcb
2019-01-15 11:01:08 +02:00
Petru Lingurar 11785168d9 Bug 1473470 - Part 1 - Add new "Delete all" option to about:logins; r=JanH
This new option allows removing all logins from our login manager.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 13:42:42 +00:00
Jan Henning 421a99a511 Bug 1498812 - Part 2: Switch GeckoViewScrollChild to use the visual viewport. r=snorp
Given the usage example of pull-to-refresh in bug 1371796, downstream consumers
will probably more interested in the true visible scroll position of the user
within the page, i.e. the visual viewport.
Listening for *visual* viewport events will also definitively be required to
get the saveAndRestoreState GeckoView test properly working once we switch
Gecko's session store helper function to use the *visual* viewport scroll
position.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:04 +00:00
Christoph Kerschbaumer 6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Brian Grinstead f6c12a437b Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:43 +00:00
Randall Barker 66b1687bfb Bug 1507852 - Add GeckoView API to toggle desktop viewport support r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D15598

--HG--
extra : moz-landing-system : lando
2019-01-08 00:58:16 +00:00
Bogdan Tara a42405fa33 Backed out changeset 129a3f527c8e (bug 1507852) for NavigationDelegateTest.desktopMode failures CLOSED TREE 2019-01-07 23:58:38 +02:00
Randall Barker 907e70aa70 Bug 1507852 - Add GeckoView API to toggle desktop viewport support r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D15598

--HG--
extra : moz-landing-system : lando
2019-01-07 20:05:08 +00:00
Cosmin Sabou 3de3011707 Backed out changeset dbea03a5c55e (bug 1497146) for bmsvc bustages on SessionStoreUtils.
SessionStoreUtils

--HG--
rename : dom/chrome-webidl/SessionStoreUtils.webidl => toolkit/components/sessionstore/nsISessionStoreUtils.idl
rename : toolkit/components/sessionstore/SessionStoreUtils.cpp => toolkit/components/sessionstore/nsSessionStoreUtils.cpp
2019-01-04 19:37:37 +02:00
Alphan Chen 15328d9c7b Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsISessionStoreUtils.idl => dom/chrome-webidl/SessionStoreUtils.webidl
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-04 16:26:13 +00:00
Hiroyuki Ikezoe f36f418011 Bug 1516307 - Make nsIDOMWindowUtils.getResolution return the result value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15318

--HG--
extra : moz-landing-system : lando
2018-12-30 01:15:27 +00:00
Mark Banner 89c3a48f36 Bug 1515729 - Remove Task.jsm usage from mobile/android. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15464

--HG--
extra : moz-landing-system : lando
2018-12-28 22:36:18 +00:00
Jared Wein acfe9c8baf Bug 1507595 - Test fixes. r=flod,Gijs
There are multiple fixes contained in this patch:
- fixes for Android/mobile support
- adding extra strings to the ftl file that were never defined before, and previously the ID was just printed to the page
- update test_l10n.py to not rely on about:support anymore
- changing Troubleshoot.jsm to return and ID and args for the strings that should be displayed, so it is compatible with the Fluent API
- misc. fixes so strings that are not localized don't go through the Fluent codepath

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

--HG--
extra : moz-landing-system : lando
2018-12-28 19:40:33 +00:00
James Willcox dbb53da575 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-27 18:11:32 +00:00
Cosmin Sabou 5bcaee3eac Backed out changeset 7ceb0427f883 (bug 1510711) for Android mochitest failures on testJarReader. 2018-12-26 23:34:49 +02:00
James Willcox dc32ae75b8 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-21 18:00:58 +00:00
Jan Henning f7135eb95d Bug 1515559 - Account for image source-sets in context menu. r=snorp
Audio/video related context menu entries are already doing this as far as I can
tell.

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

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:20 +00:00
Jan Henning 120b216df7 Bug 1492335 - Strip view-source prefix when copying/sharing links from context menu. r=snorp
Desktop does this when copying link URLs and sharing is just effectively just
another form of copying.
For completeness, we also apply this when "viewing" the source of images (which
just displays the image itself anyway).

No special handling is required for other media elements (audio/video), because
looking at those in view-source mode does display the raw file contents and
thus none of the media-specific context menu entries will show up.

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

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:18 +00:00