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

525 Коммитов

Автор SHA1 Сообщение Дата
Florian Queze 4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Kris Maglione 726576d314 Bug 1356810: Follow-up: Fix SDK worker tests. a=merge
MozReview-Commit-ID: 8ObX3OKozCF

--HG--
extra : source : bf8468e259dce509bfe0c4cc51874a0797932e36
2017-04-19 14:10:52 -07:00
Mike Hommey 34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Zibi Braniecki a1a4f0b7c9 Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
Sebastian Hengst 7b30105d39 Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki cce53c69bc Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 2f166cf1746f389a035f7cf557edcadeacb10fa0
2017-03-11 18:43:11 -08:00
Florian Queze 4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Kris Maglione 56000a9cb0 Bug 1314861: Lazily load most SDK module imports. r=rpl
MozReview-Commit-ID: 3mneEkzljiU

--HG--
extra : rebase_source : 72e988994ec70c643d869949967bdec3202d92c9
2017-04-07 18:11:32 -07:00
Kris Maglione b9b75a06d8 Bug 1314861: Lazily load UI modules, as much as possible. r=rpl
MozReview-Commit-ID: JdHHw639Lwv

--HG--
extra : rebase_source : a575e65cb5d15913541cbbc02aec2da08167b7e6
2017-04-07 16:28:42 -07:00
Kris Maglione 27b14b143b Bug 1314861: Lazily create view for Panels. r=rpl
This is the one change that's slightly risky, since it may impact add-ons that
depend on panel documents loading immediately, rather than only when they're
needed. It may require some developer outreach.

MozReview-Commit-ID: 4ICPKcvLiQR

--HG--
extra : rebase_source : a08640c3a753b20c7457e7ec025698cce501b30f
2017-04-07 18:21:12 -07:00
Kris Maglione 1ed499730b Bug 1314861: Lazily initialize l10n code. r=rpl
MozReview-Commit-ID: DgmrEMQGrtw

--HG--
extra : rebase_source : 0017656c28df95d00f9d2990fd8e06964662a66c
2016-10-30 16:53:37 -07:00
Kris Maglione f8c1ebdfda Bug 1314861: Minor optimization: Avoid the more expensive parts of path joining and normalization where possible. r=ochameau
MozReview-Commit-ID: Jh71D8XulVp

--HG--
extra : rebase_source : 533d148ee91839e2cb56169cf32d0d8f97105754
2017-04-07 16:37:47 -07:00
Kris Maglione 0930ff384d Bug 1314861: Add caching to some of the more expensive and repetitive parts of module resolution. r=ochameau
MozReview-Commit-ID: 8vHcu4c8jDe

--HG--
extra : rebase_source : 051523f98e582b1246893e985a0464d671c0d822
2017-04-07 18:22:33 -07:00
Kris Maglione 7ad7cc25be Bug 1314861: Some trivial optimizations that add up something significant. r=ochameau
MozReview-Commit-ID: FmiH8daYxK8

--HG--
extra : rebase_source : 4a6b8dbfe38984f4b469157faf19c08284f06b56
2017-04-07 18:05:18 -07:00
Kris Maglione cbfb61ba92 Bug 1314861: Pre-compute path mapping function to save on runtime lookups. r=ochameau
MozReview-Commit-ID: Lc4ju1XOfgR

--HG--
extra : rebase_source : f5ab7bc0ab70945b88d3f76363107cac9c3ba256
2017-04-13 15:40:09 -07:00
Kris Maglione 0ee4a22385 Bug 1314861: Minor optimization: Define globals for shared sandbox modules on the sandbox rather than each module. r=ochameau
MozReview-Commit-ID: Lre6L2u4Y2r

--HG--
extra : rebase_source : 118422fee9361152037f7746fa4beaffa6d5157d
2017-04-14 16:13:41 -07:00
Kris Maglione 04e16d2f2a Bug 1314861: Add defineLazyGetter global to SDK loader modules. r=ochameau
MozReview-Commit-ID: L1NShFpnb2S

--HG--
extra : rebase_source : 8d4b132da64a3af03a120f45f160731295a8b086
2017-04-14 13:28:02 -07:00
Florian Queze ea6ac7cbf2 Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws. 2017-04-14 21:51:40 +02:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 159215e6f4 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Sebastian Hengst 42df6d8c4d Backed out changeset f85a9a62c5bb (bug 1356569) 2017-04-14 23:39:15 +02:00
Florian Queze 284974064e Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws. 2017-04-14 21:51:40 +02:00
Florian Queze 3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze a363fb8c8b Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Gijs Kruitbosch 519b14ab26 Bug 1356030 - move HiddenFrame.jsm to toolkit, r=kmag
MozReview-Commit-ID: DUuYqamNMdT

--HG--
rename : browser/modules/HiddenFrame.jsm => toolkit/modules/HiddenFrame.jsm
extra : rebase_source : 7624e178fd2ba0ca9ba6d624ff2d18156e8d90fe
2017-04-13 11:42:56 +01:00
Gijs Kruitbosch b8e6b96d70 Bug 1353104 - use HiddenFrame.jsm to create frames for add-on sdk add-ons, r=kmag
MozReview-Commit-ID: CfR9xMPVr9H

