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

7228 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch a55246c7fc Bug 1371888 - Stop having a sync IPC message to pass blocklist state, r=florian
Because plugin state in the content now contains blocklist state, and is updated
when the blocklist updates, we don't need to ask the parent if we're checking
blocklist state. All the consumers should now be asking the plugin code directly,
so we can stub out the last API here. We should look at removing the content side
of this service entirely, but that's something for a follow-up bug.

MozReview-Commit-ID: DE8s8RwT42r

--HG--
extra : rebase_source : 06fbc304e99679f55c7cdc52404cd138221feca3
2018-03-06 16:37:49 +00:00
Gijs Kruitbosch ca508d989b Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop
This changes the pluginreg.dat format to include the blocklist state.

There is now only the saved blocklist state in a plugin tag instance, rather than
looking it up from in there using the blocklist service, so it was renamed from
mCachedBlocklistState to mBlocklistState. We pass the 'right' state to the plugin
instance when the plugintag is constructed. If we don't have state, we mark it as
unblocked.

mCachedBlocklistStateChanged was never read so it's being removed.

Bug 1439519 adds a 'blocklist-loaded' notification that is fired once the blocklist is loaded.
The plugin host implementation will listen to this in the parent process and update the
blocklist state of all the plugins, and broadcast changes to the child process, just like when
we update the blocklist from the server. We now also avoid re-sending plugin content to the
content processes if the plugin state hasn't changed as a result of the blocklist having been
loaded.

Finally, because new plugins should still get an up-to-date blocklist state, and
telemetry should get up-to-date data about which plugins are and aren't enabled
once we have that data, we ensure that once we've loaded the blocklist async,
we schedule an idle task to parse it and consider it loaded.

All this means that plugin blocklist information could be mistaken between the points where
a new plugin is installed and we first run Firefox with the new plugin, and the point where
we load the blocklist. Given the trade-offs, that size of window (tiny) seems OK, also given
that there's already a much larger window in blocklist updates (which only happen once every 24h).

MozReview-Commit-ID: 1gsojRkUzTw

--HG--
extra : rebase_source : 4709916b4674ada54f8a495fd2d16fcef8c58d20
2018-02-20 16:53:48 +00:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Sylvestre Ledru 4d822b0f13 Bug 1437877 - Updater tests: Disable -Wformat-truncation until the reported issues are fixed r=glandium 2018-03-13 09:59:50 +01:00
Sylvestre Ledru 28ed02ca28 Bug 1437877 - Updater: Disable -Wformat-truncation until the reported issues are fixed r=glandium
MozReview-Commit-ID: 92L3jTPrBcP

--HG--
extra : rebase_source : b1257fd333c18627c200bd57b8b5f2e1da416742
2018-03-10 17:06:46 +01:00
Andrew Swan 7b4af80995 Bug 1444487 Add preference for langpack signing r=kmag
MozReview-Commit-ID: FEPa2wlLBST

--HG--
extra : rebase_source : c5e452dd62a3c913a096cfead60d5ee8eaf72489
2018-03-09 11:31:39 -08:00
Arjun Krishna Babu 7b68eb1b96 Bug 1444244 - Fix location where Addon's "Preferences" tab is opened; r=aswan
Addon's "Preferences" tab was opening up to the right of ALL tabs rather than next
to the current tab. This behavior has been corrected, and the aforementioned
tab is now placed relative to the opening tab.

MozReview-Commit-ID: APiUR9VkEEt

