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

8571 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley ea70cbeec9 Bug 1576917 - Port PopupBlocker to JSWindowActors to make it Fission-compatible. r=NeilDeakin
This patch was started by Alex Vamvounis <a.vamvounis@gmail.com> and finished by
Mike Conley <mconley@mozilla.com>

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

--HG--
extra : moz-landing-system : lando
2020-01-22 21:24:19 +00:00
Dão Gottwald 62b6304c38 Bug 1610779 - Remove obsolete MozTabbox::_tabs and MozTabbox::_tabpanels getters. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D60653

--HG--
extra : moz-landing-system : lando
2020-01-22 14:46:41 +00:00
Sylvestre Ledru 0eafef9ee8 Bug 1607724 - Remove 3 licenses that we don't use anymore r=peterv
They were used by pdfium

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

--HG--
extra : moz-landing-system : lando
2020-01-22 11:29:03 +00:00
Mark Banner 793a87d40a Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D59691

--HG--
extra : moz-landing-system : lando
2020-01-21 20:46:06 +00:00
Mihai Alexandru Michis 2dab66d06e Backed out 9 changesets (bug 1607172, bug 1609998, bug 1608799) for causing xpcshell failures in test_parser.js
CLOSED TREE

Backed out changeset 7753083b67dd (bug 1609998)
Backed out changeset e6f5aac734ab (bug 1608799)
Backed out changeset 90ea35966b73 (bug 1608799)
Backed out changeset 6fafa451b3f9 (bug 1608799)
Backed out changeset e07a4aea2ae1 (bug 1608799)
Backed out changeset d69d6dfdccad (bug 1607172)
Backed out changeset 93023b1b6153 (bug 1607172)
Backed out changeset 99ce7a56080e (bug 1607172)
Backed out changeset 20aa5934c785 (bug 1607172)
2020-01-21 21:44:03 +02:00
Mark Banner 96709101c1 Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D59691

--HG--
extra : moz-landing-system : lando
2020-01-21 17:10:10 +00:00
Neil Deakin 6437917bea Bug 1603020, send state update messages to all child actors, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D58991

--HG--
extra : moz-landing-system : lando
2020-01-20 15:15:04 +00:00
Neil Deakin 3d7ffd608a Bug 1603020, allow sendMessageToActor to send the message to all descendants, not just process roots, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D58990

--HG--
extra : moz-landing-system : lando
2020-01-20 15:14:31 +00:00
Zibi Braniecki 79a10c61a3 Bug 1605467 - Migrate text action keys to Fluent. r=fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D59272

--HG--
extra : moz-landing-system : lando
2020-01-17 11:43:39 +00:00
Narcis Beleuzu d97f243585 Backed out changeset a2f061d89feb (bug 1605467) for causing Bug 1609898. 2020-01-17 13:23:33 +02:00
Zibi Braniecki 723beff370 Bug 1605467 - Migrate text action keys to Fluent. r=fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D59272

--HG--
extra : moz-landing-system : lando
2020-01-15 11:44:14 +00:00
Brian Grinstead fd3ed49e86 Bug 1602230 - Use an html:label with textContent instead of xul:label with [value] for toolbarbutton-badges r=Gijs
This both allows proper CSS sizing (it respects max-width), and allows for hidden overflow for long badges.
Using xul:label with textContent fixes the former but doesn't support the latter, so an html:label is used instead.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 10:49:04 +00:00
Dimi Lee d1daecd272 Bug 1600896 - P2. Use getContentBlockingLog in WindoowGlobalParent instead of getContentBlockingEvent in nsIRemoteTab. r=timhuang,Ehsan
Depends on D55779

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:34:41 +00:00
Magnus Melin fba3b80d05 Bug 1597421 - Remove unused autocompleteinput attr in autocomplete-popup.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D59606

--HG--
extra : moz-landing-system : lando
2020-01-15 08:44:59 +00:00
Magnus Melin 8d440ee8a2 Bug 1608658 - AutocompleteInput.detachController() should consider null element.mController. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D59605

--HG--
extra : moz-landing-system : lando
2020-01-14 16:22:28 +00:00
Dimi Lee 10c00c38cf Bug 1600878 - P3. Do not store contentBlockingEvent in RemoteSecurityUI.jsm r=timhuang,Ehsan
ContentBlockingEvents is now accessed via WindowGlobalActor::ContentBlockingEvents.
Updating and storing contentBlockingEvent in RemoteSecurityUI are no longer needed.

Depends on D55622

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:27 +00:00
Dimi Lee 27d4d88bfe Bug 1600878 - P2. Use contentBlockingEvents in WindowGlobalParent instead of contentBlockingEvent in RemoteSecurityUI r=timhuang,Ehsan
ContentBlockingEvent in RemoteSecurityUI is updated after receiving a notification from a child process.
Since contentBlockingEvent will be removed from the child, this patch removes the use of
contentBlockingEvent in RemoteSecurityUI and uses the API defined in WindowGlobalActor.

