Commit Graph

976 Commits

Author SHA1 Message Date
Masayuki Nakano
dace885161 Bug 1449831 - part 4: Add automated tests for InputEvent.getTargetRanges() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D64731

--HG--
extra : moz-landing-system : lando
2020-03-03 03:41:16 +00:00
Masayuki Nakano
e388597a7d Bug 1611360 - part 2: Change test_bug1151186.html to mochitest-plain r=smaug
Now, we have `SpecialPowers` to use `DOMWindowUtils`.  Therefore,
`test_bug1151186.html` can be a mochitest-plain and it's better since the
test checks behavior on web apps.

Depends on D62396

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

--HG--
rename : widget/tests/test_bug1151186.html => editor/libeditor/tests/test_bug1151186.html
extra : moz-landing-system : lando
2020-02-11 11:47:03 +00:00
Masayuki Nakano
96766027db Bug 1611360 - part 1: Make sure that test_bug1151186.html set focus to its window forcibly when the document does not receive focus event r=smaug
For testing the original symptom of bug 1151186, this test needs to set focus
to a `contenteditable` editor from `focus` event listener of the documen.
However, according to the oranges, `focus` event for the document is not fired
as expected only on Linux.  The reason is, the document sometimes does not get
focus automatically.  Therefore, this patch tries to listen `focus` event first
for keeping original path.  But if the document is not activated automatically,
sets focus to its window when next macro task runs.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 20:47:07 +00:00
Marco Castelluccio
5b6b66ec42 Bug 1613516 - Disable widget/tests/browser/browser_test_clipboardcache.js on Linux coverage builds as it consistently times out. r=aryx
Depends on D61994

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

