Commit graph

2199 commits

Author SHA1 Message Date
Sylvestre Ledru
be18fd4dba Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D67319

--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
Ed Lee
acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Vlad Filippov
b2e173a799 Bug 1590946 - Remove service=sync from account management links. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D63737

--HG--
extra : moz-landing-system : lando
2020-03-13 20:53:12 +00:00
Dão Gottwald
e938695219 Bug 1620536 - Move "Import from Another Browser" to the Help menu. r=Mardak,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D66551

--HG--
extra : moz-landing-system : lando
2020-03-13 17:29:15 +00:00
Emma Malysz
039ee11a9d Bug 1600228, lazy load the edit bookmark panel by storing in an HTML template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66143

--HG--
extra : moz-landing-system : lando
2020-03-13 02:22:42 +00:00
Cosmin Sabou
571c1e5045 Backed out changeset 2befc9d57826 (bug 1600228) for bc failures on browser_asrouter_bookmarkpanel.
CLOSED TREE
2020-03-13 02:47:45 +02:00
Emma Malysz
91c78bd4a6 Bug 1600228, lazy load the edit bookmark panel by storing in an HTML template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66143

--HG--
extra : moz-landing-system : lando
2020-03-12 22:01:01 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Ed Lee
24153cdf6f Bug 1618346 - Add browser import to Firefox menu r=MattN,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D65420

--HG--
extra : moz-landing-system : lando
2020-03-05 06:07:08 +00:00
Greg Tatum
16a5f282e3 Bug 1597378 - Create new UI for the profiler popup; r=julienw
This commit implements the actual UI changes. A follow-up commit adds the
tests for the changes. The CSS is a little bit awkard since it uses lots of
ID selectors rather than class selectors. I wanted to be able to write quick
selects, since it's selecting across the entire browser document. I feel
a little conflicted with the approach, as I would prefer to use classes in
general.

The panel.jsm.js file collects all of the UI handling changes rather than
having everything in menu-button.jsm.js, as the latter can get loaded
at startup. I'm not sure if it's completely worth the trouble of having
two files, as most of it should be pretty light.

This commit does not handle localization for the panel, as we should be moving
to Fluent. Rather than solve that here, I will follow-up with it in Bug 1599774.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 16:40:38 +00:00
Marco Bonardo
8e3ea27643 Bug 1612653 - Update 'Bookmark This Page' menuitems when the star state changes. r=Standard8
Instead of updating the Bookmark This Page / Edit Bookmark menuteitems on popupshowing,
update them when the star button is suppposed to change. This better supports MacOS behavior
where the native menubar can't be updated after being shown, and avoids many callpoints in
favor of just a few.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 12:04:15 +00:00
Dave Townsend
54615a06b1 Bug 1617679: Reword the SSB menus and add a page action icon. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D63920

--HG--
extra : moz-landing-system : lando
2020-02-26 22:15:19 +00:00
Arthur Iakab
2f1c972d30 Backed out 6 changesets (bug 1144438, bug 1617208, bug 1597378) for causing devtools failures on browser_all_files_referenced.js
Backed out changeset eef173a3678d (bug 1617208)
Backed out changeset cc21fa09b88d (bug 1597378)
Backed out changeset b802ce66aa59 (bug 1597378)
Backed out changeset c65103d7bf0b (bug 1597378)
Backed out changeset 35da034acf03 (bug 1597378)
Backed out changeset 4e152220ad14 (bug 1144438)

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-record-capture.js => devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js => devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js => devtools/client/performance-new/test/browser/browser_popup-features-disabled.js
2020-02-26 03:22:40 +02:00
Greg Tatum
f34a461b3d Bug 1597378 - Create new UI for the profiler popup; r=julienw
This commit implements the actual UI changes. A follow-up commit adds the
tests for the changes. The CSS is a little bit awkard since it uses lots of
ID selectors rather than class selectors. I wanted to be able to write quick
selects, since it's selecting across the entire browser document. I feel
a little conflicted with the approach, as I would prefer to use classes in
general.

The panel.jsm.js file collects all of the UI handling changes rather than
having everything in menu-button.jsm.js, as the latter can get loaded
at startup. I'm not sure if it's completely worth the trouble of having
two files, as most of it should be pretty light.

