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

9568 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen 4051560fac Bug 1676292 - Stop importing common.css in extensions.xhtml. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D96480
2020-11-10 00:22:26 +00:00
Mark Hammond 6c3e1b850d Bug 1675190 - Vendor new application-services into mozilla-central. r=extension-reviewers,janerik,eoger,dmose,rpl
Differential Revision: https://phabricator.services.mozilla.com/D95829
2020-11-09 04:25:14 +00:00
Mike Hommey 15ca45ea8c Bug 1675384 - Add a script that allows to unify two mac builds into one universal build. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D96172
2020-11-06 21:45:48 +00:00
Mike Hommey 767eea09f0 Bug 1675477 - Remove MozillaDeveloper*Path from Info.plist. r=firefox-build-system-reviewers,haik,mhentges
They cause differences between the x86-64 and arm64 halves of a
universal build, and are not necessary in release builds.

As a side effect, we now end up normalizing Info.plist contents.

Differential Revision: https://phabricator.services.mozilla.com/D96015
2020-11-05 20:24:26 +00:00
Mike Hommey 53fee2f4c4 Bug 1675437 - Use preprocessor to create Info.plist files. r=firefox-build-system-reviewers,mhentges
While we're in the vicinity, change the manual preprocessing of
Info.plist.in to uses of the preprocessor.

Differential Revision: https://phabricator.services.mozilla.com/D96014
2020-11-05 15:03:47 +00:00
Mike Hommey ead183252e Bug 1675437 - Avoid using iconv to create InfoPlist.strings. r=firefox-build-system-reviewers,mhentges
Since python creates little-endian utf-16 consistently whether
cross-compiling from Linux or compiling natively on macOS, we could
write a small script that essentially replaces iconv. On the other hand,
we're also doing some manual preprocessing on the InfoPlist.strings.in
files, and we might as well use the preprocessor for that.

So, we augment the preprocessor to allow an explicit output encoding
other than utf-8, and use the preprocessor instead of `sed | iconv`.

Differential Revision: https://phabricator.services.mozilla.com/D96013
2020-11-05 15:07:30 +00:00
smolnar 5957a1ba9c Backed out changeset a82a3d7cec03 (bug 1675190) for causing linux toolchains bustage. CLOSED TREE 2020-11-05 13:26:46 +02:00
Mark Hammond bcb7a913bb Bug 1675190 - Vendor new application-services into mozilla-central. r=extension-reviewers,janerik,eoger,dmose,rpl
Differential Revision: https://phabricator.services.mozilla.com/D95829
2020-11-05 03:50:21 +00:00
Shane Caraveo d31bd61d79 Bug 1672314 handle invalid addon startup data properly during startup r=rpl
We scan for addon changes twice, once early in startup (usually with no scanning) and once after ui startup.  We hold on to the startup data, and during both scans we restore that data into the addon location instances.  The problem here is if we install a builtin in-between these scans.  The new data from the install would get overwitten by the old data.  In some cases this caused addons to disappear (e.g. old data has incorrect path).  Other issues covered here is that we would never remove addon data for builtins removed from the system, and we would additionally mark builtins as sideloads, which caused other side effects (particularly with search addons) where we would not load the addon, but fortunately the search service later re-installes them.

Differential Revision: https://phabricator.services.mozilla.com/D95422
2020-11-04 16:43:14 +00:00
pbz abdfd99744 Bug 1674361 - External protocol dialog: Added separate labels for file principals. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95755
2020-11-04 12:43:53 +00:00
Razvan Maries 10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell 5f9c85da95 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-04 00:55:36 +00:00
Razvan Maries c8bc7a3e48 Backed out changeset 09a20cd2699f (bug 1672314) for perma failures on browser_html_detail_view.js. CLOSED TREE 2020-11-03 23:43:55 +02:00
Shane Caraveo 6a5784270d Bug 1672314 handle invalid addon startup data properly during startup r=rpl
We scan for addon changes twice, once early in startup (usually with no scanning) and once after ui startup.  We hold on to the startup data, and during both scans we restore that data into the addon location instances.  The problem here is if we install a builtin in-between these scans.  The new data from the install would get overwitten by the old data.  In some cases this caused addons to disappear (e.g. old data has incorrect path).  Other issues covered here is that we would never remove addon data for builtins removed from the system, and we would additionally mark builtins as sideloads, which caused other side effects (particularly with search addons) where we would not load the addon, but fortunately the search service later re-installes them.

