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

14634 Коммитов

Автор SHA1 Сообщение Дата
Aaron Klotz ae684a1dee Bug 1611554: Part 2 - Modify GeckoView build to generate manifest and service definitions from jinja files; r=nalexander,geckoview-reviewers,snorp
* We add a config option for setting the number of content services;
* We add a config option to indicate whether content services should be isolated.
  This one is just a `project_flag` since it doesn't really need the ability to
  be overridden; it's something whose default we would want to flip when the
  time comes;
* We set a dependency so that mobile/android/base/pre-export is executed;
* We add the `gen_from_jinja.py` script which is mostly just a dumb shim that
  takes the input template and the config arguments, instantiates jinja,
  generates the final output, and dumps it to the output fd;
* We add the requisite `moz.build` statements to generate the manifest overlay
  and the service definitions;
* We update `build.gradle` so that Gradle knows to look for the generated files
  when building the apk.

Differential Revision: https://phabricator.services.mozilla.com/D82577
2021-01-13 17:32:54 +00:00
Butkovits Atila bcdf48f6d6 Backed out 3 changesets (bug 1611554) for causing bustage on recurse.mk. CLOSED TREE
Backed out changeset bb1ce63d73ec (bug 1611554)
Backed out changeset 0d4317da1006 (bug 1611554)
Backed out changeset dc905e5db0cc (bug 1611554)
2021-01-13 03:16:17 +02:00
Aaron Klotz 669a8ecdcc Bug 1611554: Part 2 - Modify GeckoView build to generate manifest and service definitions from jinja files; r=nalexander,geckoview-reviewers,snorp
* We add a config option for setting the number of content services;
* We add a config option to indicate whether content services should be isolated.
  This one is just a `project_flag` since it doesn't really need the ability to
  be overridden; it's something whose default we would want to flip when the
  time comes;
* We set a dependency so that mobile/android/base/pre-export is executed;
* We add the `gen_from_jinja.py` script which is mostly just a dumb shim that
  takes the input template and the config arguments, instantiates jinja,
  generates the final output, and dumps it to the output fd;
* We add the requisite `moz.build` statements to generate the manifest overlay
  and the service definitions;
* We update `build.gradle` so that Gradle knows to look for the generated files
  when building the apk.

Differential Revision: https://phabricator.services.mozilla.com/D82577
2021-01-13 00:24:06 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Mike Hommey 382cebd8f2 Bug 1648575 - Fix Android artifact builds after bug 1645986. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D81240
2020-06-25 22:31:02 +00:00
Sebastian Hengst 5b855de25b Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D61512

--HG--
extra : moz-landing-system : lando
2020-03-06 17:54:58 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Cosmin Sabou ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Mike Shal ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Brindusan Cristian e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Mike Shal e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Geoff Brown 9e59579c39 Bug 1601076 - Fix some broken BUG_COMPONENTS in moz.build files; r=jmaher
Some of these were obvious typos. Others probably reflect once-correct components
that have been combined, split, or otherwise obsoleted; for these I've tried to
use the component associated with the bugs for recent changes to the affected files.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 13:55:45 +00:00
Ricky Stewart c010710916 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal
(Same content as bad revision https://phabricator.services.mozilla.com/D48230, but with a very small change to config/external/icu/data/moz.build to fix the build breakage.)

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=833f6a69fcac689488a640b43e8e0bdaa086a56c

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

--HG--
extra : moz-landing-system : lando
2019-10-07 21:15:19 +00:00
Daniel Varga 052ef806b5 Backed out changeset 8d95f2c8867b (bug 1586358) for build bustage with FATAL ERROR PROCESSING MOZBUILD FILE. On a CLOSED TREE
--HG--
extra : rebase_source : 325fbad2455afc7f693087e75fa57dba79f4d86b
2019-10-07 20:22:08 +03:00
Ricky Stewart 940d91af38 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=nalexander
This patch doesn't remove all references to GENERATED_FILES, but does remove most of them, leaving only those which can't be trivially translated to the new template.

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a25230c3992b9c5519ceb351fb37f6b2bf605e

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

--HG--
extra : moz-landing-system : lando
2019-10-07 15:31:05 +00:00
Nick Alexander c46ec74815 Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal
This does many things:

1) stops producing (and consuming) `FennecJNI*` JNI wrappers
2) removes the :app and :thirdparty Gradle projects
3) removes relevant pieces of the Gradle target configuration
4) updates lints
5) purges old configurations