This commit does not handle localization for the panel, as we should be moving
to Fluent. Rather than solve that here, I will follow-up with it in Bug 1599774.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:39:27 +00:00
Arthur Iakab
854fd7a3b4 Backed out 6 changesets (bug 1144438, bug 1617208, bug 1597378) for causing mochitest failures on test_perf-settings-entries.html.
Backed out changeset 2181d8a99229 (bug 1617208)
Backed out changeset 38c8db44b398 (bug 1597378)
Backed out changeset b2f0cf9a387e (bug 1597378)
Backed out changeset 4d1ff8bd4e64 (bug 1597378)
Backed out changeset 9b760d8fc1dc (bug 1597378)
Backed out changeset bc5727185383 (bug 1144438)

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-record-capture.js => devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js => devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js => devtools/client/performance-new/test/browser/browser_popup-features-disabled.js
2020-02-25 20:51:07 +02:00
Greg Tatum
10b5ed8b35 Bug 1597378 - Create new UI for the profiler popup; r=julienw
This commit implements the actual UI changes. A follow-up commit adds the
tests for the changes. The CSS is a little bit awkard since it uses lots of
ID selectors rather than class selectors. I wanted to be able to write quick
selects, since it's selecting across the entire browser document. I feel
a little conflicted with the approach, as I would prefer to use classes in
general.

The panel.jsm.js file collects all of the UI handling changes rather than
having everything in menu-button.jsm.js, as the latter can get loaded
at startup. I'm not sure if it's completely worth the trouble of having
two files, as most of it should be pretty light.

This commit does not handle localization for the panel, as we should be moving
to Fluent. Rather than solve that here, I will follow-up with it in Bug 1599774.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 16:47:19 +00:00
Gijs Kruitbosch
5169d79e96 Bug 1518500 - ensure we don't end up without a flexible space if moving items directly to toolbars, r=dao
Before this patch, we change aDraggedItemId somewhat late in the _applyDrop method -
significantly, we do this after the aTargetNode == areaCustomizationTarget check. So
we end up bailing out before adjusting aDraggedItemId, and we add the specific dummy
item from the palette into the toolbar, rather than adding a new spring to the
toolbar, and leaving the existing palette item alone.

Simply moving this adjustment to aDraggedItemId earlier into the method is sufficient
to fix the issue at hand.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 15:43:32 +00:00
Kousuke Takaki
cb722fa6db Bug 1542975 - Radio buttons in Forget panel are not keyboard navigable r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D61820

--HG--
extra : moz-landing-system : lando
2020-02-07 03:44:09 +00:00
Dão Gottwald
f07d464f9d Bug 1610497 - Increase browser window min-width so the address bar can be focused by mouse. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D60960

--HG--
extra : moz-landing-system : lando
2020-01-30 15:59:29 +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
446563f92e Bug 1609938 - Enable tab animation when closing the customize tab via ESC key or Done button. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60248

--HG--
extra : moz-landing-system : lando
2020-01-17 23:22:49 +00:00
Dão Gottwald
3774eb8a9a Bug 1609932 - Make depopulatePalette synchronous and remove the customize tab immediately in CustomizeMode::exit. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60243

--HG--
extra : moz-landing-system : lando
2020-01-17 23:31:43 +00:00
Zibi Braniecki
4fb4f2f900 Bug 1609585 - Migrate all possible uses from AppLocalesAsLangTag(s) to AppLocale(s)AsBCP47. r=marionette-reviewers,jfkthame,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D60096

--HG--
extra : moz-landing-system : lando
2020-01-17 19:29:09 +00:00
Dão Gottwald
063ff0ea9e Bug 883397 - Remove redundant about:blank check from CustomizeMode.exit. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60146

--HG--
extra : moz-landing-system : lando
2020-01-16 17:20:11 +00:00
Dão Gottwald
bca8987c92 Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-16 11:41:36 +00:00
Shane Caraveo
7fa8b283f6 Bug 1544975 remove private window extension change notification r=robwu,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D57716

--HG--
extra : moz-landing-system : lando
2020-01-03 23:01:54 +00:00
Harry Twyford
ed874ca75f Bug 1601334 - Increase Urlbar min-width. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D55835

--HG--
extra : moz-landing-system : lando
2020-01-10 20:02:35 +00:00
Erica Wright
a273e05e06 Bug 1603545 - Add telemetry for app menu protections button r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D58044

--HG--
extra : moz-landing-system : lando
2020-01-09 17:50:11 +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
Noemi Erli
c01a50c28c Backed out changeset bc55dd49ef82 (bug 1603545) for causing build bustages CLOSED TREE 2020-01-09 18:25:18 +02:00
Erica Wright
1966f381fa Bug 1603545 - Add telemetry for app menu protections button r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D58044