Differential Revision: https://phabricator.services.mozilla.com/D95422
2020-11-03 20:17:37 +00:00
pbz 8dbc84d482 Bug 1674599 - Wait for l10n to finish before resizing window. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D95692
2020-11-03 15:50:01 +00:00
pbz 0df7283b72 Bug 1674437 - Null check principal before calling updatePermission. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D95344
2020-10-30 17:31:04 +00:00
Ricky Stewart efcaf31d7e Bug 1674236 - Call `$(PYTHON3) mach` instead of `mach` in a few places in Makefiles r=nalexander
If you just call into `mach` directly, `mach` will select the `python3` binary at the front of the `PATH`, which may not be the configured `PYTHON3` binary. Instead, we explicitly call `$(PYTHON3) mach`.

In at least one place, [we call into a Python 2-only `mach` command](https://searchfox.org/mozilla-central/rev/d866b96d74ec2a63f09ee418f048d23f4fd379a2/Makefile.in#142). We should do the same in that case once `mach android` is converted to Python 3 (see bug 1638947).

The Gradle files are another place where we [call directly into `mach`](https://searchfox.org/mozilla-central/rev/d866b96d74ec2a63f09ee418f048d23f4fd379a2/settings.gradle#5) that should also be fixed. The comment in `settings.gradle` ("gradle is called before parsing config.status, we cannot use PYTHON") suggests this may not be possible though. I'll follow up about that.

Differential Revision: https://phabricator.services.mozilla.com/D95216
2020-10-30 16:08:14 +00:00
pbz 24d9b9243c Bug 1565574 - Added protocol handler permission dialog and updated app chooser dialog. r=Gijs,fluent-reviewers
- Added a new permission dialog shown when the caller does not have permission to open a protocol
- Updated the appChooser dialog for the new UX
- Updated and moved l10n strings to fluent (fluent migration in the following patch)

Differential Revision: https://phabricator.services.mozilla.com/D94149
2020-10-29 13:43:54 +00:00
pbz 84589d971b Bug 1565574 - Added permission required to open external protocol handlers. r=Gijs
- Added pref to toggle permission feature
- Updated ContentDispatchChooser to check for permission and  manage a multi dialog flow.

Differential Revision: https://phabricator.services.mozilla.com/D92945
2020-10-29 13:43:46 +00:00
Dorel Luca cfaedde161 Backed out 6 changesets (bug 1565574) as per dev's request. CLOSED TREE
Backed out changeset fbe972f837d9 (bug 1565574)
Backed out changeset 2852c526acd6 (bug 1565574)
Backed out changeset fa731b373f42 (bug 1565574)
Backed out changeset c7ed89a9afc7 (bug 1565574)
Backed out changeset 3e87d1b83069 (bug 1565574)
Backed out changeset 93955bcbaf4b (bug 1565574)
2020-10-29 12:55:28 +02:00
pbz 682b38ed82 Bug 1565574 - Added protocol handler permission dialog and updated app chooser dialog. r=Gijs,fluent-reviewers
- Added a new permission dialog shown when the caller does not have permission to open a protocol
- Updated the appChooser dialog for the new UX
- Updated and moved l10n strings to fluent (fluent migration in the following patch)

Differential Revision: https://phabricator.services.mozilla.com/D94149
2020-10-29 10:25:52 +00:00
pbz 38c10056ca Bug 1565574 - Added permission required to open external protocol handlers. r=Gijs
- Added pref to toggle permission feature
- Updated ContentDispatchChooser to check for permission and  manage a multi dialog flow.

Differential Revision: https://phabricator.services.mozilla.com/D92945
2020-10-27 16:13:46 +00:00
Shane Caraveo 19da1a58d7 Bug 1666042 update badge text in about:addons r=fluent-reviewers,jaws,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D94035
2020-10-27 15:43:23 +00:00
Shane Caraveo aee301291a Bug 1666503 update the support link for extension badges r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D94025
2020-10-27 15:43:23 +00:00
Nick Alexander 2466eeaf4a Bug 1639613 - Make Windows uninstaller conditionally request UAC elevation when silent. r=mhowell
This essentially cribs the equivalent installer conditional elevation.
I elected to guard this behind /S (silent) because it's not obvious to
me that unelevated users will see identical behaviour when not
elevating.

Differential Revision: https://phabricator.services.mozilla.com/D76254
2020-10-26 20:56:34 +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
Itiel 5f4da4652c Bug 1672502 - Fix the green checkmark position for RTL in about:addons permissions tab r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D94376
2020-10-22 14:25:24 +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
Gijs Kruitbosch bc86667518 Bug 1670356 - use case insensitive comparisons when checking Windows executables, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D93852
2020-10-21 11:24:41 +00:00
Adam Gashlin 310b37b21a Bug 1461690 Part 4: Submit ping in uninstaller. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D93718
2020-10-20 23:24:08 +00:00
Kirk Steuber eede456420 Bug 1672267 - Fix 2 mistakes made in Bug 1668096 r=mhowell
While making other changes, I took a second look at some code I wrote in Bug 1668096, and found a few little mistakes. This patch fixes them up.

Depends on D94191

Differential Revision: https://phabricator.services.mozilla.com/D94192
2020-10-20 21:27:56 +00:00
Kirk Steuber f9b97aac48 Bug 1672267 - Change downloadUpdate to return a boolean success value rather than updater state r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D94191
2020-10-20 21:45:08 +00:00
Marco Bonardo a3414a5108 Bug 1668284 - Unknown content type change settings label is no longer accurate. r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D94027
2020-10-20 12:34:45 +00:00
Shane Caraveo 10526405d7 Bug 1624513 add optional permission controls to about:addons r=rpl,mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D85801
2020-10-20 00:10:42 +00:00
Kirk Steuber 50ec360906 Bug 1672063 - Don't delete an update being worked on by another instance r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D94056
2020-10-19 23:14:39 +00:00
Rob Wu dc4938fe77 Bug 1601678 - Resolve shutdown deadlock in EnvironmentAddonBuilder r=mixedpuppy
TelemetryEnvironment.jsm's EnvironmentAddonBuilder has a shutdown
blocker that depends on the addons database to have been loaded.
There are two calls to asyncLoadDB() in XPIProvider.jsm that are
supposed to activate the load. Neither of them work:

- XPIProvider calls asyncLoadDB() during quitApplicationGranted.
  But "quit-application-granted" is not always triggered, as seen in:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1601678#c12

- XPIProvider.shutdown() calls asyncLoadDB().
  But shutdown() is only called when TelemetryEnvironment's blocker has
  been released. So this is never reached. More details in:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1601678#c7

To fix the deadlock, asyncLoadDB() is called from profile-before-change,
which is the same phase as the blocker of EnvironmentAddonBuilder.

The two existing calls to asyncLoadDB() mentioned above are obsolete and
have been removed.

---

After the removal of asyncLoadDB() from XPIProvider.shutdown(), the
test_ext_persistent_events.js test started to fail. This is because the
test sends the "sessionstore-windows-restored" notification, for which
XPIProvider has a handler that calls asyncLoadDB(), without awaiting
the result.
Since XPIProvider.shutdown() doesn't await the DB load any more, it is
possible for the DB to be unloaded while being used. This only happens
in tests, because the construction with the TelemetryEnvironment ensures
that the addons database has fully loaded before shutdown() is called.

To resolve this test-only issue, AddonTestUtils.promiseShutdownManager()
has been updated to explicitly wait for the pending _dbPromise if any.

Differential Revision: https://phabricator.services.mozilla.com/D91388
2020-10-15 19:32:31 +00:00
Molly Howell d1a5ae0ea5 Bug 1671715 - Don't try to reboot if cleaning up UpdateLogs fails. r=agashlin
My patch for bug 1665195 included a REBOOTOK flag because I wanted to make
sure the UpdateLogs directory would get deleted even if doing so failed at the
moment. What I didn't realize is that the RmDir instruction will set the reboot
flag if removing the directory fails for any reason whatsoever, even if it's
just because the directory wasn't empty, in which case rebooting wouldn't help.
For some reason I thought there was a check for that condition, but having now
had a look in the NSIS source, there is not.

There's no easy way to check for ourselves whether the directory is empty or
not, so to avoid a spurious reboot prompt from either the installer or the
uninstaller, this patch just gives up on the REBOOTOK flag.

Differential Revision: https://phabricator.services.mozilla.com/D93860
2020-10-16 22:50:11 +00:00
Kirk Steuber 65afc76646 Bug 1647313 - Fix update tests to wait on the update badge before they test for it r=mhowell
Updated tests to wait a moment for the update badge. The badge is added on a timeout, so it may not be there when we first look.

Some tests actually already use this mechanism:
  browser_doorhanger_bc_downloadOptIn_bgWin.js
  browser_doorhanger_bc_downloadAutoFailures_bgWin.js
I'm not sure why it wasn't used consistently, but it seems to fix the intermittent failures with browser_aboutDialog_fc_downloadAuto.js to add the mechanism.

Differential Revision: https://phabricator.services.mozilla.com/D93837
2020-10-16 19:51:23 +00:00
Ricky Stewart 362abcf949 Bug 1670357 - Remove `make` targets for cleaning: `clean`, `realclean`, `clobber`, `distclean`, `clobber_all`, `everything` r=firefox-build-system-reviewers,mhentges
The `clobber` targets are superseded by `mach clobber`, so we don't need them for any reason. The `clean` target is meant to get you to a post-`configure` state, but it doesn't really work, and if it's necessary for you to be in that state for some reason you can just clobber and re-`configure`, so it doesn't seem worth it to get it working again. Instead, delete all of them. Also delete `everything` which is not useful when `clobber` doesn't exist.

Differential Revision: https://phabricator.services.mozilla.com/D93514
2020-10-15 20:37:18 +00:00
Sebastian Hengst 790dbb95da Bug 1647313 - disable browser_aboutDialog_fc_downloadAuto.js due to frequent failures. r=jmaher DONTBUILD
Didn't disable it in browser.bits.ini - from the logs, the bits pref gets set
to false before the failures.

Differential Revision: https://phabricator.services.mozilla.com/D93581
2020-10-14 18:48:08 +00:00
Mark Hammond 5c11945748 Bug 1669722 - vendor a new app-services, which includes ruslite 0.24.1. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D93004
2020-10-08 21:23:40 +00:00
Sylvestre Ledru cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Anny G 7d01c94229 Bug 1669488 - Unskip test xpinstall/browser_localfile2.js for fission, r=extension-reviewers,mixedpuppy,smaug
Differential Revision: https://phabricator.services.mozilla.com/D92639
2020-10-06 21:24:32 +00:00
Kirk Steuber 8d8587f199 Bug 1668096 - Replace activeUpdate with downloadingUpdate and readyUpdate in tests r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D92291
2020-10-06 18:07:56 +00:00
Kirk Steuber 839b14efac Bug 1668096 - Replace activeUpdate with downloadingUpdate and readyUpdate r=mhowell,preferences-reviewers
This patch does not make the necessary replacement in tests. Those changes will be made in a later patch in this stack.

Some additional, related changes are also made in this patch:
cleanupActiveUpdate is being replaced with cleanupDownloadingUpdate and cleanupReadyUpdate. The two new functions currently do very similar things, but separating them will allow us to have each function clean up the right update, once we fully support more than one update per session.
The old mechanism to add something to the update history was for it to be assigned to activeUpdate, and then to assign null to activeUpdate. We now need to assign active updates to be null without adding them to the history. As an example, we need to set downloadingUpdate to null when the download completes, but it shouldn't be added to the history at that point. To address this, an explicit addUpdateToHistory function has been added, and assigning null to either active update variable no longer moves the update to the update history.

Differential Revision: https://phabricator.services.mozilla.com/D92289
2020-10-06 18:07:31 +00:00
Kris Maglione 516843fb8a Bug 1667411: Fix callers which try to set app version to a number rather than a string. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D92298
2020-10-05 17:54:52 +00:00
Anny G d67780d72b Bug 1668664 - Fix toolkit/mozapps/extensions/test/xpinstall/browser_localfile2.js to be compatible with session history in parent, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D92147
2020-10-02 17:31:16 +00:00