Depends on D55621

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:23 +00:00
Masayuki Nakano 90cd2122dd Bug 970802 - part 5: Make `AutoEditActionDataSetter` created method dispatch "beforeinput" event r=smaug,m_kato
`AutoEditActionDataSetter` is created in the stack when editor's public method
is called and that guarantees lifetime of global objects in editor such as
editor itself, selection controller, etc.

The dispatcher of `beforeinput` event returns `NS_ERROR_EDITOR_ACTION_CANCELED`
if an event is actually dispatched but canceled.  The reason why it's an error
is, editor code must stop handling anything when any methods return error.
So, returning an error code is reasonable in editor module.  But when it's
filtered by `EditorBase::ToGenericNSResult()` at return statement of public
methods, it's converted to `NS_SUCCESS_DOM_NO_OPERATION`.  This avoids throwing
new exception, but editor class users in C++ can distinguish whether each edit
action is canceled or handled.  The reason why we should not throw new
exception from XPCOM API is, without taking care of each caller may break some
our UI (especially for avoiding to break comm-central).  Therefore, this patch
does not make XPCOM methods return error code when `beforeinput` event is
canceled.

In most cases, immediately after creating `AutoEditActionDataSetter` is good
timing to dispatch `beforeinput` event since editor has not touched the DOM
yet.  If `beforeinput` requires `data` or `dataTransfer`, methods need to
dispatch `beforeinput` event after that.  Alhtough this is not a good thing
from point of view of consistency of the code.  However, I have no better
idea.

Note 1: Our implementation does NOT conform to the spec about event order
between `keypress` and `beforeinput` (dispatching `beforeinput` event after
`keypress` event).  However, we follow all other browsers' behavior so that it
must be safe and the spec should be updated for backward compatibility.
Spec issue: https://github.com/w3c/uievents/issues/220

Note 2: Our implementation does NOT conform to the spec about event order
between `compositionupdate` and `beforeinput`.  Our behavior is same as
Safari, but different from Chrome.  This might cause web-compat issues.
However, our behavior does make sense from point of view of consistency of
event spec.  Additionally, at both `compositionupdate` and `beforeinput`,
composition string in editor has not been modified yet.  Therefore, this
may not cause web-compat issues (and I hope so).
Spec issue: https://github.com/w3c/input-events/issues/49

Note that this patch makes editor detect bugs that `beforeinput` event hasn't
been handled yet when it dispatches `input` event or modifying `data` and
`dataTransfer` value are modified after dispatching `beforeinput` event with
`MOZ_ASSERT`s.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:18:51 +00:00
Masayuki Nakano 0bf0eeeaa0 Bug 970802 - part 1: Add `beforeinput` event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:14:50 +00:00
Razvan Maries 0df75c8122 Backed out 5 changesets (bug 970802) for xpcshell perma fails. CLOSED TREE
Backed out changeset 5511edd700f7 (bug 970802)
Backed out changeset 1fb9cf2264b6 (bug 970802)
Backed out changeset 6b185296c742 (bug 970802)
Backed out changeset ce6853e64ed6 (bug 970802)
Backed out changeset aa9bd45c09b1 (bug 970802)
2020-01-14 04:41:15 +02:00
Masayuki Nakano 00f4c31bb7 Bug 970802 - part 5: Make `AutoEditActionDataSetter` created method dispatch "beforeinput" event r=smaug,m_kato
`AutoEditActionDataSetter` is created in the stack when editor's public method
is called and that guarantees lifetime of global objects in editor such as
editor itself, selection controller, etc.

The dispatcher of `beforeinput` event returns `NS_ERROR_EDITOR_ACTION_CANCELED`
if an event is actually dispatched but canceled.  The reason why it's an error
is, editor code must stop handling anything when any methods return error.
So, returning an error code is reasonable in editor module.  But when it's
filtered by `EditorBase::ToGenericNSResult()` at return statement of public
methods, it's converted to `NS_SUCCESS_DOM_NO_OPERATION`.  This avoids throwing
new exception, but editor class users in C++ can distinguish whether each edit
action is canceled or handled.  The reason why we should not throw new
exception from XPCOM API is, without taking care of each caller may break some
our UI (especially for avoiding to break comm-central).  Therefore, this patch
does not make XPCOM methods return error code when `beforeinput` event is
canceled.

In most cases, immediately after creating `AutoEditActionDataSetter` is good
timing to dispatch `beforeinput` event since editor has not touched the DOM
yet.  If `beforeinput` requires `data` or `dataTransfer`, methods need to
dispatch `beforeinput` event after that.  Alhtough this is not a good thing
from point of view of consistency of the code.  However, I have no better
idea.