After this commit, the `mobile/android` project/application builds
only GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 20:55:11 +00:00
shindli 6b69a26a4e Backed out changeset ed94e4749e4d (bug 1586205) for causing linting failure in /builds/worker/checkouts/gecko/mobile/android/base/java/org/mozilla/gecko/mma/LeanplumVariables.java CLOSED TREE 2019-10-04 19:30:14 +03:00
Vlad Baicu 0e1885d861 Bug 1586205 - Change LP variables to fallback to same nonLP defaults.r=petru
Differential Revision: https://phabricator.services.mozilla.com/D48184

--HG--
extra : moz-landing-system : lando
2019-10-04 14:32:40 +00:00
Daniel Varga 3e03bfc507 Backed out changeset f04641fbd147 (bug 1355389) for linting at /builds/worker/checkouts/gecko/mobile/android/components/FilePicker.js. On a CLOSED TREE
--HG--
extra : amend_source : 397f26bd1b1f0d1c331c22cf1d36ca60bfac9049
2019-09-25 19:29:08 +03:00
Peter 0b6ffc48f6 Bug 1355389 - Filepicker can now handle multiple files r=AndreiLazar
Differential Revision: https://phabricator.services.mozilla.com/D46790

--HG--
extra : moz-landing-system : lando
2019-09-25 13:56:51 +00:00
Andrei Lazar be3c96389f Bug 1572806 - Added profile_date parameter to Telemetry Activation Ping r=VladBaicu
Profile creation date (profile_date) is now embedded in Telemetry Activation Ping.

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

--HG--
extra : moz-landing-system : lando
2019-09-25 15:24:34 +00:00
Mihai Alexandru Michis 5da385b3dd Bug 1581204 - Fix bustages on android. a=bustage-fix CLOSED TREE
--HG--
extra : amend_source : 5a0dbe90a6b587fcfc995cbe10f783475975df09
2019-09-16 23:07:56 +03:00
Zibi Braniecki 674b0b4fa4 Bug 1581204 - Remove unused DTDs from mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D45902

--HG--
extra : moz-landing-system : lando
2019-09-16 19:42:01 +00:00
Andrei Lazar 7b88fb63f8 Bug 1525290 Crash in android.os.RemoteException: at com.android.server.job.JobServiceContext.assertCallerLocked(JobServiceContext.java) r=VladBaicu
Now writing in FileOutputStream on a background thread instead of the main thread.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 15:26:05 +00:00
Vlad Baicu 0d2e8f845e Bug 1576170 - Onboarding Sign up strings. r=delphine
Differential Revision: https://phabricator.services.mozilla.com/D45528

--HG--
extra : moz-landing-system : lando
2019-09-11 21:21:52 +00:00
Jan Henning 5fef8238b0 Bug 1577612 - Support functional CSS color syntax in themes. r=snorp
A lot/most? webextension static themes use this way to specify colours.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 18:43:49 +00:00
Vlad Baicu d820fc4ab6 Bug 1570878 - Add sign-in buttons to onboarding. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D44817

--HG--
extra : moz-landing-system : lando
2019-09-05 17:16:15 +00:00
Vlad Baicu a82ae76cdd Bug 1577868 - Updated Sign up buttons. r=delphine
Differential Revision: https://phabricator.services.mozilla.com/D44388

--HG--
extra : moz-landing-system : lando
2019-09-03 21:52:37 +00:00
Vlad Baicu e533de9b0e Bug 1576170 - Relocate the localization note above the strings for consistency. r=flod
Differential Revision: https://phabricator.services.mozilla.com/D43468

--HG--
extra : moz-landing-system : lando
2019-08-26 18:08:27 +00:00
Andrei Lazar fe3c28a25a Bug 1575605 - Crash in [@ java.lang.NullPointerException: at org.mozilla.gecko.home.TabMenuStripLayout.onPageSelected(TabMenuStripLayout.java)] r=VladBaicu
Now performing a sanity check after grabbing the child at position due to the fact that it can be
null if the position is out of array bounds (this usually happens when all panels are hidden and we request an orientation change).

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

--HG--
extra : moz-landing-system : lando
2019-08-26 13:09:09 +00:00
Vlad Baicu 56b7a6e37e Bug 1576170 - Sign in strings for Onboarding & Activity Stream. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D43245

--HG--
extra : moz-landing-system : lando
2019-08-23 13:42:37 +00:00
Thomas Wisniewski d1694a0fd4 Bug 1564594 - Add an Enhanced Search webcompat site patch r=nalexander,denschub
This patch ultimately overrides the user-agent which Fennec users send to Google Search pages, choosing a phone- or tablet-specific UA as appropriate.

It involves adding four new metadata keys to the webcompat addon's metadata for user-agent overrides: blocks, permanentPref, experiment, telemetryKey:

