Commit graph

247 commits

Author SHA1 Message Date
Itiel
ceaa636d49 Bug 1634247 - Fix separators in the Web Developer menu r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73906
2020-05-08 15:33:18 +00:00
aarushivij
8101730a74 Bug 908954 - Remove try…catch comment inside wrapWidgetEventHandler once bug 503244 is fixed r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D71268
2020-04-17 05:50:56 +00:00
Brian Grinstead
3d2d2d0ea7 Bug 1608281 - Automated rewrite away from reading properties on the global this in JSM files - round 1 r=mossop
This patch was generated with a script. It doesn't include all files:

- Files that use the preprocessor or fail to parse are skipped
- Files that are loaded as JSMs but don't use the .jsm extension are skipped (those will be renamed in Bug 1609269)

It was generated with the following command using d855222aa2/no-this-property-read.js:

```
hg revert --all &&
cp .gitignore .rgignore &&
rg --files-without-match -g '*.jsm' '^#endif|^#include|^#filter' | jscodeshift --stdin --transform ~/Code/jsm-rewrites/no-this-property-read.js --ignore-pattern ./mobile/android/modules/Sanitizer.jsm --ignore-pattern ./js/xpconnect/tests/unit/syntax_error.jsm &&
./mach eslint `hg st | rg '^M ' | sed 's/^M //'`
```

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

--HG--
extra : moz-landing-system : lando
2020-01-29 21:50:04 +00:00
Dão Gottwald
5bf3f1776c Bug 1611689 - Make OverflowableToolbar::_checkOverflow return early in DOM fullscreen mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D61181

--HG--
extra : moz-landing-system : lando
2020-01-28 15:55:50 +00:00
Dão Gottwald
cfeb15e21a Bug 1607160 - Skip positioned elements when calculating whether a toolbar overflows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D59299

--HG--
extra : moz-landing-system : lando
2020-01-09 17:07:38 +00:00
Dão Gottwald
fe21327223 Bug 1582797 - OverflowableToolbar should respond to resize events immediately. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D46624

--HG--
extra : moz-landing-system : lando
2019-09-25 12:09:32 +00:00
Dão Gottwald
28a3dbf885 Bug 1583148 - Stop subtracting border widths from clientWidth since it doesn't include borders in the first place. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D46926

--HG--
extra : moz-landing-system : lando
2019-09-24 11:36:58 +00:00
Dão Gottwald
9fb99cae94 Bug 1580538 - Make OverflowableToolbar work without overflow:hidden. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D46297

--HG--
extra : moz-landing-system : lando
2019-09-20 13:11:23 +00:00
Gijs Kruitbosch
7e42abb897 Bug 1571236 - add logging to overflow toolbar code, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D45655

--HG--
extra : moz-landing-system : lando
2019-09-12 17:44:53 +00:00
Gijs Kruitbosch
f931d77fe5 Bug 1573485 - put developer tools button back on the right/end of the toolbar in devedition, r=pbro,jaws
Differential Revision: https://phabricator.services.mozilla.com/D43599

--HG--
extra : moz-landing-system : lando
2019-08-27 14:35:52 +00:00
Tim Nguyen
eddd2fd9aa Bug 1567420 - Fix interactive element check in CustomizableUI.jsm. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D38728

--HG--
extra : moz-landing-system : lando
2019-07-19 20:15:33 +00:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
shindli
c14bbbdd9a Backed out changeset 92835da18445 (bug 1552565) for causing perma bc failures in browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js CLOSED TREE 2019-05-24 23:17:33 +03:00
Greg Tatum
9d01a5ae17 Bug 1552565 - Fix event listener for CustomizableUI when destroying widgets; r=Gijs
The CustomizableUI does not delete the _addedEventListeners property from
the view node when the widget is destroyed. This stops the widget from
correctly having events dispatched to it after recreating it, as the
initialization code assumes that it has already been set up.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 15:31:39 +00:00
Andrew Swan
a745ec6099 Bug 1519577 Convert toolbarbutton to a custom element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D31941

