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

48054 Коммитов

Автор SHA1 Сообщение Дата
Andrew Swan 4ad9f49ebe Bug 1447551 Part 2: Convert webRequest to persistent events r=mixedpuppy,kmag
MozReview-Commit-ID: ANprpK8Kw5Q

--HG--
extra : rebase_source : fb3283c36cd392dbb1713e856204226df840930d
2018-04-20 11:41:30 -07:00
Andrew Swan 7af2a23072 Bug 1447551 Part 1: Fix some issues with persistent EventManagers r=kmag
- Un-lazify the startup promises in ext-toolkit.js since the
  manifest background property is handled asynchronously, so it
  races with startup and can miss the relevant events if it
  loses the race.
- Ensure that persistent events don't cause breakage when the
  background-delayed-startup preference is set to false.
- Add a wakeup() method to the fire object provided to primed
  listeners.  This method returns a Promise that resolves when
  the extension background page has started.  Events that need to
  do some work in the context of the extension can wait on the
  result of wakeup(), then continue processing after the background
  page is started, using fire.[a?]sync as normal.

MozReview-Commit-ID: HiYOguVdEQK

--HG--
extra : rebase_source : 249235553d591fec2110c213ab8b4637fe1aaf08
2018-04-20 16:09:13 -07:00
Brindusan Cristian 5e1a611a89 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-25 00:59:04 +03:00
Brindusan Cristian 59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Kris Maglione 320f51fd2c Bug 1456262: Optimize addAddonsToCrashReporter at startup. r=aswan
This consistently shows up in profiles as taking about 6-10ms during startup.

Part of the problem is that it loads TelemetrySession.jsm, which we can't fix.

Part of the problem is that the escaping and string manipulation it does is fairly expensive. We can cache the escaped values in addonStartup.jsm to avoid that.

A lot of the problem is that we call it every time we load a bootstrap scope, even though we already set the correct value before we start loading any bootstrapped scopes, and it doesn't change after that. We can avoid this by skipping the redundant calls during startup.

MozReview-Commit-ID: 68EWdnJdPvk

--HG--
extra : rebase_source : a2ad982214634304be5adc17661c9997fc94a708
extra : amend_source : aa2038ff9d655e8d5628c70615c04f7a5101fe28
2018-04-22 15:58:02 -07:00
James Willcox c37c419263 Bug 1456203 - Take patch from upstream lss to fix use of disallowed syscalls on Android r=ted
https://chromium-review.googlesource.com/c/linux-syscall-support/+/699213

MozReview-Commit-ID: 7hjCWfwcuHR
2018-04-24 14:22:25 -05:00
Kris Maglione fb878aebe0 Bug 1455964: Make encodeBlob fallible on OOM. r=zombie
MozReview-Commit-ID: 83t9c9we5zg

--HG--
extra : rebase_source : 08568d79b13ac498fb5f30b268a202d8219711b9
extra : amend_source : b6092955eddc48d48cb6510384f068f85ab062bf
2018-04-22 12:20:20 -07:00
Kris Maglione 4e1f530c08 Bug 1455406: Convert test_same_site_cookies_webextension to an xpcshell test. r=mixedpuppy
MozReview-Commit-ID: BFAmZUn349n

--HG--
rename : toolkit/components/extensions/test/mochitest/test_same_site_cookies_webextension.html => toolkit/components/extensions/test/xpcshell/test_ext_same_site_cookies.js
extra : rebase_source : 1b7bfbdedf7e023ebbd66568f39ff4c27b031640
extra : amend_source : 9e56278784b6ff7b17daaeaf20a74fdc9d1ac346
2018-04-19 12:49:19 -07:00
Kris Maglione 5368c68c85 Bug 1363925: Follow-up: Fix JSDoc issues. r=zombie DONTBUILD
MozReview-Commit-ID: 4MlDEcrLOS5

--HG--
extra : rebase_source : d750fbadf20517922879bce386f920e380146fe6
2018-04-24 12:03:51 -07:00
Kris Maglione a8e81034c4 Bug 1363925: Follow-up: Cleanup merge artifacts from bug 1433574. r=trivial
MozReview-Commit-ID: EFrwjQkk7OO

--HG--
extra : rebase_source : bdde36041472d2b887d4a586afd5ede0518afcec
2018-04-24 12:05:26 -07:00
Andrew Swan 7b20ac46dc Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 6c70243496248b617d3bf5d7244388d0c30004f8
2018-04-23 14:59:11 -07:00
Eugen Sawin 50c7b89566 Bug 1437551 - [2.6] Add GeckoRuntime telemetry API backend. r=jchen,Dexter 2018-04-24 18:23:08 +02:00
Noemi Erli b76009286a Bug 1333264 - disabled test_master_password.html on Linux 32 debug for frequent failures. r=jmaher 2018-04-24 01:41:00 +03:00
Tom Ritter 3705fef918 Bug 1446346 Do not clamp or jitter the AudioContext's CurrentTime if its interval is larger than our precision. r=jib
MozReview-Commit-ID: Bc1cto3pBKL