Note 1: Our implementation does NOT conform to the spec about event order
between `keypress` and `beforeinput` (dispatching `beforeinput` event after
`keypress` event).  However, we follow all other browsers' behavior so that it
must be safe and the spec should be updated for backward compatibility.
Spec issue: https://github.com/w3c/uievents/issues/220

Note 2: Our implementation does NOT conform to the spec about event order
between `compositionupdate` and `beforeinput`.  Our behavior is same as
Safari, but different from Chrome.  This might cause web-compat issues.
However, our behavior does make sense from point of view of consistency of
event spec.  Additionally, at both `compositionupdate` and `beforeinput`,
composition string in editor has not been modified yet.  Therefore, this
may not cause web-compat issues (and I hope so).
Spec issue: https://github.com/w3c/input-events/issues/49

Note that this patch makes editor detect bugs that `beforeinput` event hasn't
been handled yet when it dispatches `input` event or modifying `data` and
`dataTransfer` value are modified after dispatching `beforeinput` event with
`MOZ_ASSERT`s.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 01:09:45 +00:00
Masayuki Nakano 583465bce4 Bug 970802 - part 1: Add `beforeinput` event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 09:22:50 +00:00
Gijs Kruitbosch 6ad266aef8 Bug 1600919 - work around XUL layout bug by manually measuring wrapping description element in reset profile dialog, r=MattN,zbraniecki
This is basically the same technique as `descriptionHeightWorkaround` in the
PanelMultiView implementation (from bug 1009116).

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

--HG--
extra : moz-landing-system : lando
2020-01-13 23:42:29 +00:00
Alexander Surkov b8bdb342d2 Bug 1606108 - Autoscroll works only once in iframe r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58390

--HG--
extra : moz-landing-system : lando
2020-01-10 13:41:27 +00:00
Emilio Cobos Álvarez 8315ea0c9c Bug 1608159 - Make <xul:image> inline-level by default. r=Gijs
This also matches html <img>.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 10:29:12 +00:00
Alexander Surkov 49360f819d Bug 1601733 - add sjs script into test suite that generates a document from code snippet r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D58992

--HG--
rename : accessible/tests/browser/fission_document_builder.sjs => testing/mochitest/document-builder.sjs
extra : moz-landing-system : lando
2020-01-08 18:41:01 +00:00
Emilio Cobos Álvarez e7783b322a Bug 1607557 - Make labels and button inline level. r=Gijs
<xul:description> doesn't respect `display` and effectively behaves like
`display: flow-root` unless it has the `value` attribute.

<xul:label> and <xul:button> are expected to be inline level when in HTML
blocks.

The former fixes the about dialog. The later fixes the session restore page,
which in today's nightly shows the two buttons in different lines.

I could try to write more targeted fixes if you want, and probably switching to
html layout while at it.

<label> can be display: inline, at least in the about dialog. And the
<xul:button> in the restore session page can be <html:buttons> (inline-blocks).

But then again the involved elements always create specific layout boxes
disregarding display, so this patch does effectively the same.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 12:17:07 +00:00
Brian Grinstead c777fd4ce8 Bug 1607181 - eagerly set [smoothscroll] on arrowscrollbox instead of waiting for the getter to be called;r=dao
The XBL implementation set the attribute in the constructor if it wasn't already:
- https://hg.mozilla.org/mozilla-central/file/94eaa02e0ea1725512893cd5139b1d200fcf4fdd/toolkit/content/widgets/scrollbox.xml#l34.

In the Custom Element conversion this check was moved into the getter, which isn't called until a scrollbutton is clicked,
which meant that we'd get non-smooth scrolling if just mousewheeling the button. I can't find any reason for intentionally
changing that in the bug or review, so I think it was just an oversight.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 13:15:32 +00:00
Kirk Steuber ab4a9b729a Bug 1603827 - Replace XULElement.orient with getAttribute/setAttribute r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57665

--HG--
extra : moz-landing-system : lando
2020-01-07 19:26:27 +00:00
Brindusan Cristian 5d7bfb85f1 Backed out 2 changesets (bug 1603827) for build bustages at XULElementBinding.cpp. CLOSED TREE
Backed out changeset e975644f8000 (bug 1603827)
Backed out changeset f6b5e15b13af (bug 1603827)
2020-01-07 19:31:48 +02:00
Kirk Steuber 544bd79ea5 Bug 1603827 - Replace XULElement.orient with getAttribute/setAttribute r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57665

--HG--
extra : moz-landing-system : lando
2020-01-07 17:16:01 +00:00
shindli 25c99bbe4b Backed out 2 changesets (bug 1603827) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsXULElement.h: CLOSED TREE
Backed out changeset 0acbc135a17d (bug 1603827)
Backed out changeset db69be9423ae (bug 1603827)
2020-01-07 18:55:28 +02:00
Kirk Steuber 44408fe91e Bug 1603827 - Replace XULElement.orient with getAttribute/setAttribute r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57665