--HG--
extra : rebase_source : c50b354c9b7df2e31aa295d65eecfbeaa78c2c8f
2017-04-03 21:25:16 +01:00
Paul Bignier 166ed99e17 Bug 1352805 - Typo fixes in comments around "unfortunately". r=MattN
MozReview-Commit-ID: B76JuHabq9T
2017-04-03 09:23:00 -07:00
Kris Maglione 0c3cd67860 Bug 1350617: Remove unnecessary overhead from ui/button/view code. r=mossop
MozReview-Commit-ID: G3hCLaGraXp

--HG--
extra : rebase_source : dc8e306aa703d4712958b87aad35069d0a6b0007
2017-03-25 14:51:22 -07:00
Kris Maglione fb41ae3e0a Bug 1313767: Deobfuscate core/heritage.js r=rpl
MozReview-Commit-ID: 5raSFnOflxq

--HG--
extra : rebase_source : 6209308005f1d36dfbd95a0976c6712ccfecf53c
extra : histedit_source : d41b2c65580f720033e66aa075855f719054c365
2016-10-30 16:47:27 -07:00
Kris Maglione 28c12fe125 Bug 1313767: Deobfuscate events/core.js r=rpl
MozReview-Commit-ID: Ktj70L3DcQF

--HG--
extra : rebase_source : 26e8bd522e086b0e089f2bc1885ef932c9e1f249
extra : histedit_source : 97187dd90d6665f8ca2da4d8b66016a5da2c0b2a
2017-03-25 15:06:25 -07:00
Luca Greco 6e9cfad46e Bug 1275958 - Rewrite SDK 'Get Image' clipboard test to prevent its intermittent failures. r=mossop
MozReview-Commit-ID: DHC9lsmNOXl

--HG--
extra : rebase_source : 69c572ae0df1a16ae0866e5e04ed3d3764e8a72a
2017-03-16 14:23:37 +01:00
Till Schneidereit c7c5b5fa85 Bug 1067942 - Change error message for attempted getter-only property writes to include the property name. r=terrence,ms2ger
MozReview-Commit-ID: 2IyEPyAaoNt
2014-09-30 01:17:55 +02:00
David Rajchenbach-Teller 0b5fb6a989 Bug 1086549 - Converting add-on sdk tests from removePage to History.remove. Patch by Yoric, updated by Standard8. r=mak
MozReview-Commit-ID: KjIyAi1aUg6

--HG--
extra : rebase_source : fec13cc3487d05534e519e04c1e45c248795c6e4
2014-10-28 11:59:51 +01:00
Zibi Braniecki fbfa4998fa Bug 1346819 - Port SanitizeAsBCP47 to LocaleService. r=baku,jfkthame
MozReview-Commit-ID: 2SXD5HaJPXr

--HG--
extra : rebase_source : 44404dfd577f13fde722ef5c13a29f853766786d
2017-03-13 08:31:43 -07:00
Tooru Fujisawa 65e4d7e60d Bug 774744 - Clarify the parameter name or role of the value in some NOT_NONNULL_OBJECT error. r=jwalden 2017-03-07 19:54:23 +09:00
Zibi Braniecki c286b2ef87 Bug 1337551: Migrate Services.jsm to use LocaleService. r=mossop
MozReview-Commit-ID: G0HFXfg4r6Y

--HG--
extra : rebase_source : 2217abbb1371132b82574be690f9fab5c1b64fb7
2017-02-08 12:31:06 -08:00
Gijs Kruitbosch b0f2da2a20 Bug 1341097 - part 3: don't dispatch oodles of titlechanged notifications for new history entries, r=mak
MozReview-Commit-ID: 7jHOcCQ5ZBb

--HG--
extra : rebase_source : 6dff335e78857e7c860ebe7ec6ea415fe0f9e3f6
2017-02-27 18:26:21 +00:00
Kris Maglione 22b9022bfa Bug 1339483: Fix tab frame lookup performance issues. r=mossop
MozReview-Commit-ID: Fvx1J8bpzGg

--HG--
extra : rebase_source : d7cb4390308bfce599593f753793d4c329046768
2017-02-14 13:24:07 -08:00
Sebastian Hengst 0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Chris Peterson 7ed800f024 Bug 1242321 - Remove obsolete "media.eme.apiVisible" pref. r=cpearce sr=bz
MozReview-Commit-ID: D31Yg1LHI5u

--HG--
extra : rebase_source : 7c608ee93025840fc4f97977feec2ca65ceee263
2017-02-01 22:10:06 -08:00
Florian Quèze bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Joel Maher a0b005583d bug 1302854 - disable jetpack/test-context-menu.js subtest for frequent failures. r=kmag
MozReview-Commit-ID: 74CpzkiFVja
2017-01-29 06:51:43 -05:00
Florian Quèze b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze 0cb03c69e1 Bug 1334156 - replace ownerDocument.defaultView usages by hand in a few places, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze f187782ccf Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Florian Quèze 15bab6d46b Bug 1334250 - adapt the no-useless-removeEventListener rule to handle the listener being added and removed with the same variable + some hand fixes, r=jaws. 2017-01-27 10:47:57 +01:00