Commit graph

58 commits

Author SHA1 Message Date
Gijs Kruitbosch
b7978dc940 Bug 1663173 - disable commands that don't need to be enabled in customize mode, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D89289
2020-09-11 20:40:28 +00:00
Razvan Maries
6a6b5b8430 Backed out changeset ffe1c9f9f9df (bug 1663173) for multiple bc perma failures. CLOSED TREE 2020-09-10 01:46:46 +03:00
Gijs Kruitbosch
84321be33c Bug 1663173 - disable commands that don't need to be enabled in customize mode, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D89289
2020-09-09 20:02:22 +00:00
Dão Gottwald
1f136fd774 Bug 1610475 - Move URLBarSetURI to UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D65535

--HG--
rename : browser/components/urlbar/tests/browser/browser_URLBarSetURI.js => browser/components/urlbar/tests/browser/browser_UrlbarInput_setURI.js
extra : moz-landing-system : lando
2020-03-06 16:27:16 +00:00
Dão Gottwald
97dc13cb94 Bug 1586889 - Stop re-initializing the urlbar when exiting customize mode. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D49405

--HG--
extra : moz-landing-system : lando
2019-10-17 09:03:12 +00:00
Dão Gottwald
57f477c599 Bug 1580248 - Fix urlbar height and vertical alignment in compact mode. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D45555

--HG--
extra : moz-landing-system : lando
2019-09-11 22:44:41 +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
Drew Willcoxon
c901619704 Bug 1545742 - Quantumbar: Remove the proper nsIController on uninit and customize start so that left/right arrow and home/end keys work after exiting customize mode. r=mak
When UrlbarInput.uninit is called after customize mode ends, uninit calls this.inputField.controllers.removeControllerAt(0), which is supposed to remove the input's CopyCutController inserted in the constructor. But the controller at index 0 at that point is not the CopyCutController. Instead it's some built-in controller that supports these commands (at least these): cmd_charPrevious, cmd_charPrevious, cmd_beginLine, cmd_endLine. (Verified by adding logging to nsXULControllers::GetControllerForCommand.) That's why arrow left/right and home/end don't work after ending customize mode.

The problem is that this.inputField.controllers in the constructor and this.inputField.controllers in uninit (when customize mode ends) are not the same. I wasn't able to track down why, but I'm guessing that the textbox or something in its state is being reset or cloned when customized mode ends or maybe right after it starts. The CopyCutController isn't in the controllers array at all on uninit. (Verified by adding support for cmd_adw and iterating through the controllers array, looking for a controller supporting cmd_adw.)

Note that urlbarBindings.xml has a try-catch around removeController(), I'm guessing for what turns out to be this reason: https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/browser/base/content/urlbarBindings.xml#190

However, CopyCutController *is* in the controllers array when customize mode starts. So I added a new gURLBarHandler.customizeStart method that calls a new UrlbarInput.removeCopyCutController method.

Other things I tried or thought of doing:

Call gURLBarHandler._reset on customize start instead of end. Problem with that is that the UrlbarInput ends up getting immediately recreated because some other parts of the browser access gURLBar at that time. (Of course I replaced the `gURLBar = this.urlbar` assignment in _reset with another lazy getter definition.)

Just don't worry about removing CopyCutController at all. That seems bad because then we'd leak it, unless the controller is removed or the controllers array is emptied at some point by XUL, and I'm not at all certain about that. (Although I guess this is effectively what awesomebar does, given the link above!)

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

--HG--
extra : moz-landing-system : lando
2019-05-03 16:03:00 +00:00
Marco Bonardo
69d74cca55 Bug 1523332 - Allow to instant switch on and off the Quantum Bar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20534

--HG--
extra : moz-landing-system : lando
2019-03-01 14:52:17 +00:00
Gijs Kruitbosch
0649c40a3c Bug 1499236 - remove customizableui menubar binding, r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8901

