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

6682 Коммитов

Автор SHA1 Сообщение Дата
Andrew Swan eb7a63d1f3 Bug 1373453 Part 1 Move repeated webextension startup check to AddonTestUtils r=kmag
MozReview-Commit-ID: 5uhi7VSbZNi

--HG--
extra : rebase_source : 4a62a493b1ebf109703bcfd3f9333068cbfe579e
2017-06-15 16:33:28 -07:00
Masatoshi Kimura 3231cb3535 Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt

--HG--
extra : rebase_source : 50d3f4680a498125ddf600b0d64f6740b0229f80
2017-06-17 19:30:09 +09:00
Andrew Swan 7af21240da Bug 1373386 Make xpcshell signing shims mark extensions as privileged by default r=rhelmer
MozReview-Commit-ID: B6zFBwbjhax

--HG--
extra : rebase_source : 4337a821bd3d1fe9609d1ffa9ae0a57e5b1aba3e
extra : source : bdc1d2d7a61586829d2926be2a9e3d4e16ef9e33
2017-06-08 12:52:50 -07:00
Robert Strong f9ae3f3f52 Bug 1373267 - Remove hashFunction and hashValue attributes from nsIUpdatePatch and code related to these attributes. r=mhowell
--HG--
rename : toolkit/mozapps/update/tests/unit_aus_update/downloadAndHashCheckMar.js => toolkit/mozapps/update/tests/unit_aus_update/downloadInvalidMar.js
2017-06-15 17:15:28 -07:00
Sebastian Hengst 1b26da1b2f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-15 11:17:07 +02:00
Robert Strong 31214d5a1c Bug 1372523 - Update tests for the removal of the isSecurityUpdate, showNeverForVersion, and showPrompt attributes from nsIUpdate. r=mhowell
Converts the test functions getLocalPatchString, getLocalUpdateString, getRemotePatchString, and getRemoteUpdateString to use an object as a param.
2017-06-14 16:18:42 -07:00
Robert Strong 604fac26dd Bug 1372523 - Remove the isSecurityUpdate, showNeverForVersion, and showPrompt attributes from nsIUpdate and the use of these attributes. r=mhowell 2017-06-14 16:18:05 -07:00
Rajesh Kathiriya 6d3eb2c851 Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
MozReview-Commit-ID: AH9ArRkjh78

--HG--
extra : rebase_source : bdd4c4f8a4779ea373479a9cba772c036e00e816
2017-06-13 00:23:54 +05:30
tiago 2b272f39f6 Bug 1354186 - Change managerListeners, installListeners, addonListeners and typeListeners from Array to Set. r=aswan
MozReview-Commit-ID: CZ5HlhWihHO

--HG--
extra : rebase_source : 22bda95fde5d59a62eeedaa602b4ec0aee8f7a4b
2017-05-19 01:56:05 -03:00
Carsten "Tomcat" Book d67ef71097 merge mozilla-inbound to mozilla-central a=merge 2017-06-13 12:09:48 +02:00
Perry Jiang 53a717beee Bug 1357300 - Enable flash plugin preferences even when set to 'Never Activate'. r=rhelmer
MozReview-Commit-ID: BSJcWoUFXVb
2017-06-12 13:20:03 -07:00
Andrew Swan 4a96af84c8 Bug 1330227 Tighten up mtime checking test_update.js r=rhelmer
MozReview-Commit-ID: Lk88rlRawZm

--HG--
extra : rebase_source : 793b14afdc0d755998a26c4fc903d1162070e982
2017-06-12 14:27:01 -07:00
Andrew Swan 48b16275b6 Bug 1371788 Localize Legacy Extensions panel title r=flod
MozReview-Commit-ID: Ddw8b4TeEC2

--HG--
extra : rebase_source : 034d46ecd64152876e5819235452ea7f47586275
2017-06-09 11:50:36 -07:00
Tom Ritter 64833e8aa1 Bug 1367847 Support makensis on MinGW Linux for Windows builds r=glandium
This involves a few changes:
- Remove the .exe from the makensis binaries. which.which will
  auto-add it so Windows will keep working - and with it
  present we were finding makensis.exe on Linux and trying to
  run it, which isn't going to work
- Doesn't bother checking if nsis is 32bit if we're running on
  Linux
- Add the -nocd option to nsis (on Linux) because it takes the
  current working directory from the target of a symlink rather
  than the symlink itself. See
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704828

MozReview-Commit-ID: CVT8LwS1t8w

--HG--
extra : rebase_source : 2a62327326ba80dfd728048d19f0ff1c90100838
2017-06-07 20:56:21 -05:00
Andrew Swan 2a3d439781 Bug 1360777 Move legacy extension to a separate pane in about:addons r=rhelmer
MozReview-Commit-ID: AJXwJtk8Cd6