--HG--
extra : rebase_source : ace58df9f1669beacc176ab968f45a09ca44be2e
2018-04-17 15:35:51 -05:00
Aditya Bharti 7d52995eaf bug 1442664 - JSKeyedHistogram_Add accumulates multiple samples in one call r=chutten
Factored out common code between JSHistogram_Add and JSKeyedHistogram_Add
to get values from array, and handle case of single accumulation.
Uses type checking utility function introduced in bug 1428893.

--HG--
extra : rebase_source : 9a8cf6f192d457dae89142a8365a6c5fed7d2f96
2018-04-23 04:43:34 +05:30
Margareta Eliza Balazs 36dec78aec Merge inbound to mozilla-central. a=merge
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 12:42:08 +03:00
Kris Maglione 39792c8bdf Bug 1449071: Disable browser_file_xpi_no_process_switch for too frequent failures. r=me,test-only DONTBUILD
MozReview-Commit-ID: IUOwdb4XHv3
2018-04-23 21:30:39 -07:00
Kris Maglione 7f57158c87 Bug 1363925: Follow-up: Fix more rebase bustage. r=bustage
MozReview-Commit-ID: CpJkphCaNuE
2018-04-23 21:15:56 -07:00
Kris Maglione b34897b3b6 Bug 1456291: Follow-up: Fix dummy GMP data. r=bustage
MozReview-Commit-ID: 94xc6yDoHls

--HG--
extra : rebase_source : 4fc3d8b7f8b058b568d1f3455a43aee9f9a870e8
2018-04-23 20:50:54 -07:00
Kris Maglione c655361fd7 Bug 1363925: Follow-up: Fix eslint bustage after rebase. r=bustage DONTBUILD
MozReview-Commit-ID: JOPfyCxb65B
2018-04-23 20:37:06 -07:00
Kris Maglione e109e359c0 Bug 1363925: Part 8e - Convert AddonInternal classes to ES6 classes. r=aswan
MozReview-Commit-ID: LUwU0JbRn2H

--HG--
extra : rebase_source : f4bbed728a20c799c239640f6676e35ebf0324ef
extra : histedit_source : 2f6dce596319efb28181bafcb7a0eefd3c15b0a9
2018-04-22 15:21:30 -07:00
Kris Maglione 294399b3fb Bug 1363925: Part 8d - Move updateAddonDisabledState to XPIDatabase. r=aswan
This code is large and complex, and can only be called when we have an
AddonInternal object from XPIDatabase.jsm. It should live with that code.

MozReview-Commit-ID: 3ssV5aH9NUJ

--HG--
extra : rebase_source : d54474f67213420678706f04291b246ceee154de
extra : histedit_source : d1a3ca6fd05856a6675380717351e2e1d1568cf1
2018-04-22 15:00:08 -07:00
Kris Maglione 4f17dc56da Bug 1363925: Part 8c - Move isUsableAddon to XPIDatabase.jsm. r=aswan
MozReview-Commit-ID: 1aIA9Lu5sS2

--HG--
extra : rebase_source : ed39e7050d21d116338000234ab0cc4c6d34cf51
extra : histedit_source : f23e525032390d32e203d0b505cbf19d228d5ff6
2018-04-22 14:52:27 -07:00
Kris Maglione 980c561d2e Bug 1363925: Part 8b - Move AddonInternal to XPIDatabase.jsm. r=aswan
AddonInternal objects are only ever created after the database is loaded, so
there's no reason to load that code beforehand. More importantly, creating
the AddonWrapper class is expecially expensive, since most of their properties
are created dynamically. We should avoid doing that at startup when at all
possible.

MozReview-Commit-ID: AaRVN12e1qM

--HG--
extra : rebase_source : d5f9da1f8a54cdeecc45aa9857c6a6329821bb34
extra : histedit_source : 73c67373ad04a397bf9b2c2174c637f8ba645a95
2018-04-22 14:45:02 -07:00
Kris Maglione a6683dff36 Bug 1363925: Part 8a - Migrate XPIProviderUtils.js to XPIDatabase.jsm. r=aswan
MozReview-Commit-ID: CNfHgCYCkNd

--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
extra : rebase_source : 968e0072b9dfaf7d9f3f9b2c551ae34582ff1934
extra : histedit_source : a5ad9c4e61f8a92f3830953d3db88213f12a5c8b
2018-04-22 14:22:59 -07:00
Kris Maglione 17554348ca Bug 1363925: Part 7c - Turn on valid-jsdoc rule for XPIProviderUtils.js. r=me,npotb
MozReview-Commit-ID: ENdbZ8dicVX