--HG--
extra : moz-landing-system : lando
2020-01-09 15:57:02 +00:00
Coroiu Cristina
a11955a5ba Backed out changeset e2a0b2626fe8 (bug 1560348) for frequently failing browser-chrome at browser/components/extensions/test/browser/browser_ext_browserAction_contextMenu.js 2020-01-08 10:13:51 +02:00
Dão Gottwald
dd16ec0252 Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-07 11:28:13 +00:00
Brindusan Cristian
74bfffec0d Backed out changeset c716cc9f2a70 (bug 1560348) for bc failures at browser_lwt_telemetry.js. CLOSED TREE 2020-01-07 13:08:00 +02:00
Dão Gottwald
75e1b2d43f Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-06 17:45:27 +00:00
Masayuki Nakano
0a74bf0038 Bug 1605918 - Get rid of synthesizeDragStart() in EventUtils.js r=smaug
All usage of `synthesizeDragStart()` is, starting drag, cancel `dragstart`,
and finally compares `dataTransfer` items and given expected data.  So,
we can make the users use `synthesizePlainDragAndDrop()` instead.  It's
better API because it computes position of mouse operations at runtime and
checks whether the drag start was succeeded with optional logging feature
(i.e., it's easier to debug of intermittent failures).

This patch creates `synthesizePlainDragAndCancel()` for convenience.  It
handles `dragstart` instead of the callers.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 16:25:24 +00:00
Morgan Reschenberg
6274ebbf20 Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-24 01:56:32 +00:00
Dave Townsend
06456f883d Bug 1603272: List installed site specific browsers in the app menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D57015

--HG--
extra : moz-landing-system : lando
2019-12-23 18:58:03 +00:00
Vijay Budhram
69c06d53ba Bug 1597994 - Update FxA menu manage account labels r=markh,flod
Differential Revision: https://phabricator.services.mozilla.com/D57548

--HG--
extra : moz-landing-system : lando
2019-12-23 14:42:09 +00:00
Masayuki Nakano
87ca855ece Bug 1603074 - part 1: Make synthesizePlainDragAndDrop() synthesize drag events without DataTransfer object r=smaug
`synthesizePlainDragAndDrop()` synthesizes drag events with `DataTransfer`
object which is set to `DragEvent.dataTransfer` of `dragstart` after starting
drag session explicitly.  However, this causes
`EventStateManager::DoDefaltDragStart()` does not initialize `nsIDragService`
instance.  Therefore, synthesized drag events cannot work with editor because
`DragEvent::GetMozSourceNode()` returns `nullptr` due to
`nsIDragSession::GetSourceNode()` returning `nullptr`.

On the other hand, synthesized drag events cannot use
`nsIDragService::InvodeDragSession()` normally because of hitting an assertion.
https://searchfox.org/mozilla-central/rev/690e903ef689a4eca335b96bd903580394864a1c/widget/nsBaseDragService.cpp#230-233

This patch does:
- mark drag events caused by synthesized mouse events as "synthesized for tests"
- make `synthesizePlainDragAndDrop()` stop using
  `nsIDragService.startDragSession()`
- make `nsBaseDragService` initialize and start session even for synthesized
  `dragstart` event
- make `synthesizePlainDragAndDrop()` stop synthesizing drag events with
  `DataTransfer` object since it's normal behavior and it'll be initialized
  with `nsIDragService::GetDataTransfer()`
- make `nsBaseDragService` store `effectAllowed` for the session only when
  it's synthesized session because it's required at initializing synthesized
  default `dropEffect` value of `dragenter`, `dragover`, `dragexit` and `drop`
  events' `dataTransfer`
- make all tests which use `nsIDragService.startDragSession()` use new
  API, `nsIDragService.startDragSessionForTests()` to initialize session's
  `effectAllowed` value
- make `EventStateManager::PostHandleEvent()` set drag end point of the test
  session to `eDrop` event's screen point
- make `synthesizePlainDragAndDrop()` set drag end point of the session if
  it does not synthesize `drop` event because following `endDragSession()`
  use it at dispatching `dragend` event on the source element

Additionally, this adds `dumpFunc` new param to `synthesizePlainDragAndDrop()`
because it's really useful to investigate the reason why requesting DnD isn't
performed as expected.

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

--HG--
extra : moz-landing-system : lando
2019-12-21 12:27:06 +00:00
Noemi Erli
cc63a32cca Backed out changeset c8040f57cb4a (bug 1590485) fot failures in browser_default_zoom_multitab.js 2019-12-20 09:51:31 +02:00
Morgan Reschenberg
2895fb8739 Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-20 05:09:43 +00:00
Zibi Braniecki
bb46639778 Bug 1600528 - Migrate browser-context.inc to Fluent. r=Gijs,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D55396

--HG--
extra : moz-landing-system : lando
2019-12-18 06:26:58 +00:00
Henri Sivonen
cb595530fa Bug 1604158 - Hide the encoding detector submenu in hamburger/toolbar cases when chardetng is enabled. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D57305

--HG--
extra : moz-landing-system : lando
2019-12-16 13:43:15 +00:00
Kris Maglione
94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Noemi Erli
c220488775 Backed out changeset a8e371771008 (bug 1590485) for failing in browser_default_zoom.js 2019-12-13 00:11:08 +02:00
Morgan Reschenberg
be77302b4e Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-12 17:24:12 +00:00
Mark Hammond
5a897829db Bug 1598979 - make the device name in the sync-tabs menu visible to screen readers. r=Gijs,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D56677

--HG--
extra : moz-landing-system : lando
2019-12-11 23:45:55 +00:00