- "blocks" specifies URLs for which any requests should be aborted. This allows us to block the Google service worker for now, as it has caused "content corrupted" issues in the past with other enhanced search addons (see https://github.com/wisniewskit/google-search-fixer/issues/1).
- "permanentPref" specifies an about:config preference, which dictates whether the injection is used. Users may set this to `false` to disable the injection outright, and permanently; `true` or `undefined` values allow the injection to function normally.
- "experiment" specifies the name of the experiment this feature is optionally gated behind. Only a Fennec-specific implementation is provided in this patch. The implementation simply queries Switchboard to determine if the experiment is active.
- "telemetryKey" specifies which telemetry key should be flipped to "true" when this injection runs. We will use this to note whether enhanced search has actually been enabled for this profile. Only a Fennec-specific implementation is given in this patch, which actually just sets a Fennec Shared Preference, which Fennec's core telemetry ping later reads in Java to know what the ping should contain.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 20:32:27 +00:00
Brad Arant c049730cc6 Bug 1359363 - Apply diffutil to search list updates for smoother ui experience.;r=petru
Differential Revision: https://phabricator.services.mozilla.com/D37733

--HG--
extra : moz-landing-system : lando
2019-07-22 06:58:29 +00:00
Vlad Baicu 9b9c9fbffe Bug 1573868 - Upload Mobile activation ping in onStart. r=nalexander
Bug 1534451 added a non-trivial amount of background computation during
onCreate. This introduced regressions by tickling the balance of existing
race conditions.

We're changing this by now uploading in onStart. Ideally we want to send
this mobile activation ping at least once from every client at startup. This change
should have minimal impact and keep the same consistency with the core ping.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 22:55:38 +00:00
Nick Alexander 3a8b516942 Bug 1570690 - Synchronously extract system addons before Gecko startup in Fennec. r=VladBaicu,Grisha
Right now, there are a lot of things that race to complete before
Gecko creates or first reads the profile.  One of those things is
extracting system addons (the `assets/features/` directory of the APK)
to disk, ready for the Gecko profile code to enumerate them.

Bug 1534451 added a non-trivial amount of background
computation during `onCreate`.  This tickled the existing race
conditions such that system addon extraction frequently loses the
race, making system addons unreliable.

In addition, for reasons unknown, `PostUpdateHandler` did its work
during `onStart`.  But the Gecko profile was created/first read
earlier, in `onCreate`.  This widened the race window.

This commit pulls the update handler into `onCreate`, which is at
least early enough for it to have a chance of winning the race; and it
makes the work synchronous, which is the simplest way to ensure that
it is actually in place before Gecko startup (and profile
creation/first read).  Since system addons are our "get out of jail"
card in many situations, the cost of extracting earlier seems like a
good trade-off.  That is, I'm sure the early disk access will appear
in profiles, and it may even regress Raptor -- but it's a good
trade-off.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 18:10:55 +00:00
Andrei Lazar 3045c46408 Bug 1568674 Leanplum startup problem in Fennec 68.0 r=VladBaicu
Enabled bidirectional realtime variable updates for production mode.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 14:00:13 +00:00
Csoregi Natalia c2bc86bafd Backed out changeset a3d80ef3d9b9 (bug 1568674) for Android build bustage on MmaStubImp.java:20. CLOSED TREE 2019-08-13 16:51:36 +03:00
Andrei Lazar 52a9e277bd Bug 1568674 Leanplum startup problem in Fennec 68.0 r=VladBaicu
Enabled bidirectional realtime variable updates for production mode.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 12:32:49 +00:00
Brad Arant 31ac644a83 Bug 1565488 - Wrong panel from welcome screen is highlighted after clearing data;r=VladBaicu
Differential Revision: https://phabricator.services.mozilla.com/D39797

--HG--
extra : moz-landing-system : lando
2019-07-30 16:22:11 +00:00
James Willcox b69eb546f3 Bug 1570661 - Don't save GeckoView state in Fennec r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D41017

--HG--
extra : moz-landing-system : lando
2019-08-07 14:54:46 +00:00
Gabriele Svelto 50f416564f Bug 1570789 - Remove the unused field from GeckoView/Fennec crash reports r=nalexander,agi
Differential Revision: https://phabricator.services.mozilla.com/D40331

--HG--
extra : moz-landing-system : lando
2019-08-02 08:26:05 +00:00
Brad Arant 228c3aa18d Bug 1562622 - Calling getViewTreeObserver again to get new object to test isAlive().;r=VladBaicu
Differential Revision: https://phabricator.services.mozilla.com/D39929

--HG--
extra : moz-landing-system : lando
2019-07-31 14:35:08 +00:00
Grisha Kruglov 33327053e3 Bug 1570496 - Forward-compatible treatment of 'action' WebChannel payload param r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D40118

--HG--
extra : moz-landing-system : lando
2019-08-01 00:09:23 +00:00