Commit graph

53 commits

Author SHA1 Message Date
Dão Gottwald
c39cc46923 Bug 1651310 - Increase Ctrl-Tab preview limit from 6 to 7. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82665
2020-07-08 23:10:56 +00:00
Carson Greene
64dd6427d1 Bug 1576911 - Make ThumbnailsChild a JSWindowActorChild instead of ActorChild r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45957

--HG--
extra : moz-landing-system : lando
2019-11-06 23:32:35 +00:00
Dão Gottwald
b1dec38083 Bug 1563393 - Stop caching the ctrl+tab thumbnail canvas size. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D38644

--HG--
extra : moz-landing-system : lando
2019-07-19 16:39:40 +00:00
Victor Porof
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
Rob Wu
1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

Differential Revision: https://phabricator.services.mozilla.com/D27802

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Mark Striemer
020a5bff50 Bug 1520068 - Handle more system shortcuts in add-on shortcuts ui r=dao
This centralizes the checks for system shortcuts into ShortcutUtils.jsm, so
they can be checked for in the add-on shortcut assignment UI. It also
introduces a mechanism for skipping the system event handler if it is already
being handled by the shortcuts UI.

Differential Revision: https://phabricator.services.mozilla.com/D17586

--HG--
extra : moz-landing-system : lando
2019-03-08 18:32:20 +00:00
Marco Bonardo
5c4e44ce0a Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753

--HG--
extra : moz-landing-system : lando
2019-02-28 08:39:33 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Dão Gottwald
fbccdb1f61 Bug 1509488 - Use keydown handler instead of <key> for Shift+Ctrl+Tab. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D12744

--HG--
extra : moz-landing-system : lando
2018-11-26 16:07:07 +00:00
Dão Gottwald
c8086c4f6e Bug 1501699 - Don't consume the Ctrl+Shift+Tab event when not actually handling it. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D11024

--HG--
extra : moz-landing-system : lando
2018-11-06 15:19:42 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Dão Gottwald
2baf8e31d6 Bug 1481321 - Stop eagerly creating thumbnails for the Ctrl+Tab panel. r=jaws 2018-08-07 11:34:42 +02:00
Dave Townsend
389a969138 Bug 1479050: Migrate a number of call-sites to use document.createXULElement. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D2489

--HG--
extra : moz-landing-system : lando
2018-07-31 19:13:38 +00:00
Dão Gottwald
1f4131affa Bug 1473595 - Enable "Ctrl+Tab cycles through tabs in recently used order" feature by default in new profiles. r=jaws
MozReview-Commit-ID: 5lmOj3k4tFf

--HG--
extra : rebase_source : e7ea50f496827a1cdda1ebc9d3f602822bea5468
2018-07-26 11:13:34 +02:00
Dão Gottwald
0bb0b3faba Bug 1478646 - Ctrl+Tab previews should use the keydown event and addSystemEventListener to match tabbox.xml. r=jaws
MozReview-Commit-ID: HVlLTjrEhpz

--HG--
extra : rebase_source : 13ea5b9d947794662b001a72ac4d204b165e3802
2018-07-26 15:20:57 +02:00
Narcis Beleuzu
91bcab3f74 Backed out 1 changesets (bug 1473595) for debug-mochitest-chrome failures on test_key_event_counts.xul and test_htmleditor_keyevent_handling.html. CLOSED TREE
Backed out changeset a3140755de69 (bug 1473595)
2018-07-26 13:58:57 +03:00
Dão Gottwald
844b19fbfe Bug 1473595 - Enable "Ctrl+Tab cycles through tabs in recently used order" feature by default in new profiles. r=jaws
MozReview-Commit-ID: 5lmOj3k4tFf

--HG--
extra : rebase_source : e7ea50f496827a1cdda1ebc9d3f602822bea5468
2018-07-26 11:13:34 +02:00
Mark Striemer
37c6bf8035 Bug 1473974 - Fix opening all tabs panel with cycle recent tabs r=dao
MozReview-Commit-ID: EGYJo8AAF2K

--HG--
extra : rebase_source : 28014b84626ff9ae8a748609060091c36fb07782
2018-07-10 13:48:57 -05:00
Paolo Amadini
5c9fd0f400 Bug 1462297 - Remove the "ctrlTab-preview" binding. r=bgrins
MozReview-Commit-ID: BPJiakgo3wR