--HG--
extra : rebase_source : 3709ef713f1a7dc9fbc2d0ac97f16bea757fcd2b
2019-05-20 10:01:02 -07:00
Gijs Kruitbosch
88b77a1a40 Bug 1543129 - fix buttons disappearing in customize mode after using 'restore defaults', r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D28719

--HG--
extra : moz-landing-system : lando
2019-04-29 13:36:04 +00:00
Kris Maglione
f45da34602 Bug 1525762: Part 1b - Add databaseReady promise to replace xpi-database-loaded observer. r=aswan
All of the consumers of this observer really want it to behave like a promise.
And, for the cases where the DB may or may not already be loaded when those
callers run, getting the logic correct is difficult.

This patch replaces the observer with a promise, and also delays the
resolution of that promise until any built-in add-ons registered during
XPIProvider startup have finished installing. This latter feature is currently
unused, but will be necessary after subsequent patches for code that relies
querying the default theme immediately after provider startup.

--HG--
extra : rebase_source : c9d39158bea0b850d52cbc296cf184a9b9bf10b4
2019-03-22 09:26:33 -07:00
Kris Maglione
9a5a322343 Bug 1525511: Part 2d - Stop using LightweightThemeManager for in CustomizableUI. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18785

--HG--
extra : rebase_source : 73cf1b5a131314f7f939149a7572166445f6279b
2019-02-05 17:23:29 -08:00
Gijs Kruitbosch
19b3a61aa7 Bug 1462911 - allow for new overflown items to be the first item in the overflow list, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D24944

--HG--
extra : moz-landing-system : lando
2019-03-26 19:14:27 +00:00
Ian Moody
67fb55f3b9 Bug 1536653 - browser/ automated ESLint no-throw-literal fixes. r=Gijs
Result of running:
$ mach eslint -funix browser/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-03-20 10:17:42 +00:00
Vijay Budhram
de28a9888d Bug 1524665 - Add FxA avatar toolbar menu, r=gijs,eoger
Differential Revision: https://phabricator.services.mozilla.com//D20433

--HG--
extra : rebase_source : b5d3d213eb130d46b6786a8445a85944bfef32e2
2019-02-23 17:56:19 +00:00
James Teh
acfbabd5d2 Bug 1515543: Support keyboard activation (space/enter) of toolbar overflow buttons when focused. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21614

--HG--
extra : moz-landing-system : lando
2019-03-04 06:48:43 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Shane Caraveo
050ca2e7d4 Bug 1511636: update incognito support to use pref and permissions r=rpl,aswan,kmag
This changes the policy to use the pref and permissions rather than a boolean flag.  Using permissions gets us proper settings on startup without introducing any new overhead.  Going this way flips our tests around so rather than testing an override to turn off private browsing support, we test overrides to enable private browsing support.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:47 +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
Martin Stransky
53be695239 Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).

It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.

It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 12:44:49 +00:00
James Teh
3efa5efdbd Bug 1506504: Add/fix keyboard behaviour for browser toolbar buttons which open popups. r=Gijs
1. Fix the Firefox menu button so that it only handles space and enter, rather than incorrectly activating for *all* key presses.
2. Add keyboard support (space and enter) for the Library and page Actions buttons.
3. Add keyboard support (space and enter) for customizable widgets of type "view"; e.g. the Developer button.
4. Add keyboard support (space and enter) for page action buttons pinned to the URL bar; e.g. the Send Tab to Device button.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 11:33:32 +00:00
Gijs Kruitbosch
7c2539e61d Bug 1510321 - avoid calling buildArea for all the builtin toolbars, r=jaws,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D13259

--HG--
extra : moz-landing-system : lando
2018-11-28 23:23:31 +00:00
Brian Grinstead
08b08080f8 Bug 1505734 - Remove logic from CustomizableUI toolbar XBL constructor;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11665