--HG--
rename : toolkit/mozapps/extensions/test/browser/browser_legacy.js => toolkit/mozapps/extensions/test/browser/browser_legacy_pre57.js
extra : rebase_source : 553a701b7985af56a2e19bd1c31b292bfe95da04
2017-05-12 21:29:38 -07:00
Robert Strong b8bce5af15 Bug 1370634 - Make the time to wait the callback application (e.g. firefox.exe) to exit in the updater to be greater than the application's watchdog timer. r=mhowell 2017-06-06 20:27:21 -07:00
Robert Strong 25f82c418c Bug 1365845 - Reset app.update.cancelations after a successful update. r=mhowell 2017-06-06 20:26:14 -07:00
Sebastian Hengst e9ee226b01 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-05 11:08:00 +02:00
Sebastian Hengst 2abbd7e74c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: G0dLvIdtcAi
2017-06-05 11:05:49 +02:00
Kris Maglione 0693075985 Bug 1368232: Handle invalid paths in addonStartup.json when profiles are shared between OSes. r=rhelmer
MozReview-Commit-ID: 1q0k3y4T7rq

--HG--
extra : rebase_source : 54a85586f9139cc5b56a97d0a8d6f75cd2570c11
2017-05-27 12:06:42 -07:00
Jared Hirsch f2ce0dde51 Bug 1366827 - Enable WebExtension experiments in Beta and Release. r=aswan
MozReview-Commit-ID: 1Z5p4AoelPu

--HG--
extra : rebase_source : fcb842f8998c70ca7d87bf7af96f7454fe1fc512
2017-06-02 12:04:01 -07:00
Sebastian Hengst 5e4755df68 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IdRgoZ9hiXq
2017-06-03 20:15:27 +02:00
Joel Maher b44356bc28 Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Gregory Szorc 612630dd35 Bug 1359965 - Support and generate tar.gz WPT archive; r=glandium
Several years ago there was a single zip file for all test files. Clients
would only extract the files they needed. Thus, zip was a reasonable
archive format because it allowed direct access to members without
having to decompress the entirety of the stream.

We have since split up that monolithic archive into separate,
domain-specific archives. e.g. 1 archive for mochitests and one
for xpcshell tests. This drastically cut down on network I/O
required on testers because they only fetched archives/data that
was relevant. It also enabled parallel generation of test archives,
we shaved dozens of seconds off builds due to compression being
a long pole.

Despite the architectural changes to test archive management, we
still used zip files. This is not ideal because we no longer access
specific files in test archives and thus don't care about single/partial
member access performance.

This commit implements support for generating tar.gz test archives.
And it switches the web-platform archive to a tar.gz file.

The performance implications for archive generation are significant:

before: 48,321,250 bytes; 6.05s
after:  31,844,267 bytes; 4.57s

The size is reduced because we have a single compression context
so data from 1 file can benefit compression in a subsequent file.
CPU usage is reduced because the compressor has to work less with
1 context than it does with N. While I didn't measure it, decompression
performance should also be improved for the same reasons. And of course
network I/O will be reduced.

mozharness consumers use a generic method for handling unarchiving.
This method automagically handles multiple file extensions. So as long
as downstream consumers aren't hard coding ".zip" this change should
"just work."

MozReview-Commit-ID: LQa5MIHLsms

--HG--
extra : rebase_source : 100092c2f2ff609362a724fff60f46dd6e49c94e
extra : intermediate-source : d10f5ccd882b965fcad39914f7c3c930d1301a41
extra : source : a0e257e346ccf3c1db332ec5903241f4eeb9a7ee
2017-05-08 17:19:05 -07:00
Alex Gaynor 8d4c861219 Bug 1363760 - Part 2 - Corrected the permission that is reset at the end of a test r=aswan
Without this change, browser_update.js "resets" a preference that it never
changed to a different value, which leaks through to future tests. This was
introduced in a8fcca075fde, and appears to be a simple mistake since that change
removes a setup/teardown pref change pair, but the prefs it changes are two
different ones!

This leaked pref change leads to test failures when special powers and mochitest
are installed as non-temporary addons.

MozReview-Commit-ID: 2jx3fB1iZMx

--HG--
extra : rebase_source : 35394dda16814d80116854bd40c00c95f30d34e2
2017-05-30 10:08:55 -04:00
Kris Maglione 0cd3e0a862 Bug 1368189: Move more code out of ExtensionUtils.jsm. r=mixedpuppy
Also removes some dead code.