--HG--
extra : moz-landing-system : lando
2020-02-07 12:32:07 +00:00
Masayuki Nakano
b1bf7e0db4 Bug 1540043 - part 1: Move all constants and methods of nsIPlaintextEditor to nsIEditor and make nsIPlaintextEditor inherit nsIEditor r=m_kato
For preparing to remove `nsIPlaintextEditor` interface, this patch moves
all of them to `nsIEditor`, but for avoiding bustage in comm-central, makes
`nsIPlaintextEditor` inherit `nsIEditor` for now (i.e., even with this patch,
script can access old `nsIPlaintextEditor` members with the interface.

In C++ code, this patch moves `SetWrapColumn()`, `InsertTextAsAction()`,
`InsertTextAsSubAction()` and `InsertLineBreakAsSubAction()` because
they do common things between `TextEditor` and `HTMLEditor`.  On the other
hand, this does not move `TextEditor::GetTextLength()` because it's designed
only for `TextEditor`.

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

--HG--
rename : editor/libeditor/tests/test_nsIPlaintextEditor_insertLineBreak.html => editor/libeditor/tests/test_nsIEditor_insertLineBreak.html
extra : moz-landing-system : lando
2020-01-24 08:33:42 +00:00
Masayuki Nakano
2c7d675626 Bug 1602626 - Make window_wheeltransaction.xhtml compute point to fire wheel events dynamically r=smaug
Currently, offset in root view in the test is copied from constants which are
computed from CSS rules.  However, the point may be edge of each view and
that might be outside if it meets round error of layout.  For making this
test more stable in any environments, this patch makes the test compute
point to fire wheel events dynamically.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 15:07:17 +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
Marco Castelluccio
757d5fb883 Bug 1608080 - Disable widget/tests/browser/browser_test_clipboardcache.js as it is consistently timing out with the Linux coverage build. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D59414

--HG--
extra : moz-landing-system : lando
2020-01-10 10:56:57 +00:00
Masayuki Nakano
3abbdc38ed Bug 1605855 - Make window_composition_text_querycontent.xhtml high DPI aware r=m_kato
The failures which you see running the tests on high DPI display are caused by
`synthesizeQuery*` returns device pixels, but some of the failures
calculating/comparing with CSS pixels, or the other of them caused just
rounding error.  This patch makes they refer `window.devicePixelRatio` and/or
use `isfuzzy` to compare.

The patched tests pass on 100%, 125%, 150%, 175%, 200% and 225% on Win10-ja.

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

--HG--
extra : moz-landing-system : lando
2019-12-25 10:44:36 +00:00
Emma Malysz
ebaa98b111 Bug 1601113, replace URIs ending in vnd.mozilla.xul+xml with xhtml+xml r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57148

--HG--
extra : moz-landing-system : lando
2019-12-17 00:33:16 +00:00
Kris Maglione
39d7eb39ed Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:48 +00:00
Kris Maglione
9853440599 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +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
shindli
91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione
cee320b5fb Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:41 +00:00
Kris Maglione
3ca78ce8e3 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione
16a9b29848 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-10 23:07:13 +00:00
Edwin Takahashi
f90bd5a399 Bug 1599943 - mark widget/tests/test_scrollbar_colors.html as expected failure on ubuntu1804 r=jmaher
Changes:

For the time being, mark the test as expected failure on ubuntu1804, since the values the test checks for are coded in the test and need to be updated once platform against which test runs is updated to ubuntu1804.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 17:58:53 +00:00
Noemi Erli
82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione
84fa9ffb2a Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione
fa3556c3fc Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione
910eab35d2 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-07 19:11:58 +00:00
Daniel Varga
84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione
cd579034cc Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:43 +00:00
Kris Maglione
b5238224ba Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione
20da940e14 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-06 22:14:14 +00:00
Julian Descottes
81e34d9437 Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D55305

--HG--
extra : moz-landing-system : lando
2019-12-05 11:07:10 +00:00
Emma Malysz
5ce533edb5 Bug 1596327, rename .xul test files in widget/ to .xhtml r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D53047

--HG--
rename : widget/cocoa/crashtests/444260-1.xul => widget/cocoa/crashtests/444260-1.xhtml
rename : widget/tests/bug586713_window.xul => widget/tests/bug586713_window.xhtml
rename : widget/tests/chrome_context_menus_win.xul => widget/tests/chrome_context_menus_win.xhtml
rename : widget/tests/empty_window.xul => widget/tests/empty_window.xhtml
rename : widget/tests/native_menus_window.xul => widget/tests/native_menus_window.xhtml
rename : widget/tests/native_mouse_mac_window.xul => widget/tests/native_mouse_mac_window.xhtml
rename : widget/tests/standalone_native_menu_window.xul => widget/tests/standalone_native_menu_window.xhtml
rename : widget/tests/system_font_changes.xul => widget/tests/system_font_changes.xhtml
rename : widget/tests/taskbar_previews.xul => widget/tests/taskbar_previews.xhtml
rename : widget/tests/test_bug1123480.xul => widget/tests/test_bug1123480.xhtml
rename : widget/tests/test_bug343416.xul => widget/tests/test_bug343416.xhtml
rename : widget/tests/test_bug428405.xul => widget/tests/test_bug428405.xhtml
rename : widget/tests/test_bug429954.xul => widget/tests/test_bug429954.xhtml
rename : widget/tests/test_bug444800.xul => widget/tests/test_bug444800.xhtml
rename : widget/tests/test_bug466599.xul => widget/tests/test_bug466599.xhtml
rename : widget/tests/test_bug478536.xul => widget/tests/test_bug478536.xhtml
rename : widget/tests/test_bug485118.xul => widget/tests/test_bug485118.xhtml
rename : widget/tests/test_bug517396.xul => widget/tests/test_bug517396.xhtml
rename : widget/tests/test_bug522217.xul => widget/tests/test_bug522217.xhtml
rename : widget/tests/test_bug538242.xul => widget/tests/test_bug538242.xhtml
rename : widget/tests/test_bug586713.xul => widget/tests/test_bug586713.xhtml
rename : widget/tests/test_bug593307.xul => widget/tests/test_bug593307.xhtml
rename : widget/tests/test_bug596600.xul => widget/tests/test_bug596600.xhtml
rename : widget/tests/test_bug673301.xul => widget/tests/test_bug673301.xhtml
rename : widget/tests/test_bug760802.xul => widget/tests/test_bug760802.xhtml
rename : widget/tests/test_chrome_context_menus_win.xul => widget/tests/test_chrome_context_menus_win.xhtml
rename : widget/tests/test_clipboard.xul => widget/tests/test_clipboard.xhtml
rename : widget/tests/test_composition_text_querycontent.xul => widget/tests/test_composition_text_querycontent.xhtml
rename : widget/tests/test_input_events_on_deactive_window.xul => widget/tests/test_input_events_on_deactive_window.xhtml
rename : widget/tests/test_key_event_counts.xul => widget/tests/test_key_event_counts.xhtml
rename : widget/tests/test_keycodes.xul => widget/tests/test_keycodes.xhtml
rename : widget/tests/test_mouse_scroll.xul => widget/tests/test_mouse_scroll.xhtml
rename : widget/tests/test_native_menus.xul => widget/tests/test_native_menus.xhtml
rename : widget/tests/test_native_mouse_mac.xul => widget/tests/test_native_mouse_mac.xhtml
rename : widget/tests/test_panel_mouse_coords.xul => widget/tests/test_panel_mouse_coords.xhtml
rename : widget/tests/test_platform_colors.xul => widget/tests/test_platform_colors.xhtml
rename : widget/tests/test_position_on_resize.xul => widget/tests/test_position_on_resize.xhtml
rename : widget/tests/test_sizemode_events.xul => widget/tests/test_sizemode_events.xhtml
rename : widget/tests/test_standalone_native_menu.xul => widget/tests/test_standalone_native_menu.xhtml
rename : widget/tests/test_system_font_changes.xul => widget/tests/test_system_font_changes.xhtml
rename : widget/tests/test_system_status_bar.xul => widget/tests/test_system_status_bar.xhtml
rename : widget/tests/test_taskbar_progress.xul => widget/tests/test_taskbar_progress.xhtml
rename : widget/tests/test_transferable_overflow.xul => widget/tests/test_transferable_overflow.xhtml
rename : widget/tests/test_wheeltransaction.xul => widget/tests/test_wheeltransaction.xhtml
rename : widget/tests/window_bug429954.xul => widget/tests/window_bug429954.xhtml
rename : widget/tests/window_bug478536.xul => widget/tests/window_bug478536.xhtml
rename : widget/tests/window_bug522217.xul => widget/tests/window_bug522217.xhtml
rename : widget/tests/window_bug538242.xul => widget/tests/window_bug538242.xhtml
rename : widget/tests/window_bug593307_centerscreen.xul => widget/tests/window_bug593307_centerscreen.xhtml
rename : widget/tests/window_bug593307_offscreen.xul => widget/tests/window_bug593307_offscreen.xhtml
rename : widget/tests/window_composition_text_querycontent.xul => widget/tests/window_composition_text_querycontent.xhtml
rename : widget/tests/window_state_windows.xul => widget/tests/window_state_windows.xhtml
rename : widget/tests/window_wheeltransaction.xul => widget/tests/window_wheeltransaction.xhtml
extra : moz-landing-system : lando
2019-11-20 19:05:30 +00:00
Ciure Andrei
ebbc1206eb Backed out changeset a6913f4d5a14 (bug 1596327) for causing ESlint failures CLOSED TREE
--HG--
rename : widget/cocoa/crashtests/444260-1.xhtml => widget/cocoa/crashtests/444260-1.xul
rename : widget/tests/bug586713_window.xhtml => widget/tests/bug586713_window.xul
rename : widget/tests/chrome_context_menus_win.xhtml => widget/tests/chrome_context_menus_win.xul
rename : widget/tests/empty_window.xhtml => widget/tests/empty_window.xul
rename : widget/tests/native_menus_window.xhtml => widget/tests/native_menus_window.xul
rename : widget/tests/native_mouse_mac_window.xhtml => widget/tests/native_mouse_mac_window.xul
rename : widget/tests/standalone_native_menu_window.xhtml => widget/tests/standalone_native_menu_window.xul
rename : widget/tests/system_font_changes.xhtml => widget/tests/system_font_changes.xul
rename : widget/tests/taskbar_previews.xhtml => widget/tests/taskbar_previews.xul
rename : widget/tests/test_bug1123480.xhtml => widget/tests/test_bug1123480.xul
rename : widget/tests/test_bug343416.xhtml => widget/tests/test_bug343416.xul
rename : widget/tests/test_bug428405.xhtml => widget/tests/test_bug428405.xul
rename : widget/tests/test_bug429954.xhtml => widget/tests/test_bug429954.xul
rename : widget/tests/test_bug444800.xhtml => widget/tests/test_bug444800.xul
rename : widget/tests/test_bug466599.xhtml => widget/tests/test_bug466599.xul
rename : widget/tests/test_bug478536.xhtml => widget/tests/test_bug478536.xul
rename : widget/tests/test_bug485118.xhtml => widget/tests/test_bug485118.xul
rename : widget/tests/test_bug517396.xhtml => widget/tests/test_bug517396.xul
rename : widget/tests/test_bug522217.xhtml => widget/tests/test_bug522217.xul
rename : widget/tests/test_bug538242.xhtml => widget/tests/test_bug538242.xul
rename : widget/tests/test_bug586713.xhtml => widget/tests/test_bug586713.xul
rename : widget/tests/test_bug593307.xhtml => widget/tests/test_bug593307.xul
rename : widget/tests/test_bug596600.xhtml => widget/tests/test_bug596600.xul
rename : widget/tests/test_bug673301.xhtml => widget/tests/test_bug673301.xul
rename : widget/tests/test_bug760802.xhtml => widget/tests/test_bug760802.xul
rename : widget/tests/test_chrome_context_menus_win.xhtml => widget/tests/test_chrome_context_menus_win.xul
rename : widget/tests/test_clipboard.xhtml => widget/tests/test_clipboard.xul
rename : widget/tests/test_composition_text_querycontent.xhtml => widget/tests/test_composition_text_querycontent.xul
rename : widget/tests/test_input_events_on_deactive_window.xhtml => widget/tests/test_input_events_on_deactive_window.xul
rename : widget/tests/test_key_event_counts.xhtml => widget/tests/test_key_event_counts.xul
rename : widget/tests/test_keycodes.xhtml => widget/tests/test_keycodes.xul
rename : widget/tests/test_mouse_scroll.xhtml => widget/tests/test_mouse_scroll.xul
rename : widget/tests/test_native_menus.xhtml => widget/tests/test_native_menus.xul
rename : widget/tests/test_native_mouse_mac.xhtml => widget/tests/test_native_mouse_mac.xul
rename : widget/tests/test_panel_mouse_coords.xhtml => widget/tests/test_panel_mouse_coords.xul
rename : widget/tests/test_platform_colors.xhtml => widget/tests/test_platform_colors.xul
rename : widget/tests/test_position_on_resize.xhtml => widget/tests/test_position_on_resize.xul
rename : widget/tests/test_sizemode_events.xhtml => widget/tests/test_sizemode_events.xul
rename : widget/tests/test_standalone_native_menu.xhtml => widget/tests/test_standalone_native_menu.xul
rename : widget/tests/test_system_font_changes.xhtml => widget/tests/test_system_font_changes.xul
rename : widget/tests/test_system_status_bar.xhtml => widget/tests/test_system_status_bar.xul
rename : widget/tests/test_taskbar_progress.xhtml => widget/tests/test_taskbar_progress.xul
rename : widget/tests/test_transferable_overflow.xhtml => widget/tests/test_transferable_overflow.xul
rename : widget/tests/test_wheeltransaction.xhtml => widget/tests/test_wheeltransaction.xul
rename : widget/tests/window_bug429954.xhtml => widget/tests/window_bug429954.xul
rename : widget/tests/window_bug478536.xhtml => widget/tests/window_bug478536.xul
rename : widget/tests/window_bug522217.xhtml => widget/tests/window_bug522217.xul
rename : widget/tests/window_bug538242.xhtml => widget/tests/window_bug538242.xul
rename : widget/tests/window_bug593307_centerscreen.xhtml => widget/tests/window_bug593307_centerscreen.xul
rename : widget/tests/window_bug593307_offscreen.xhtml => widget/tests/window_bug593307_offscreen.xul
rename : widget/tests/window_composition_text_querycontent.xhtml => widget/tests/window_composition_text_querycontent.xul
rename : widget/tests/window_state_windows.xhtml => widget/tests/window_state_windows.xul
rename : widget/tests/window_wheeltransaction.xhtml => widget/tests/window_wheeltransaction.xul
2019-11-20 03:40:43 +02:00
Emma Malysz
5c2d285798 Bug 1596327, rename .xul test files in widget/ to .xhtml r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D53047

--HG--
rename : widget/cocoa/crashtests/444260-1.xul => widget/cocoa/crashtests/444260-1.xhtml
rename : widget/tests/bug586713_window.xul => widget/tests/bug586713_window.xhtml
rename : widget/tests/chrome_context_menus_win.xul => widget/tests/chrome_context_menus_win.xhtml
rename : widget/tests/empty_window.xul => widget/tests/empty_window.xhtml
rename : widget/tests/native_menus_window.xul => widget/tests/native_menus_window.xhtml
rename : widget/tests/native_mouse_mac_window.xul => widget/tests/native_mouse_mac_window.xhtml
rename : widget/tests/standalone_native_menu_window.xul => widget/tests/standalone_native_menu_window.xhtml
rename : widget/tests/system_font_changes.xul => widget/tests/system_font_changes.xhtml
rename : widget/tests/taskbar_previews.xul => widget/tests/taskbar_previews.xhtml
rename : widget/tests/test_bug1123480.xul => widget/tests/test_bug1123480.xhtml
rename : widget/tests/test_bug343416.xul => widget/tests/test_bug343416.xhtml
rename : widget/tests/test_bug428405.xul => widget/tests/test_bug428405.xhtml
rename : widget/tests/test_bug429954.xul => widget/tests/test_bug429954.xhtml
rename : widget/tests/test_bug444800.xul => widget/tests/test_bug444800.xhtml
rename : widget/tests/test_bug466599.xul => widget/tests/test_bug466599.xhtml
rename : widget/tests/test_bug478536.xul => widget/tests/test_bug478536.xhtml
rename : widget/tests/test_bug485118.xul => widget/tests/test_bug485118.xhtml
rename : widget/tests/test_bug517396.xul => widget/tests/test_bug517396.xhtml
rename : widget/tests/test_bug522217.xul => widget/tests/test_bug522217.xhtml
rename : widget/tests/test_bug538242.xul => widget/tests/test_bug538242.xhtml
rename : widget/tests/test_bug586713.xul => widget/tests/test_bug586713.xhtml
rename : widget/tests/test_bug593307.xul => widget/tests/test_bug593307.xhtml
rename : widget/tests/test_bug596600.xul => widget/tests/test_bug596600.xhtml
rename : widget/tests/test_bug673301.xul => widget/tests/test_bug673301.xhtml
rename : widget/tests/test_bug760802.xul => widget/tests/test_bug760802.xhtml
rename : widget/tests/test_chrome_context_menus_win.xul => widget/tests/test_chrome_context_menus_win.xhtml
rename : widget/tests/test_clipboard.xul => widget/tests/test_clipboard.xhtml
rename : widget/tests/test_composition_text_querycontent.xul => widget/tests/test_composition_text_querycontent.xhtml
rename : widget/tests/test_input_events_on_deactive_window.xul => widget/tests/test_input_events_on_deactive_window.xhtml
rename : widget/tests/test_key_event_counts.xul => widget/tests/test_key_event_counts.xhtml
rename : widget/tests/test_keycodes.xul => widget/tests/test_keycodes.xhtml
rename : widget/tests/test_mouse_scroll.xul => widget/tests/test_mouse_scroll.xhtml
rename : widget/tests/test_native_menus.xul => widget/tests/test_native_menus.xhtml
rename : widget/tests/test_native_mouse_mac.xul => widget/tests/test_native_mouse_mac.xhtml
rename : widget/tests/test_panel_mouse_coords.xul => widget/tests/test_panel_mouse_coords.xhtml
rename : widget/tests/test_platform_colors.xul => widget/tests/test_platform_colors.xhtml
rename : widget/tests/test_position_on_resize.xul => widget/tests/test_position_on_resize.xhtml
rename : widget/tests/test_sizemode_events.xul => widget/tests/test_sizemode_events.xhtml
rename : widget/tests/test_standalone_native_menu.xul => widget/tests/test_standalone_native_menu.xhtml
rename : widget/tests/test_system_font_changes.xul => widget/tests/test_system_font_changes.xhtml
rename : widget/tests/test_system_status_bar.xul => widget/tests/test_system_status_bar.xhtml
rename : widget/tests/test_taskbar_progress.xul => widget/tests/test_taskbar_progress.xhtml
rename : widget/tests/test_transferable_overflow.xul => widget/tests/test_transferable_overflow.xhtml
rename : widget/tests/test_wheeltransaction.xul => widget/tests/test_wheeltransaction.xhtml
rename : widget/tests/window_bug429954.xul => widget/tests/window_bug429954.xhtml
rename : widget/tests/window_bug478536.xul => widget/tests/window_bug478536.xhtml
rename : widget/tests/window_bug522217.xul => widget/tests/window_bug522217.xhtml
rename : widget/tests/window_bug538242.xul => widget/tests/window_bug538242.xhtml
rename : widget/tests/window_bug593307_centerscreen.xul => widget/tests/window_bug593307_centerscreen.xhtml
rename : widget/tests/window_bug593307_offscreen.xul => widget/tests/window_bug593307_offscreen.xhtml
rename : widget/tests/window_composition_text_querycontent.xul => widget/tests/window_composition_text_querycontent.xhtml
rename : widget/tests/window_state_windows.xul => widget/tests/window_state_windows.xhtml
rename : widget/tests/window_wheeltransaction.xul => widget/tests/window_wheeltransaction.xhtml
extra : moz-landing-system : lando
2019-11-19 19:07:44 +00:00
Emilio Cobos Álvarez
06d4249d44 Bug 1596800 - Remove document.getBindingParent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D53342

--HG--
extra : moz-landing-system : lando
2019-11-18 19:06:51 +00:00
Moritz Birghan
975648e245 Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-11-18 13:03:58 +00:00
Sebastian Hengst
0341151d63 Bug 1594981 - update Core::DOM* and Core::Storage* bugzilla product and component meta data in moz.build files after reorganization in bug 1594717. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D52345

--HG--
extra : moz-landing-system : lando
2019-11-08 12:17:57 +00:00
Coroiu Cristina
27a753cc4a Backed out changeset 96048cce4b80 (bug 1571656) for xpcshell failures at toolkit/components/places/tests/unifiedcomplete/test_autofill_origins.js on a CLOSED TREE 2019-11-06 22:59:45 +02:00
Moritz Birghan
70c7a633fb Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-11-06 18:07:54 +00:00
Brendan Dahl
eafc9e3293 Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-05 17:56:28 +00:00
Mihai Alexandru Michis
b819bd25aa Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
2019-11-05 09:24:26 +02:00
Brendan Dahl
0c0da7791e Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 23:37:31 +00:00
Dorel Luca
0207ce5451 Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl
247b257cfa Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00
Emilio Cobos Álvarez
cc80d088a2 Bug 1591968 - Put window.mozPaintCount behind a default-off pref. r=bzbarsky
It's not the kind of thing we want people to allow observing, generally, and
even less so the kind of thing that we may want people to rely on.

Move internal callers (all of them tests) to a new DOMWindowUtils.paintCount
method.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 10:25:53 +00:00
Geoff Brown
c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Makoto Kato
1ab2eca2d2 Bug 1584901 - Convert tail space to NBSP in composition string. r=masayuki
This is related to bug 1530649. When using <span> element with contentedtiable,
we won't insert <br> element at last. When Korean IME on macOS commits
composition by space key, composition string has space.

Gekco removes U+0020 space when it is last character into editing host. To keep
whitespace, we have to replace with NBSP when it is last.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 08:16:18 +00:00
Andrew McCreight
ee312ab55b Bug 1579835, part 3 - Fix ChromeUtils::RequestProcInfo() with Fission. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D45376

--HG--
extra : moz-landing-system : lando
2019-09-25 22:40:44 +00:00
Kris Maglione
6f808effff Bug 1553804: Follow-up: Fix another straggling chrome mochitest failure. r=bustage
MANUAL PUSH: Bustage fix.

--HG--
extra : amend_source : c8fecfa9ea6cf4867e58eba41b2092e636bbdac1
2019-09-20 11:35:54 -07:00
Kris Maglione
685d91c901 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : 86b3d469b4ff9f22e5757f83450b956a4c769785
extra : histedit_source : 2bf945343632b15eb79cf6b2ddd3ce097ddf70de%2Caec93d9f11bc1c802b63793cd5818530b64e9b4b
2019-09-20 10:18:15 -07:00