--HG--
extra : moz-landing-system : lando
2018-11-14 00:46:20 +00:00
Alexander Surkov
17f55aee76 Bug 1493594 - replace customizationTarget XBL property by CustomizableUI method, r=gijs 2018-11-08 13:45:22 +07:00
Mike Conley
1b50b597e6 Bug 1498400 - Rename titlebar-placeholder to titlebar-spacer. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11133

--HG--
extra : moz-landing-system : lando
2018-11-07 09:54:26 +00:00
Gijs Kruitbosch
ce2d30dc03 Bug 1500268 - remove legacy toolbar and currentset support from customizableui, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D9172

--HG--
extra : moz-landing-system : lando
2018-10-22 16:02:07 +00:00
Gijs Kruitbosch
cfd6524777 Bug 1500268 - remove customizableui toolbar's insertItem method, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D9173

--HG--
extra : moz-landing-system : lando
2018-10-22 16:02:05 +00:00
Mike Conley
926304f225 Bug 1474340 - Remove toolbox XBL property from toolbar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D6078

--HG--
extra : moz-landing-system : lando
2018-09-18 14:20:23 +00:00
Ciure Andrei
f16f52f87a Backed out changeset 12dcd7c35b36 (bug 1474340) for ESlint failure CLOSED TREE 2018-09-18 17:05:49 +03:00
Mike Conley
bc97df37da Bug 1474340 - Remove toolbox XBL property from toolbar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D6078

--HG--
extra : moz-landing-system : lando
2018-09-18 13:42:05 +00:00
Gijs Kruitbosch
6b518d3722 Bug 1491243 - remove subscribe button, menu items and subscription section out of feed previews, r=florian
This removes subscribe UI and functionality from the main browser window,
the page info window, and from feed previews. It may leave some stray strings
in subscribe.properties/dtd, which will be removed in bug 1477669 when the
preview code goes away completely.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 06:06:27 +00:00
Coroiu Cristina
9a2b88d99e Backed out changeset d61965849528 (bug 1491243) for en-US failures at testing\firefox-ui\tests\puppeteer\test_page_info_window.py 2018-09-17 22:23:58 +03:00
Gijs Kruitbosch
1b1f1b759d Bug 1491243 - remove subscribe button, menu items and subscription section out of feed previews, r=florian
This removes subscribe UI and functionality from the main browser window,
the page info window, and from feed previews. It may leave some stray strings
in subscribe.properties/dtd, which will be removed in bug 1477669 when the
preview code goes away completely.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 18:06:05 +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
829d7647d3 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275

--HG--
extra : moz-landing-system : lando
2018-08-14 16:22:44 +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
Boris Zbarsky
4abc5c5a25 Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead
96dc530924 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t

--HG--
extra : rebase_source : c525350a1954740873e85b045cbb14a8b43aa89d
2018-07-24 08:12:50 -07:00
Gijs Kruitbosch
b40ddc17c4 Bug 1438490 - move overflow/underflow event handling out of toolbar.xml, r=jaws
MozReview-Commit-ID: CwkCOIm9wNk

--HG--
extra : rebase_source : a746c9dc190e3309d9368083ce08c36f222a3407
2018-05-01 15:44:19 +01:00
Gijs Kruitbosch
9654bc99a1 Bug 1447619 - avoid reflowing when returning items to the toolbar from the overflow menu, r=florian
MozReview-Commit-ID: BFGRssWb9F

--HG--
extra : rebase_source : cf6011f2ecfe78df11a6741dfa074c7d985ec294
extra : source : 1ce48405e58a609299a84192df04d340cd90de63
2018-04-20 15:09:44 +01:00
Andreea Pavel
7abcd926f5 Backed out changeset 1ce48405e58a (bug 1447619) for creating bug 1457257 and bug 1457289 on a CLOSED TREE 2018-04-28 20:46:51 +03:00