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

82 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione 6adf9223ce Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3730

--HG--
extra : rebase_source : 935f166ec2c6581ba6f3fffe912404e81c8dc3d6
extra : histedit_source : ba701801de5205dcce6cfdccabe7b26aa7c7859c
2018-08-18 19:27:50 -07:00
manikishan 92de2db258 Bug 1431050 - Replace NS_ASSERT with conditional exceptions/console.assert and remove the debug.js module. r=mak
console.assert keeps the same semantics as NS_ASSERT in that it doesn't throw an exception,
but a lot of the places code was using it in a way that would be better served by throwing
an exception when the condition is false.

MozReview-Commit-ID: DEF5HSfYO36
2018-02-03 11:32:25 +05:30
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
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Mark Banner a61df67bf8 Bug 1422720 - Remove unused functions from globalOverlay.js (goSetMenuValue, goSetAccessKey, goOnEvent, setTooltipText). r=florian
MozReview-Commit-ID: IVmDb34wxdi

--HG--
extra : rebase_source : d21ac0c960ac075e61bbc98f3d9afbb60c470311
2018-01-16 23:16:39 +00:00
Mark Banner a34654023f Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT

--HG--
extra : rebase_source : 10341495d85dae45f2efbe3af6ad11b0c0214104
2017-11-09 16:36:57 +00:00
Andreea Pavel d377351feb Backed out 1 changesets (bug 1417940) for failing browser-chrome browser/components/contextualidentity/test/browser/browser_aboutURLs.js r=backout on a CLOSED TREE
Backed out changeset 2c2f807e23b5 (bug 1417940)
2017-11-17 18:08:45 +02:00
Mark Banner 4831d3ed89 Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT

--HG--
extra : rebase_source : fa73ef148c0ea38226e11824e683daab43f2c0b8
2017-11-09 16:36:57 +00:00
Andrew McCreight e3a114f978 Bug 1363215 - Replace calls to __define{Getter,Setter}__ on top-level this with Object.defineProperty. r=Gijs
__define{Getter,Setter}__ are deprecated, and are not defined on
NonSyntacticVariablesObjects, so these calls get in the way of sharing
globals between different .jsms. Probably only the DownloadUtils.jsm
change is really needed for that.

configurable and enumerable are both set to true to match the existing
behavior. If enumerable is set to false, then tests fail, because some
of the getters overwrite the getter with a regular property.

MozReview-Commit-ID: 1OZF45fIAQ

--HG--
extra : source : 96dd2e2d8d1677fb04c98bb3a063df32478fbc00
2017-05-08 14:07:34 -07:00
Jared Wein 43bac26d30 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a

--HG--
extra : rebase_source : 014c0b04d8538dc5f15bc6dd4ed6bd220c55c5d4
2017-01-17 09:48:17 -06:00
Mark Banner 582fcb8090 Bug 1329614 - [eslint] Catch more cases of importing globals from 'var foo = Cu.import('...');'. r=jaws
MozReview-Commit-ID: 5NKHHb70YA6

--HG--
extra : rebase_source : 4551e56f56065349fb9ddc8d90e67f9dc84c1701
2017-01-09 10:12:26 +00:00
Jared Wein 9141469edf Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe

--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Dave Townsend 0a6414b898 Bug 1245649: Turn on no-trailing-spaces. r=Gijs
--HG--
extra : commitid : F2OWKTvXUO4
extra : rebase_source : ec68631342e0edc59d77b6bab1cdc975ad175327
2016-02-03 14:22:33 -08:00
Dave Townsend 4f42117a04 Bug 1230839 - Fix mixing reference to AppConstants in globalOverlay.js r=MattN
--HG--
extra : transplant_source : %87%E8%1A%F2%CD%D5Yx%8Ar%A8%EA%BA%DF%DA%27_%E9f%D3
2015-12-07 16:21:45 -08:00
Dave Townsend 35e95f3cca Bug 1229519: Fix toolkit/content to pass eslint checks. r=MattN
--HG--
extra : commitid : 932plqWTl9j
extra : rebase_source : dd7016124f54cb236d74ee5a120ae4e1543ec89b
2015-12-03 10:02:22 -08:00
Michael Layzell 0f9ea8b283 Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-30 08:18:04 -04:00
Ehsan Akhgari da6d711504 Backout changeset d648becaa638 (bug 1170531) for test failures 2015-06-27 13:14:06 -07:00
Michael Layzell 8822471924 Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-27 12:37:44 -07:00
Carsten "Tomcat" Book 4161a5ac2b Backed out changeset 3fca18104696 (bug 1170531) for e10s-m4 test failures in test_bug1067255.html
--HG--
extra : rebase_source : 9e1295d5c84bfbeed5c7c184d6d7419000fc8629
2015-06-22 15:21:02 +02:00
Michael Layzell a9c46a12ac Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-22 08:13:26 -04:00
Michael Layzell 4c5c129216 Bug 1159490 - Allow cut/copy event dispatch unconditionally in HTML documents. r=neil 2015-05-13 08:44:00 +02:00
Gijs Kruitbosch c69370ffd7 Bug 1127394 - should be able to close single tab through tabclose button even if we said 'stay on page' initially, r=jaws 2015-01-30 19:54:37 +00:00
Gijs Kruitbosch 9680d525cb Bug 1103203 - rm visitLink, r=jaws 2014-11-24 15:15:40 +00:00
Boris Zbarsky 0c4e2cc50c Bug 913855. Fix consumers of window mediator to be more consistent in their checking for closed windows. r=dolske
Note that we can't just stop returning closed windows from the window
mediator, because some consumers (e.g. session restore) rely on seeing
closed windows in the list so they can remove them from their internal
data structures expeditiouly.
2013-09-13 17:29:51 -04:00
Boris Zbarsky 0745baf88c Bug 792215. Convert quickstubs to using JSNative getters and setters. r=peterv 2012-09-25 14:44:40 -04:00
Saurabh Anand d95c6661cf Bug 722994 - globalOverlay.js uses global Private Browsing state to control display of a prompt; r=ehsan 2012-06-27 15:14:45 +05:30
Phil Ringnalda 62901762b9 Back out fe2fdd5d3aae (bug 722994) for mochitest-chrome failures 2012-06-18 22:18:33 -07:00
Saurabh Anand 1575691548 Bug 722994 - globalOverlay.js uses global Private Browsing state to control display of a prompt; r=ehsan 2012-06-19 01:57:26 +05:30
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Vivien Nicolas f25f0dfbf4 Bug 748889 - Silent a warning about an undefined @mozilla.org/privatebrowsing. r=enndeakin 2012-05-04 20:05:40 +02:00
Paul O’Shannessy 57ab4ad7f3 Bug 629485 - Show close window warning when closing the last window [r=gavin, a=blocking2.0:betaN+] 2011-02-07 17:50:37 -08:00
Dave Townsend 20e6c6acda Backed out changeset 405a715a4d81 from bug 502307 due to test failures 2009-08-19 10:38:09 +01:00
Ehsan Akhgari 3b96626648 Bug 502307 - Closing multiple tabs in the last browser window with Private Browsing enabled yields no warning regardless of preference setting (further fix); r=enndeakin,dao ui-r=faaborg 2009-08-19 11:16:08 +04:30
Ehsan Akhgari d21c236a6f Bug 506126 - globalOverlay.js is full of caller-less functions; r=enndeakin 2009-08-02 22:23:19 +04:30
Ehsan Akhgari c339c67f28 Bug 502307 - Closing multiple tabs in the last browser window with Private Browsing enabled yields no warning regardless of preference setting; r=enndeakin 2009-07-17 23:08:22 +04:30
Ehsan Akhgari 5e46f5a844 Bug 502357 - closeWindow does unneeded work on Mac. r=enn 2009-07-13 19:37:29 +02:00
Magnus Melin fcfa2837bc Bug 490150: report what the exception was when command updating failed. r=gavin 2009-04-26 13:38:22 +03:00
dietrich@mozilla.com c9d5644c22 Bug 384370 - use JSON as the on disk, lossless format for our bookmark backup (r=mano) 2008-03-13 12:25:49 -07:00
dietrich@mozilla.com afe04b3027 backing out test checkin of bug 384370 2008-03-04 14:12:27 -08:00
dietrich@mozilla.com ee6f5ace1d TESTING - temp checkin of bug 384370 (r=mconnor) 2008-03-04 13:23:04 -08:00
dietrich@mozilla.com 369fd460d9 backing out bug 384370 for hosation of Ts 2008-02-29 09:29:58 -08:00
dietrich@mozilla.com 7ea357f31c Bug 384370 - use JSON as the on disk, lossless format for our bookmark backup (take two, r=mano, a=beltzner) 2008-02-29 08:39:13 -08:00
dietrich@mozilla.com 02b9a4ac37 backing out bug 384370, caused 25ms Ts regression on linux, and leaks on linux and mac 2008-02-27 11:05:52 -08:00
dietrich@mozilla.com 5b99177f04 Bug 384370 - use JSON as the on disk, lossless format for our bookmark backup (r=mano) 2008-02-27 10:14:13 -08:00
flamingice@sourmilk.net 41b10bc718 Bug 386810, Move quit-application-granted notification to nsAppStartup::Quit, r=benjamin 2007-08-09 20:05:53 -07:00
flamingice@sourmilk.net 09aeed6d39 Bug 386002, Move tryToClose calls on shutdown, r=benjamin 2007-07-16 10:55:54 -07:00