A lot of the code in ExtensionUtils.jsm is not needed in all processes, and a
lot of the rest isn't needed until extension code runs. Most of it winds up
being loaded into all processes way earlier than necessary.

MozReview-Commit-ID: CMRjCPOjRF2

--HG--
extra : rebase_source : 37718eaf05a22b8ccb95f633cf7454bd7975cdce
2017-05-26 15:44:41 -07:00
Kris Maglione bfc7032cb4 Bug 1368152: Part 3 - Remove ExtensionManagement.getURLForExtension. r=aswan
MozReview-Commit-ID: 4KalPWYQeks

--HG--
extra : rebase_source : fed07c753b1bd0f44d85d7bdfceab7d4296aa9df
2017-06-03 22:29:27 -07:00
Kris Maglione ea7ac960ed Bug 1368152: Part 1 - Move API extension registration to ExtensionAPI.jsm. r=aswan
MozReview-Commit-ID: 3kCXYXVxLRS

--HG--
extra : rebase_source : f63f1ea7de199a77167c90f9c8f6d724d10598b3
2017-05-26 12:12:13 -07:00
Kris Maglione bc5050f651 Bug 1368102: Part 5 - Move static content script matching into C++. r=mixedpuppy,zombie
MozReview-Commit-ID: Co04MoscqMx

--HG--
extra : rebase_source : 4a9b4c3146f99b4fd7eb8724224e954a5b3967f2
2017-06-04 15:38:11 -07:00
Kris Maglione a2f509792d Bug 1368102: Part 1 - Make AddonManagerWebAPI::IsValidSite public. r=aswan
MozReview-Commit-ID: JNNyfY8eabB

--HG--
extra : rebase_source : bc49ee18d158a41f6102684e24305c15ee237c58
2017-05-23 12:35:35 -07:00
Kris Maglione 87f57f76b7 Bug 1322235: Part 3 - Use MatchPatternSet for whiteListedHosts and webRequest. r=aswan,zombie
This is the second step to migrating the policy service to pure native code,
with similar impacts and reasoning to the previous patch.

MozReview-Commit-ID: L5XdPzWNZXM

--HG--
extra : rebase_source : dda006a0afb9d56e2738dbc0b0d94ba0496db5c9
2017-06-03 22:11:20 -07:00
Timothy Guan-tin Chien 0d616cb6d0 Bug 1363850, Part III, Set pref to make new about:preferences Nightly only, r=jaws,mconley
MozReview-Commit-ID: Khanjh79tPd

--HG--
extra : rebase_source : 84d197b1b1915d767049bfc0280c070e89c286d1
2017-05-25 18:12:00 +08:00
Doug Thayer dcd122aa51 Bug 1365204 - Add update badge histogram r=bsmedberg,rstrong
Currently we can't differentiate between when a badge is shown
and a doorhanger is shown. This creates an additional problem
where if the badge progresses into a doorhanger after a window of
time has passed, it registers as two notifications shown, when
logically it is one. This splits out badges and doorhangers to
remedy that.

MozReview-Commit-ID: CTTaWDG1tah

--HG--
extra : rebase_source : 2b13b703ac4e12caa040138dadd2875df76ff61a
2017-05-24 09:32:01 -07:00
Paolo Amadini 30ea634bb0 Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz

--HG--
extra : rebase_source : 5a10a3ebbfe0ce2a801330041f95447c313a9a70
extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
2017-05-25 15:00:49 +01:00
Sebastian Hengst ea55cd0be2 Backed out changeset 6f0394b523a6 (bug 1242505) 2017-05-28 11:31:01 +02:00
Paolo Amadini 94c629ed8c Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz

--HG--
extra : rebase_source : 3a7720091180a770b32b595f8094c0d20170166d
2017-05-25 15:00:49 +01:00
Matthew Wein 1417b513dc Bug 1330369 - Part 1 - Share the extension stylesheets between sidebar, popups, and options r=mixedpuppy
MozReview-Commit-ID: EquM6hSQ8pH

--HG--
extra : rebase_source : 45de777fd1e2a387a4f42168d6d04e9f988917a5
2017-05-19 15:48:44 -04:00
Ryan VanderMeulen d3f265330e Merge m-c to autoland. a=merge 2017-05-25 16:44:01 -04:00
Ryan VanderMeulen 8543438674 Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
Ryan VanderMeulen b8ba243c22 Merge autoland to m-c. a=merge 2017-05-25 16:31:52 -04:00
Robert Strong 0059f15fa9 Bug 1301517 - Cleanup the setting of post update values added by bug 1301288. r=mhowell
With these changes the latest update in updates.xml is always the latest update in progress even before applying the update. This makes it so that after a successful update the code in nsBrowserContentHandler.js will always get the correct custom update property.
2017-05-25 09:52:51 -07:00
Justin Wood a14524a72d Backed out changeset d10f5ccd882b, for Nightly bustage from Bug 1359965 c#29
MozReview-Commit-ID: 6ddN0Y55Bsk
2017-05-25 09:08:54 -04:00
Gregory Szorc 74778951f0 Bug 1359965 - Support and generate tar.gz WPT archive; r=glandium
Several years ago there was a single zip file for all test files. Clients
would only extract the files they needed. Thus, zip was a reasonable
archive format because it allowed direct access to members without
having to decompress the entirety of the stream.