--HG--
extra : moz-landing-system : lando
2018-10-17 22:50:40 +00:00
Dão Gottwald
b972ef4243 Bug 1496718 - Stop clobbering gURLBar when exiting customize mode. r=gijs 2018-10-05 18:35:46 +02: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
Axel Hecht
5bdc727943 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Dan Banner
7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Gijs Kruitbosch
ecf2be01ab Bug 1397447 - make downloads button autohide by default, r=mak
MozReview-Commit-ID: E9izQpa4fFZ

--HG--
extra : rebase_source : 11dc3f1b98f53f5897a3185253b68d2cf7d5083b
extra : source : 97f7f5175b2fc3adfb193783f7ecb70b5b9b4562
2017-09-08 14:16:36 +01:00
Jared Wein
99cc3ab623 Bug 1391146 - Don't run uninit/init on CombinedStopReload when entering/exiting customize mode since we don't have the joined stop/reload and location bar anymore. r=Felipe
MozReview-Commit-ID: 9JjMEcVkGvo

--HG--
extra : rebase_source : 9167699959a67c44786bd32fbe816e3a3b999fcd
2017-08-17 15:14:12 -04:00
Dão Gottwald
c2876c7355 Bug 1387084 - Use instant scroll behavior when doing pixel scrolling. r=Gijs
Touchmove and wheel events are sent frequently enough that smooth scroll behavior
prevents the expected pixel distance from being reached before the next event.

Also replace aSmoothScroll parameters with aInstant to better reflect how this
works: its purpose is to force instant scrolling, whereas omitting it falls back
to "auto" (which may mean instant or smooth depending on different factors).

The ensureElementIsVisible call from browser-customization.js can go away as
customize mode doesn't add padding around the window anymore.

Finally, remove the unused scrollPosition and scrollPaddingRect properties.

MozReview-Commit-ID: 3Ac7g6zZ0hW

--HG--
extra : rebase_source : e43d0bcab82c74e65d01a0fd79bfaec96952b35a
2017-08-05 10:12:38 +02:00
Gijs Kruitbosch
cf5f0b7624 Bug 1354117 - remove wrap handling for the bookmarks toolbar button and tests verifying it, r=johannh
MozReview-Commit-ID: CeSGIQrDPpw

--HG--
extra : rebase_source : 11a15f98fe7b4fc8fa26152ad5e5e43551cc8a3b
2017-07-31 21:52:06 +01:00
Dão Gottwald
1627cbe8e6 Bug 1386594 - Remove XULBrowserWindow.init. r=johannh
MozReview-Commit-ID: 6uWcb9FMdNE

--HG--
extra : rebase_source : 0527ca4d12e88c0c2f68c73860bbdf10b663c0f5
2017-08-02 13:57:18 +02:00
Florian Quèze
9422b19f8d Bug 1381853 - lazy load browser-customization.js into the browser window, r=mconley. 2017-07-23 00:17:57 +02: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
Jared Wein
fd84c776c7 Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh
MozReview-Commit-ID: EMjJ3yWt9Wt