--HG--
extra : rebase_source : d8286c8ff275694ed8ccbc8f755ca208ac979f97
2018-05-18 14:07:00 +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
Dão Gottwald
823836c251 Bug 1430153 - Warm up tabs in the Ctrl+Tab panel. r=mconley
MozReview-Commit-ID: IlXLt90MsrB

--HG--
extra : rebase_source : ae3c269ca87051534c6f4c8f109b89f68e0bb82a
2018-01-12 17:09:15 +01:00
Florian Quèze
1158645bdd Bug 592653 - script-generated patch to replace gPrefService with Services.prefs, r=Standard8. 2017-12-19 23:45:10 +01:00
Dão Gottwald
8c3a23d2da Bug 1425432 - Maintain original thumbnail aspect ratio for Ctrl-Tab previews. r=jaws
MozReview-Commit-ID: F03AHwdplir

--HG--
extra : rebase_source : 3c6f9a162aced52aa51565924f59ceb14a8219f6
2017-12-15 13:32:51 +01:00
Dão Gottwald
6950ac6b52 Bug 1415863 - Rename mTabBox to tabbox. r=florian
MozReview-Commit-ID: L2mzJnHHwNu

--HG--
extra : rebase_source : 9959999779d90e5a4d3798ccbccbf1cb831cd602
2017-11-09 13:53:48 +01:00
Dan Banner
f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00
Florian Quèze
8a99c9ce27 Bug 1381853 - lazy load browser-ctrlTab.js into the browser window, r=mconley. 2017-07-23 00:17:57 +02:00
Florian Queze
9721c4ea62 Bug 1349761 - uninitialize ctrlTab only if it has been initialized before, r=dao. 2017-03-23 13:00:27 +01:00
Subhdeep Saha
d18ed51d75 Bug 1345773 - Don't call updatePreview for TabAttrModified events for the "select" attribute, r=dao
MozReview-Commit-ID: 9GSnGxJoNne

--HG--
extra : rebase_source : 0ecdc19cc6d28c60ab8cc13447db1186225dbb56
2017-03-09 21:06:35 +05:30
Florian Quèze
9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
milindl
8aace91f7a Bug 1342025 - reduce calls to ctrlTab.updatePreview. r=dao 2017-03-06 10:03:17 +01:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Jared Wein
ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher
0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Dão Gottwald
78f9f64797 Bug 1322889 - Properly set crop attribute on Ctrl+Tab preview titles. r=gijs
--HG--
extra : rebase_source : 05f9f56c5aec7d07c58c0622da3bd18313882e67
2016-12-13 15:34:32 +01:00
Dave Townsend
8de07a19a0 Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
MozReview-Commit-ID: 2ZvTiZDHchz

--HG--
extra : rebase_source : db6482481b7338df491afd6f6fd376eccec84d7e
2016-11-11 08:10:51 -08:00
Dão Gottwald
edec54dc91 Bug 1292095 - Implement SSWindowRestored event and use it instead of SSWindowStateReady for the Ctrl+Tab panel. r=mdeboer 2016-08-04 18:58:00 +02:00
Felipe Gomes
909d49249d Bug 1228627 - Remove #includes from browser.js. r=Gijs 2015-11-30 12:13:57 -02:00
Abdelrhman Ahmed
1c3fab499a Bug 1142552 - Remove remaining expression closures from browser-ctrlTab.js. r=dao 2015-03-13 13:01:24 +01:00
Abdelrhman Ahmed
104407945b Bug 1125499 - Use arrow function in allTabs.open. r=dao 2015-01-25 02:04:27 +01:00
Jim Mathies
54f902d7ef Bug 1088203 - e10sify PageThumbs support for checking page security and error state. r=Dao 2015-01-22 07:07:56 -06:00
Vikram Jadhav
38a39385bd Bug 1121471 - Remove use of expression closures from browser-ctrlTab.js. r=dao 2015-01-20 09:31:41 +01:00
Vikram Jadhav
e6fee8d796 Bug 1122430 - Use for..of iteration instead of Array.forEach in ctrlTab.suspendGUI. r=dao 2015-01-16 07:56:00 -05:00
Abdelrhman Ahmed
2680f7fb29 Bug 1115038 - Ctrl-Tab panel's "Show all X tabs" button should read "List All X Tabs" instead. r=dao 2014-12-26 14:37:32 +01:00
abdelrhman
8e8a47b40d Bug 1112556 - Ctrl-Tab previews are oversized with a small number of tabs open. r=dao
--HG--
extra : rebase_source : ec1e0f19a6c482ddb8ee65360b4656dfe7b905bd
2014-12-18 23:31:15 +01:00