--HG--
extra : moz-landing-system : lando
2020-01-07 16:41:35 +00:00
Tom Schuster c73016a38b Bug 1605854 - Fix remaining tests using uneval/toSource r=mccr8,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58685

--HG--
extra : moz-landing-system : lando
2020-01-07 13:19:30 +00:00
Thomas Nguyen 37de21b36d Bug 1604813 - Clear checked value if the "Remember this decision" checkbox is hidden. r=johannh
If we are setting up a new permission prompt from iframe navigation, the popup
notification may reuse "checked" value from previous notification, even if the
checkbox is hidden. We should clear checkbox.checked (set to false) if the
checkbox is hidden

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

--HG--
extra : moz-landing-system : lando
2020-01-07 10:47:44 +00:00
Brindusan Cristian 39a0983bcc Bug 1477593 - Fix ESlint. CLOSED TREE 2020-01-07 14:35:17 +02:00
Greg V af84abd92f Bug 1477593 - fix about:networking on tier-3 platforms r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D58855

--HG--
extra : moz-landing-system : lando
2020-01-07 11:15:15 +00:00
Kris Maglione 955e22bbdb Bug 1604003: Part 2 - Convert RemoteController.js to a JSM. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D57557

--HG--
rename : toolkit/modules/RemoteController.js => toolkit/modules/RemoteController.jsm
extra : moz-landing-system : lando
2020-01-07 00:04:57 +00:00
Kris Maglione 912ada80ab Bug 1604003: Part 1 - Correctly unregister controller when destroying browser. r=NeilDeakin
It was being set to null before we tried to remove it, which left a dead
controller registered and consuming commands after a frameloader rebuild.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 15:24:15 +00:00
Neil Deakin 16c3f34381 Bug 1602616, ubuntu18.04 has a taller titlebar, so increment the allowed range where the popup's height can be by a few pixels, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D58460

--HG--
extra : moz-landing-system : lando
2020-01-06 20:05:18 +00:00
Neil Deakin 9c5eae7c36 Bug 1602624, move buttons down a bit to add room so that the larger themed popup can fit aligned in the available window space in ubuntu18.04, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D58461

--HG--
extra : moz-landing-system : lando
2020-01-06 20:05:15 +00:00
Neil Deakin 0532548244 Bug 1602620, adjust the margin to accomodate the different theme in ubuntu 18.04, this was causing the popup to not fit aligned above the button and get flipped to the other side of the button, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D58689

--HG--
extra : moz-landing-system : lando
2020-01-06 20:05:13 +00:00
Kirk Steuber 55bdd37f7c Bug 1603830 - Replace XULElement.ordinal with el.style.MozBoxOrdinalGroup r=bgrins
Depends on D58670

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

--HG--
extra : moz-landing-system : lando
2020-01-06 20:02:43 +00:00
Brian Hackett 99ff90baa1 Bug 1607014 Part 2 - Remove references to toolkit/recordreplay/udis86, r=jlast.
Depends on D58693

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

--HG--
extra : moz-landing-system : lando
2020-01-05 01:43:41 +00:00
Jason Laster 9b99e1d9c6 Bug 1606949 - Revert "Bug 1606949 - Add about:replay. "
This reverts commit 5721aff7c1f3ffe5491d277dc01f6eec32771f12.

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

--HG--
extra : moz-landing-system : lando
2020-01-05 05:58:37 +00:00
Jason Laster d3eb64cb4d Bug 1606949 - Add about:replay. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D58661

--HG--
extra : moz-landing-system : lando
2020-01-05 02:04:18 +00:00
Emilio Cobos Álvarez 7d9dd50759 Bug 1606263 - Make default tooltip rtl when appropriate. r=Itiel
After bug 1598841, they don't inherit `direction` from the root, so we need to
explicitly style the default toltip.

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

--HG--
extra : moz-landing-system : lando
2019-12-30 14:47:46 +00:00
alwu 2f1d5440af Bug 1585231 - refactor test. r=bryce
We remove `file_blockMedia_shouldPlay.html` and `file_blockMedia_shouldNotPlay.html` and move those operation on test directly, and do those operations after media fully loading.

And seperate two different test cases to two testing tasks.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 23:24:14 +00:00
Zibi Braniecki 3b0c2d1abd Bug 1604960 - Migrate all text actions to use Fluent. r=fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D57713

--HG--
extra : moz-landing-system : lando
2019-12-25 10:01:46 +00:00
Ciure Andrei c79fc6e32a Backed out changeset 0267e42c0db5 (bug 1604960) for causing bc permafails 2019-12-25 05:15:16 +02:00