--HG--
extra : rebase_source : 5b87da8abd55ed49d2b03c686545ad4cbacb09c6
extra : histedit_source : 098718bfd845fcc1b3bfff4aecafcdf1d84a82c3
2018-04-22 14:05:17 -07:00
Kris Maglione fdcc021e51 Bug 1363925: Part 7b - Turn on valid-jsdoc rule for XPIProvider.jsm. r=me,npotb
MozReview-Commit-ID: BQ6N84B2pC3

--HG--
extra : rebase_source : 04b9d4f3331d0de1ef8225b56e0f069265d7d4f4
extra : histedit_source : 287ad8e3c17f19cc7d140fed4f4ef5f4a36a0dc9
2018-04-21 20:51:52 -07:00
Kris Maglione 65b6ddb7e2 Bug 1363925: Part 7a - Turn on valid-jsdoc rule for XPIInstall.jsm. r=me,npotb
MozReview-Commit-ID: Ch1NaeLAxtJ

--HG--
extra : rebase_source : 26ebeec5db42c7ed27bb536cbfb81c41983cb1cc
extra : histedit_source : 4764ba7f0c7239fdca1fb2540e1e92ed07a4569f
2018-04-21 20:28:19 -07:00
Kris Maglione d099436c30 Bug 1363925: Part 6 - Move staged add-on install logic to XPIInstall. r=aswan
MozReview-Commit-ID: IDXsbKvl5U3

--HG--
extra : rebase_source : a17fb46c989f05c4519b9bce380d89eaca118edd
extra : histedit_source : e3065c8f52311f67eefdb51b13abe26bbba9adaf
2018-04-21 19:47:16 -07:00
Kris Maglione 58a8659f77 Bug 1363925: Part 4 - Move XPIProvider install methods to XPIInstall. r=aswan
MozReview-Commit-ID: DiPA01emGA9

--HG--
extra : rebase_source : e7e755c7ced75b2d884e85349989326d57cdd533
extra : histedit_source : e1227a92de4edbb1994c4f8981d4fc7ec46a637e
2018-04-21 19:06:44 -07:00
Kris Maglione 33ff77dabf Bug 1363925: Part 3 - Move more install logic from XPIProvider to XPIInstall. r=aswan
MozReview-Commit-ID: 87PXV43Lpn9

--HG--
extra : rebase_source : dfc38cfb001455243449d7fe0da7f9294e88c8c2
extra : histedit_source : 6e561d0601dcca8da34c926b72e65a126bd40572
2018-04-21 18:29:33 -07:00
Kris Maglione e115a440b6 Bug 1456291: Avoid loading the blocklist service before UI is interactive. r=Gijs
The TelemetryEnvironment initialization process currently forces a load and
initialization of the blocklist service only to check its isLoaded flag. This
adds measurable overhead to startup, and without those checks, the service
would not be initialized until after first paint.

We should defer even checking whether the blocklist is loaded until after
startup has finished.

MozReview-Commit-ID: 73c4o5oVqze

--HG--
extra : rebase_source : f97ad4e9f2c96668b4418a1c7fb47a07bc798da7
extra : amend_source : 874240858529280e88f960e40920f009ccccfcbc
2018-04-23 15:03:00 -07:00
Kris Maglione 86b3ec9863 Bug 1372694: Part 2 - Remove support for registering non-bootstrapped extension chrome. r=aswan
MozReview-Commit-ID: FpTfAHWpTnt

--HG--
extra : rebase_source : 0a22166f56a6316957b372f1f45b20822df0d784
extra : amend_source : 0a0d30a995fc032672cf5283627c55b3c26955ac
2018-04-20 17:00:29 -07:00
Andreea Pavel a608b0b7f9 Backed out changeset cf1022433399 (bug 1433574) Linux build bustages on a CLOSED TREE 2018-04-24 04:35:07 +03:00
Ciure Andrei 84bde96dc6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-24 04:26:26 +03:00
Andrew Swan a359959d1e Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : a95e8b61647d7fb91a3d5b455ba55a056fe0c2bc
2018-04-23 14:59:11 -07:00
Ciure Andrei 33e644e1da Merge inbound to mozilla-central. a=merge 2018-04-24 04:14:21 +03:00
Justin Wood d289c494d6 Bug 1455100 - Make devedition its own language pack addon id, by using MOZ_LANGPACK_EID again. r=nalexander,Pike
MozReview-Commit-ID: z1SJmCQflq