--HG--
extra : rebase_source : 3b274b9663ae9084c5d3b1823cc044b6adf629b3
2018-03-08 21:06:29 -07:00
Kris Maglione 1577f73f50 Bug 1444758: Follow-up: Fix some flakiness when tests are run in parallel. r=aswan
When we run tests in parallel (and probably occasionally when we don't), we
sometimes wind up getting a DOMContentLoaded event for about:blank before we
actually start loading the background page, which causes tests which rely on
the background page being loaded to fail.

This also fixes some noisy warnings from XPIProvider which make actual issues
more difficult to diagnose.

MozReview-Commit-ID: 4CiccISJ7Pt

--HG--
extra : rebase_source : 25356f5162b19cd28a6f8d004e04a85038ecff28
2018-03-11 20:00:08 -07:00
Kris Maglione f23671174e Bug 1444758: Part 1: Add console message matching helper to AddonTestUtils. r=aswan
Several of our existing plain mochitests use the message matching features of
SimpleTest.monitorConsole. Having a similar utility for xpcshell tests would
make it much easier to migrate these tests to xpcshell.

MozReview-Commit-ID: 38pPanhN5Iu

--HG--
extra : rebase_source : 54a71d9ed01fdd32747742b8aace414d4fb96398
2018-03-11 12:46:56 -07:00
Kris Maglione ae7ee28db1 Bug 1444680: Follow-up: Fix mozAddonManager API tests for non-HTTP test host access. r=bustage CLOSED TREE
MozReview-Commit-ID: 1nYFNgbnzsX

--HG--
extra : rebase_source : 5a746e89adeefbb7a93cb0e9036c8056996eed9e
2018-03-12 14:47:30 -07:00
Kris Maglione c47355d049 Bug 1444680: Part 3: Convert test_ext_webRequest_permission to xpcshell. r=mixedpuppy
MozReview-Commit-ID: 34BKVmoQACF

--HG--
rename : toolkit/components/extensions/test/mochitest/file_WebRequest_permission_original.html => toolkit/components/extensions/test/xpcshell/data/file_WebRequest_permission_original.html
rename : toolkit/components/extensions/test/mochitest/file_WebRequest_permission_original.js => toolkit/components/extensions/test/xpcshell/data/file_WebRequest_permission_original.js
rename : toolkit/components/extensions/test/mochitest/file_WebRequest_permission_redirected.html => toolkit/components/extensions/test/xpcshell/data/file_WebRequest_permission_redirected.html
rename : toolkit/components/extensions/test/mochitest/file_WebRequest_permission_redirected.js => toolkit/components/extensions/test/xpcshell/data/file_WebRequest_permission_redirected.js
rename : toolkit/components/extensions/test/mochitest/test_ext_webrequest_permission.html => toolkit/components/extensions/test/xpcshell/test_ext_webRequest_permission.js
extra : rebase_source : 54c22bccd1b86206a22cfcb1193b9e3c8c9b7530
2018-03-10 18:25:52 -08:00
Kris Maglione a25db8235e Bug 1444502: Remove support for installing unpacked extensions. r=aswan
This retains support for installing unpacked dictionaries, since Hunspell only
supports loading dictionaries from ordinary filesystem paths.

Unpacked extensions are no longer supported on production, except during
development. WebExtensions have no support for the unpacked flag at all, and
specially signed legacy extensions are forbidden from using it, so there's no
point in maintaining support for this install code. Or, more importantly, for
running a nearly complete duplicated set of tests in order to exercise it.

MozReview-Commit-ID: 1fKVgSelJQ8

--HG--
extra : rebase_source : a2e9086a3d050b66eab9c17fff9c2f7189911832
extra : amend_source : da8f6425ec74a824a3d19f13bb4eb51980cd64c1
2018-03-09 12:45:59 -08:00
Kris Maglione 7b1b88148a Bug 1443642: Remove obsolete Addon.hasBinaryComponents flag. r=aswan
MozReview-Commit-ID: AlddwvjQmg1

--HG--
extra : rebase_source : 9805bd061d257dc14696e1194de03fc615912577
2018-03-06 13:59:42 -08:00
Kris Maglione e4b6dffc2a Bug 1443983: Part 2 - Remove remaining interpositions. r=mconley
MozReview-Commit-ID: AHwNsBB7OAQ

--HG--
extra : rebase_source : d25b9ce77529130b98b6199d9c9e06c3890a2f87
2018-03-07 18:10:24 -08:00
Cosmin Sabou aba9ad6f65 Merge inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationListenerTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationDelegateTest.kt
2018-03-08 05:59:30 +02:00
shindli 8e9217d36a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-08 02:27:35 +02:00
Robert Strong 022768cb2a bug 1443935 - make it so browser_updatesCantApply.js test passes when it is run with the ability to elevate. r=mhowell
Locks the file in the updates directory instead of the file in the app directory.
2018-03-07 14:12:22 -08:00
Michael Kaply d5b10c0516 Bug 1269294 - Prevent add-on install from add-ons manager if xpinstall disabled and locked. r=aswan
MozReview-Commit-ID: 7Mtk5eFdyP

--HG--
extra : rebase_source : d8ae8491fbe3f5a62965d8c807cbafa2694c49e4
2018-03-05 10:53:43 -06:00
Jorg K e0ee0f9a80 Bug 1443769 - Switch off test_system_update_enterprisepolicy.js for Thunderbird. r=Felipe 2018-03-07 05:16:00 -05:00
Andreea Pavel 33cc9e0331 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-07 16:43:13 +02:00
Bogdan Tara 2680808115 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-07 12:07:19 +02:00
Philipp Kewisch 5f62077516 Bug 1443682 - Hide the use of OptionalExtensions behind an ifdef. r=mhowell
MozReview-Commit-ID: 8jBeNuMlaYj

--HG--
extra : transplant_source : Eb%C74%0D%AC%DDpb%EBK%83%8F9W%B7%80%87%97%E0
2018-03-07 01:24:07 +01:00
Andrew Swan 344a3d3d0b Bug 1441271 Show permissions notifications for distribution addons r=kmag
As described in the bug, this is intended as a temporary solution to
enable some experiments.  If this becomes a real feature, UX will
put some thought into a better startup experience.

MozReview-Commit-ID: 4DGMHj29M3e

--HG--
extra : rebase_source : a108fd58d4703c3110790f99e4936e6fee323cd2
2018-02-28 18:36:36 -08:00
Mark Banner 0722fe3ee3 Bug 1434869 - Automatically mark EXPORTED_SYMBOLS as used, so that we don't need to ignore it in ESLint's no-unused-vars rule. r=florian.
MozReview-Commit-ID: IVMeZHGdVBk

--HG--
extra : rebase_source : 0705e96256baf6dc82811297058aa1d820b2f119
2018-03-06 12:01:59 +00:00
Kirk Steuber 135bb73f3f Bug 1436851 - Add test for enterprise policy to disable system addon updates r=Felipe,rhelmer
MozReview-Commit-ID: K3NtpeVLFf4

--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/test_system_update_custom.js => toolkit/mozapps/extensions/test/xpcshell/test_system_update_enterprisepolicy.js
extra : rebase_source : 1ae483d466da134bbaaf684921d365d1631772a4
2018-02-14 15:15:02 -08:00
Kirk Steuber d076d47719 Bug 1436851 - Prevent AddonTestUtils.jsm from overriding a pref value r=kmag
AddonTestUtils.overrideBuiltIns sets |security.turn_off_all_security_so_that_viruses_can_take_over_this_computer| to true when it starts. It then naively sets it to false, assuming that that was the original value. This patch simply corrects that behavior to return the value to the previously set value, whatever that may have been.

MozReview-Commit-ID: KbhmoixBvpW

--HG--
extra : rebase_source : 0440ca6f4867e71fe1c3b10eb9a4fb735add4c29
2018-02-14 14:55:27 -08:00
Kirk Steuber cf67ba7589 Bug 1436851 - Implement mechanism to disable system addon updates via enterprise policy r=aswan,Felipe,rhelmer
This patch additionally removes the check where if AddonManagerPrivate.backgroundUpdateTimerHandler does not call AddonManagerInternal.backgroundUpdateCheck if updates to all addons are disabled. The check is redundant as AddonManagerInternal.backgroundUpdateCheck makes those same checks.

MozReview-Commit-ID: FxS8127JYkn

--HG--
extra : rebase_source : 5268750a9f88064e2892e0294704470697e81e80
2018-02-12 10:44:43 -08:00
Robert Strong 61d44e687b bug 1442407 - Backed out 5 changesets for application update issues. r=backout, a=lizzard
Back out bug 1417254, bug 1348087, and bug 1416295 for continuing to cause app update failures.

Backed out changeset ec6f1b3c1317 (bug 1417254)
Backed out changeset df5703f27971 (bug 1416295)
Backed out changeset ae2fcdddead1 (bug 1348087)
Backed out changeset fb54cd45fa10 (bug 1348087)
Backed out changeset edfa340ec9fb (bug 1348087)
2018-03-01 14:54:55 -08:00
Andrew Swan d04fa2c646 Bug 1441841 Use the right count for ratings link in addon details r=eviljeff
MozReview-Commit-ID: KcXiABRbWof

--HG--
extra : rebase_source : 6dbb3fb6cf736c9f235d18b9ecf2fc710a3e0113
2018-02-28 14:57:51 -08:00
Tiberius Oros 61d400da1c Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
Sebastian Hengst 6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst 3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Florian Quèze f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Florian Quèze 6df7549a3e Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst 9b6b3d7b3b merge mozilla-central to autoland 2018-03-01 12:27:56 +02:00
Zibi Braniecki fdf11165d8 Bug 1441135 - Stash all data needed for langpack startup in the startupCache. r=aswan
MozReview-Commit-ID: 763VkrRGvCq

--HG--
extra : rebase_source : cdb5411663ebe9ccbc1a9a4b1574dc50857c7ecb
2018-02-27 10:55:19 -08:00
Andrew Swan 5dc7fca833 Bug 1439600 Mark addons as incompatible if we can no longer parse the manifest r=mossop
MozReview-Commit-ID: 8H1cuAPlPmW

--HG--
extra : rebase_source : ecfb62becf382e2cd2e1df1fcb2ab9ab15e6cab9
2018-02-20 13:00:46 -08:00
Mark Banner 2e4db142aa Bug 1440761 - Enable no-unused-vars for global scope on jsm files in toolkit/. r=mossop
MozReview-Commit-ID: 7Okqmw5dBcL

--HG--
extra : rebase_source : 6fff67e5e4bf483e6903a68a713d0b7d6c659d3b
2018-02-23 19:25:59 +00:00
Andreea Pavel fa0861e443 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-02-28 00:24:02 +02:00
Peter Van der Beken 6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Andrew Swan aeee120808 Bug 1402064 Switch to modern AMO metadata API r=kmag
Switch from the old XML-based AMO metadata API to the modern JSON based
API.  This turned into something between a modest update and complete
rewrite.  Most notably, external APIs became (mostly) promise-based.  The
exception is getCachedAddonById() which XPIInstall.jsm requires a
synchronous callback from.

Also, hopefully we will be able to get rid of a bunch of this metadata
handling soon.  If this code had a long life ahead of it, the unit tests
could use some more attention, but I mostly did the minimum here just to
keep them running for now with the expectation that we'll be able to get
rid of them within some small number of months.

MozReview-Commit-ID: 3DRaBdWGaiJ

--HG--
rename : services/sync/tests/unit/addon1-search.xml => services/sync/tests/unit/addon1-search.json
rename : services/sync/tests/unit/bootstrap1-search.xml => services/sync/tests/unit/bootstrap1-search.json
rename : services/sync/tests/unit/missing-sourceuri.xml => services/sync/tests/unit/missing-sourceuri.json
rename : services/sync/tests/unit/missing-xpi-search.xml => services/sync/tests/unit/missing-xpi-search.json
rename : services/sync/tests/unit/rewrite-search.xml => services/sync/tests/unit/rewrite-search.json
rename : services/sync/tests/unit/systemaddon-search.xml => services/sync/tests/unit/systemaddon-search.json
extra : rebase_source : f25d78b938768041c5c05b72a1f7ff3a7dee8275
2018-01-10 14:18:20 -08:00
Andrew Swan 45a6d26761 Bug 1402064 Refactor compatibility overrides r=kmag
Compatibility override data was previously stored in an object attached
to each AddonInternal instance and awkwardly copied around in various
places.  In the new AMO API, compatibility overrides come from a different
API endpoint -- lay the groundwork for maintaining that data separately
inside AddonRepository by creating a new internal API for fetching
compatibility override data.  Note there is some code related to staged
installs of non-restartless addons that refers to the old
compatabilityOverrides property, that code should ideally get removed
soon but for now it is unreachable.

MozReview-Commit-ID: EUZhPsTc2q

--HG--
extra : rebase_source : 23268c991e68a087e0882783156fb668301a52ef
2018-02-05 20:28:49 -08:00
Andrew Swan c95780c281 Bug 1402064 AddonRepository spring cleaning r=kmag
Remove unused imports of AddonRepository.jsm plus some more
leftover bits from in-browser search results.

MozReview-Commit-ID: AZyAtnHvaMP

--HG--
extra : rebase_source : 6085ed3a22bd9a43f8882f604b97aa55b8b788c5
2018-01-10 11:41:26 -08:00
Valentin Gosu ec9082b60a Bug 1433958 - Change code that sets nsIURI.query to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: JKW8IsaFY10

--HG--
extra : rebase_source : 45ffa07c34739adf4de681fec1370645b0f74985
2018-02-26 20:43:46 +01:00
Valentin Gosu 84b854ce2c Bug 1433958 - Change code that sets nsIURI.userPass to use nsIURIMutator r=mayhemer
* Code in XMLHttpRequestMainThread is converted to set the username and password individually. This is because when the parameters are empty, it ended up calling SetUserPass(":") which always returns an error.

MozReview-Commit-ID: 3cK5HeyzjFE

--HG--
extra : rebase_source : f34400c11245d88648b0ae9c196637628afa9517
2018-02-26 20:43:46 +01:00
Valentin Gosu 7bd0336d01 Bug 1433958 - Change code that sets nsIURI.pathQueryRef to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: HVyZ3E1XuLN

--HG--
extra : rebase_source : fd122b3122e0f3eb371d429bd86ad35d09dcfbf6
2018-02-26 20:43:45 +01:00
Nick Alexander 03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Mark Banner 6afe18b30a Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq

--HG--
extra : rebase_source : 483ae0b54b9e781cceac2accdfb2255d725ace6a
2018-02-22 16:55:36 +00:00
Sebastian Hengst 7be9fed7d0 merge mozilla-inbound to mozilla-central. a=merge 2018-02-24 02:58:35 +02:00