We have since split up that monolithic archive into separate,
domain-specific archives. e.g. 1 archive for mochitests and one
for xpcshell tests. This drastically cut down on network I/O
required on testers because they only fetched archives/data that
was relevant. It also enabled parallel generation of test archives,
we shaved dozens of seconds off builds due to compression being
a long pole.

Despite the architectural changes to test archive management, we
still used zip files. This is not ideal because we no longer access
specific files in test archives and thus don't care about single/partial
member access performance.

This commit implements support for generating tar.gz test archives.
And it switches the web-platform archive to a tar.gz file.

The performance implications for archive generation are significant:

before: 48,321,250 bytes; 6.05s
after:  31,844,267 bytes; 4.57s

The size is reduced because we have a single compression context
so data from 1 file can benefit compression in a subsequent file.
CPU usage is reduced because the compressor has to work less with
1 context than it does with N. While I didn't measure it, decompression
performance should also be improved for the same reasons. And of course
network I/O will be reduced.

mozharness consumers use a generic method for handling unarchiving.
This method automagically handles multiple file extensions. So as long
as downstream consumers aren't hard coding ".zip" this change should
"just work."

MozReview-Commit-ID: LQa5MIHLsms

--HG--
extra : rebase_source : cd029cdbbcccc1d16f03d63a5f1fdf60be5db4fd
extra : source : a0e257e346ccf3c1db332ec5903241f4eeb9a7ee
2017-05-08 17:19:05 -07:00
Chris AtLee 2dd73df1e4 Bug 1363853: Remove LWT footers r=Gijs
MozReview-Commit-ID: 90sm2IcUmxf

--HG--
extra : rebase_source : 4be48d509c685763b2e5a94bd228bb9c56a6074a
2017-05-24 09:21:51 -04:00
Michael Kaply 213b7330ed Bug 1359837 - Block mozAddonsManager if xpinstall.enabled is false/locked. r=mossop
MozReview-Commit-ID: 3BUxRLMjYkF

--HG--
extra : rebase_source : 273f1c02b7c54f00bbd3b0da40cf2d5c2645af79
2017-04-28 10:42:05 -05:00
tiago 95d9608ba4 Bug 1367198 - Remove duplicate ESLint rule definitions from various .eslintrc.js files. r=standard8
MozReview-Commit-ID: AUz5l7XPfwY

--HG--
extra : rebase_source : 2cb4758cdf51765fc61fbc6795fcd7bc85ef67bf
2017-05-24 13:55:24 -03:00
Andrew Swan 9c5a5ac364 Bug 1363925 Split some install code out of XPIProvider.jsm r=kmag
MozReview-Commit-ID: 3r08A15DtMu

--HG--
rename : toolkit/mozapps/extensions/internal/XPIProvider.jsm => toolkit/mozapps/extensions/internal/XPIInstall.jsm
extra : rebase_source : b065c447bfd25af3a6d7e40de3a603d2c538f96b
extra : intermediate-source : 1e7bb375bffe5e66ed3ec0f5ca84e304c1f7c427
extra : source : 1b913dfe9924a39fe9243580772d5f2e5eae2e4a
2017-05-21 08:46:01 -07:00
Sebastian Hengst 795da9ebf8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HGZE1dfSDNK
2017-05-24 11:25:03 +02:00
Chris Peterson f4b7ac79bd Bug 1366656 - XPIProvider.jsm: Replace deprecated String.localeCompare with simple compare function. r=kmag
I see the following JavaScript warning in stdout when I run Firefox tests from the console.

JavaScript warning: resource://gre/modules/addons/XPIProvider.jsm, line 2970: String.localeCompare is deprecated; use String.prototype.localeCompare instead

MozReview-Commit-ID: ERiTd3rQ4Wc

--HG--
extra : rebase_source : a8bf8daa18842b13ca263ec6292a1c215bc19a6d
2017-05-21 20:41:01 -07:00
Ryan VanderMeulen 27fd4cc7e2 Merge inbound to m-c. a=merge 2017-05-23 18:11:35 -04:00