--HG--
extra : rebase_source : 2b8327e5a7cf0bfd190d696ad5fe475f13faa3cc
2016-08-04 03:28:58 -04:00
malayaleecoder
b3deb181bb Bug 1254496 - Remove gURLBar null-checks. r=dao 2016-03-10 23:15:49 +05:30
Felipe Gomes
4e8244fdc5 Bug 1228655 - Remove ifdefs for gEditUIVisible. r=Gijs 2015-12-01 20:05:36 -02:00
Felipe Gomes
909d49249d Bug 1228627 - Remove #includes from browser.js. r=Gijs 2015-11-30 12:13:57 -02:00
Paolo Amadini
383af26e19 Bug 1206244 - Replace globe with the "i" icon, keep separate lock for secure pages. r=past
--HG--
extra : commitid : FK2Mm4rfvXP
extra : rebase_source : 27b3567bb0db0f8b5dc042f3958a4374b012429e
2015-11-11 15:52:56 +00:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Dão Gottwald
e0bb5614ac Bug 1182102 - Stop setting the bookmark-item class on the home button or the bookmarks button when moving them to the bookmarks toolbar. r=gijs 2015-08-17 15:51:22 +02:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Dão Gottwald
570b082010 Bug 997131 - Simplify conditional forward button CSS by making the forward button a direct sibling of the location bar. r=mdeboer
--HG--
extra : rebase_source : e9c7c70d5295564dc61766fdaf1eec620e90d77a
2014-04-23 19:26:32 +02:00
Gijs Kruitbosch
6b1f3b5123 Bug 969780 - Australis - places controller gets lost if bookmarks button is moved to overflow or moved outside of customize mode, r=mak
--HG--
extra : rebase_source : dca1ab1dd901468f9dacaff4b7466c27bef84b47
2014-02-18 18:29:51 +00:00
Gijs Kruitbosch
dc5d82af23 Bug 964217 - fix search item insertion in Australis customization mode, r=Unfocused 2014-02-03 10:48:21 +00:00
Gijs Kruitbosch
240fe4437c Bug 964887 - fix menu in Australis to say 'Edit this bookmark' for pages which have already been bookmarked, r=mak 2014-01-31 23:21:41 +00:00
Gijs Kruitbosch
66f1889c0a Bug 944947 - update bookmarks toolbar button styling some more for Australis, r=jaws 2014-01-18 01:43:21 +01:00
Marco Bonardo
196e368400 Bug 958413 - [Australis] Bookmarks menu button dropdown icon has the wrong aspect ratio when placed in the Bookmarks Toolbar. r=Gijs 2014-01-22 10:42:51 +01:00
Gijs Kruitbosch
96b3ec1d95 Bug 889120 - Australis' customize tab gets mixed up with other tab, r=jaws 2014-01-10 15:54:48 +00:00
Carsten "Tomcat" Book
ac726d9baf Backed out changeset d614fa6b53b2 (bug 889120) [australis] for suspicion of pgo perma-orange 2014-01-16 09:44:49 +01:00
Gijs Kruitbosch
4ce8c9d4d6 Bug 889120 - Australis' customize tab gets mixed up with other tab, r=jaws
--HG--
extra : rebase_source : 12ef7ad03ece347dccd1e193a24e4e74b7b20b82
2014-01-10 15:54:48 +00:00
Jared Wein
93625903d2 Bug 940052 - [Australis] Customize tab gets truncated after entering customization mode. r=mconley 2013-12-21 01:17:02 -05:00
Gijs Kruitbosch
696958b500 Bug 700363 - [Australis] Hide conditional forward button permanently when not in use to prevent accidental glitches. r=Unfocused,jaws
--HG--
extra : rebase_source : 981cf692f5e7df0b4dc59a4eb926915363de1fec
2013-12-17 13:43:50 -05:00
Matthew Noorenberghe
b969271e2e Merge mozilla-central to UX 2013-09-06 17:54:20 -07:00
Dão Gottwald
cd6e27404e Bug 899587 - "Remove the now-unneeded setUrlAndSearchBarWidthForConditionalForwardButton hack" r=jaws 2013-07-30 08:09:00 +02:00
Gijs Kruitbosch
3cf6271ad8 Backed out changeset 25c0cb82cae3 for getting the email address wrong 2013-07-30 17:36:51 +02:00
Dão Gottwald
b418d51063 Bug 899587 - "Remove the now-unneeded setUrlAndSearchBarWidthForConditionalForwardButton hack" r=jaws
--HG--
extra : rebase_source : 7bb340d9a1cb23155cdb8c6a4085390e414cafa5
2013-07-30 08:09:00 +02:00
Mike de Boer
63ca3d2cd2 Bug 755598: Merge Back/ Forward/ URLBar/ Stop/ Reload/ Go buttons into 1 toolbaritem. r=dao 2013-07-18 18:46:28 +02:00
Jared Wein
db971a7a5e Bug 888571 - Don't load CustomizeMode.jsm upon startup. r=MattN,dao 2013-06-29 04:25:56 -04:00
Jared Wein
a20425bda0 Backed out changeset ee81f5bac27a (bug 888571) 2013-06-30 08:36:00 -04:00