--HG--
extra : rebase_source : 4d5b6941f907e0e062a7f4466a246696290823fe
2018-04-19 14:48:11 -04:00
Aaron Klotz 1244a64ac7 Bug 1455110: Replace RegOpenKeyEx/RegQueryValueEx with RegGetValue; r=jimm 2018-04-18 14:52:02 -06:00
Bogdan Tara 839cc5dd48 Backed out 4 changesets (bug 1437551) for build bustages on Android /builds/worker/workspace/build/src/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java a=backout CLOSED TREE
Backed out changeset 781457239e63 (bug 1437551)
Backed out changeset 2f30bed54236 (bug 1437551)
Backed out changeset 6badc13e1d21 (bug 1437551)
Backed out changeset 5582b64d4a8b (bug 1437551)
2018-04-24 01:27:50 +03:00
Eugen Sawin 3aa42d1204 Bug 1437551 - [2.6] Add GeckoRuntime telemetry API backend. r=jchen,Dexter CLOSED TREE 2018-04-23 23:21:50 +02:00
Bogdan Tara a95b957c7e Backed out 2 changesets (bug 1437551) for build bustages on Android /builds/worker/workspace/build/src/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java a=backout CLOSED TREE
Backed out changeset 4b780b06d2eb (bug 1437551)
Backed out changeset a401bb9e1aa4 (bug 1437551)
2018-04-23 23:50:55 +03:00
Eugen Sawin 31f7c96bf3 Bug 1437551 - Fix eslint error on CLOSED TREE. r=me 2018-04-23 21:08:09 +02:00
Eugen Sawin 6cec4c4563 Bug 1437551 - [2.5] Add GeckoRuntime telemetry API backend. r=jchen,Dexter 2018-04-23 20:04:00 +02:00
Haik Aftandilian 725229a2eb Bug 1395504 - Infinite hang of web content process when parent process crashes r=gsvelto
Don't free memory in exception handling context to avoid deadlocks
and process state corruption. Replace old_handler_.reset() with
old_handler_.release() to intentionally leak the sigaction struct instead.

MozReview-Commit-ID: lUNygOJCUL

--HG--
extra : rebase_source : 1f50b7d22cc2fa32d3e31125e563df6203a48612
2018-04-11 11:53:06 -07:00
Shane Caraveo d17ee934ac Bug 1455705 fix how browserSettings.proxyConfig sets network prefs, r=rpl
proxyConfig set urls onto the pref rather than host names.  This adds a round-trip test
with a test that uses the proxy after setting the config.  Also fixes setting prefs
when httpProxyAll is true.

MozReview-Commit-ID: FpXKjnOXEkl

--HG--
extra : rebase_source : 885f43e6cc5b1d22081875eb8e5f7a0523ecf3d1
2018-04-20 19:43:36 -05:00
Andreea Pavel 3cfb05a97a Backed out 3 changesets (bug 1434662) for android and OS X mass failures at /builds/worker/workspace/build/src/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp:512 on a CLOSED TREE
Backed out changeset 983099e546d8 (bug 1434662)
Backed out changeset 39b9f46104ad (bug 1434662)
Backed out changeset 6f652d798a0c (bug 1434662)
2018-04-23 23:09:32 +03:00
Brian Grinstead 7f1f1892fb Bug 1455359 - Remove autoCheck attribute from nsIDOMXULCheckboxElement and nsIDOMXULButtonElement; r=enndeakin+6102
MozReview-Commit-ID: FUxsIf23z7e

--HG--
extra : rebase_source : 29cd8b2e90e4161fb288a6b6206c27de1d225f5e
2018-04-21 07:03:23 -07:00
Tim Nguyen 92c9a958e1 Bug 1372694 - Stop making the default theme a heavyweight theme. r=kmag,aswan
MozReview-Commit-ID: 30wMauuc9oo

--HG--
rename : browser/base/content/default-theme-icon.svg => toolkit/mozapps/extensions/content/default-theme-icon.svg
extra : rebase_source : 5e4cf784135f4a8e40a2ed8357ba651e7fce9728
2018-04-01 13:53:31 +02:00
Paul Bone ba14455b5f Bug 1443396 - Use colours that contrast well on about:memory r=jaws,snorp
The about:memory page specified some colours using constants and others
using variables whose values can change.  If those variables changed, for
example due to the desktop toolkit using a dark theme, then it could create
poor contrast with the constants in these CSS files (desktop & mobile).

This change ensures that only the Mozilla system colour extensions and
Mozilla colour preference extensions colours are used.  Creating
fore/back-ground combinations that hopefully contrast well regardless of the
desktop theme.

--HG--
extra : rebase_source : f916aac0bb07c3a75ab45ece3fd58d1cdcf8bf46
extra : source : a78bc7ff3de5a0ea4aea060731253fed63a59d00
2018-04-23 12:40:09 +10:00