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

1181 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson 97c8b3adce Bug 1777902 Test that system font sizing is independent from ui.textScaleFactor r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D156034
2022-09-01 02:27:38 +00:00
Mark Banner 3644b07dd2 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for a few test files. r=mossop
This also moves the layout disabling to the layout section - to be enabled later.

Differential Revision: https://phabricator.services.mozilla.com/D155177
2022-08-26 13:39:39 +00:00
Emilio Cobos Álvarez a7401488af Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 23:13:41 +00:00
Andrew McCreight ce22b38b5f Bug 1784397 - Remove Core:: Plug-ins from BUG_COMPONENT. r=handyman DONTBUILD
dom/ and dom/webidl/ : Default these files back to DOM: Core & HTML
PluginChild.jsm: Apparently this is only still used for GMP things.
browser/base/content/ : The remaining tests are mostly EME related, so I switched it over to that.
widget/tests/ : No plugin files remain, so I removed the rule.

Differential Revision: https://phabricator.services.mozilla.com/D154537
2022-08-12 22:39:41 +00:00
Marian-Vasile Laza 7f5e2711c6 Backed out 3 changesets (bug 1784265) for causing reftest failures on flex-emulation-1.xhtml. CLOSED TREE
Backed out changeset 415da4b53bdd (bug 1784265)
Backed out changeset e27b21c54b1f (bug 1784265)
Backed out changeset fcb1a053fbe2 (bug 1784265)
2022-08-13 01:14:13 +03:00
Emilio Cobos Álvarez a2ec6564f3 Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 19:34:34 +00:00
Timothy Nikkel 335ed01ea3 Bug 1784251. Allow widget/tests/browser/browser_test_swipe_gesture.js to test swipe to nav on linux. r=hiro
We implement SendNativeTouchpadPan/SynthesizeNativeTouchpadPan (like Windows does for this test).

I tried to use the existing functions SendNativeMouseScrollEvent/SynthesizeNativeMouseScrollEvent which are implemented on Linux and which are what we use for mac on this test, but it's already used for other stuff and it would be very clunky to overload it to make it work for this too.

I didn't see any way to "tag" the gdk events with more info, so making the observer notifier work was clunky. Similarly for getting the phase start/update/end work.

Differential Revision: https://phabricator.services.mozilla.com/D154386
2022-08-12 05:14:22 +00:00
Hiroyuki Ikezoe 6fb7d475d0 Bug 1781962 - A simple test case for swipe-to-navigation on RTL. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D153902
2022-08-09 02:01:37 +00:00
Mark Banner 7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Hiroyuki Ikezoe 74df765210 Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Depends on D152951

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 23:08:46 +00:00
Norisz Fay 17e1015627 Backed out 2 changesets (bug 1776795) for causing bc failures on browser_test_swipe_gesture.js CLOSED TREE
Backed out changeset 7bed4509ae7c (bug 1776795)
Backed out changeset 344336b54939 (bug 1776795)
2022-08-02 10:48:53 +03:00
Hiroyuki Ikezoe 0cc2a4681a Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 06:49:55 +00:00
Emilio Cobos Álvarez 9e0cea5ac8 Bug 1780372 - Make test_sizemode_events pass on Linux. r=stransky
Only update mSizeMode when we get the window state event. Meanwhile,
keep reporting the old / real sizemode.

Differential Revision: https://phabricator.services.mozilla.com/D152260
2022-07-21 23:04:39 +00:00
Marian-Vasile Laza 953585bc43 Backed out changeset 7962626205ce (bug 1780372) for causing bc failures on browser_ext_tabs_discarded.js. CLOSED TREE 2022-07-21 15:57:31 +03:00
Emilio Cobos Álvarez 3e93e9c521 Bug 1780372 - Make test_sizemode_events pass on Linux. r=stransky
Only update mSizeMode when we get the window state event. Meanwhile,
keep reporting the old / real sizemode.

Differential Revision: https://phabricator.services.mozilla.com/D152260
2022-07-21 09:30:55 +00:00
Emilio Cobos Álvarez 0170e759f8 Bug 1779559 - Do this in toolkit instead. r=Gijs
This simplifies a bit the tabbrowser/tab switcher code, and makes it
work in all windows.

The WPT failures are due to bug 1780212.

Differential Revision: https://phabricator.services.mozilla.com/D151822
2022-07-19 19:25:48 +00:00
Cristian Tuns 02571b9d37 Backed out 5 changesets (bug 1779559) for causing wpt failures on unload-bubbles.html CLOSED TREE
Backed out changeset fbb29df4aa9e (bug 1779559)
Backed out changeset eab896a61170 (bug 1779559)
Backed out changeset 645bdd59bb99 (bug 1779559)
Backed out changeset 23fe4f24d483 (bug 1779559)
Backed out changeset a68a015349ed (bug 1779559)
2022-07-19 13:27:32 -04:00
Emilio Cobos Álvarez e08e5475c4 Bug 1779559 - Do this in toolkit instead. r=Gijs
This simplifies a bit the tabbrowser/tab switcher code, and makes it
work in all windows.

Differential Revision: https://phabricator.services.mozilla.com/D151822
2022-07-19 09:43:06 +00:00
Tooru Fujisawa 52c95734e7 Bug 1667455 - Part 9: Stop importing Services.jsm from chrome-priv HTML code, single-line cases. r=kmag,necko-reviewers,geckoview-reviewers,extension-reviewers,m_kato,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150898
2022-07-11 12:41:52 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Joel Maher 537a5a0dc8 Bug 1777549 - remove remaining e10s conditions in manifest files. r=gbrown,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D150820
2022-07-01 13:49:42 +00:00
Kagami Sascha Rosylight 764ef75de5 Bug 1773740 - Part 4: Reapply `mach -l eslint --fix` with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Timothy Nikkel 81467fece0 Bug 1762874. Add test. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D143361
2022-05-26 02:29:11 +00:00
Timothy Nikkel e6c16ad501 Bug 1762885. Add test. r=hiro
I can't seem to reproduce the original problem anymore. It was a little tricky. As such I wasn't able to make a test that reproduces, but this test is where I would have started.

Differential Revision: https://phabricator.services.mozilla.com/D147178
2022-05-25 05:00:34 +00:00
Timothy Nikkel ff7a04759f Bug 1709888. Wait one from in browser_test_swipe_gesture.js to make sure all events/input are flushed. r=hiro
The timeout in requestIdleCallback is a deadline, so we wait until the firrst time we are idle and then call the callback, or if we haven't gone idle before the timeout period then just call the callback. So it functions as a maximum, not a minimum. So if we are already idle it could callback right away.

So wait one frame to make sure any other potential events, input etc is flushed before we move on.

I haven't debugged this in detail but this seems to fix the problem and seems reasonable.

Differential Revision: https://phabricator.services.mozilla.com/D147120
2022-05-24 22:14:40 +00:00
Timothy Nikkel 1884cc0b7a Bug 1768305. Remove widget.swipe.success-threshold pref. r=hiro
Since bug 1757928 we don't vary the value. If a user were to change this value then the opacity of the swipe to nav ui element would not be in sync with the decision to navigate or not. So remove it so things can't break. The pref widget.swipe.whole-page-pixel-size should be used instead now to control sensitivity.

Differential Revision: https://phabricator.services.mozilla.com/D145828
2022-05-08 21:50:10 +00:00
Timothy Nikkel 3085038dd2 Bug 1762875. Add test. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D145570
2022-05-06 05:55:52 +00:00
Timothy Nikkel 13eda1a6f0 Bug 1762881. Add test. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D143434
2022-05-03 08:56:47 +00:00
Chris Martin 80881746de Bug 1763023 - Push nsBaseWidget::mSizeMode into child classes r=handyman
This member is no longer used on Windows, and having it in the
base class doesn't provide a real abstraction anyway since
the child classes will break if anything about it is changed.

Differential Revision: https://phabricator.services.mozilla.com/D145132
2022-05-02 14:06:17 +00:00
Masayuki Nakano 5c4fed5f9d Bug 1758420 - part 1: Let `TextComposition` know where is changed in storing text node r=m_kato
`IMEContentObserver` observes the text node change which contains the current
composition string.  Therefore, it can let `TextComposition` know where is
updated by web apps and adjust offset and length in the text node.

Differential Revision: https://phabricator.services.mozilla.com/D141193
2022-04-21 03:37:56 +00:00
Andreea Pavel a401cb00e2 Bug 1759422 - disable tests on win7 32bits opt r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D143557
2022-04-15 08:22:32 +00:00
Masayuki Nakano 36c2d519c8 Bug 1764238 - Backout the first and the second patch of bug 1758420 r=m_kato
Due to breaking `mobile.twitter.com/explore` for Hebrew IME users on Android,
this patch backs out the patches for bug 1753420 except the last patch which
just rename some methods and variables.

Differential Revision: https://phabricator.services.mozilla.com/D143684
2022-04-15 03:49:57 +00:00
Makoto Kato f1a05c105f Bug 666254 - nsIClipboard.emptyClipboard should clear system clipboard. r=mac-reviewers,spohl
Actually, `nsIClipboard.emptyClipboard` on macOS doesn't clear system
clipboard. Since other platforms clear it, so I would like to change to same
behaviour.

Also, since we have base class of `nsIClipboard`, we should Inherit it to share
code.

Differential Revision: https://phabricator.services.mozilla.com/D143312
2022-04-15 02:48:04 +00:00
Timothy Nikkel cf44ee875e Bug 1757928. Add test. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D142817
2022-04-06 09:51:17 +00:00
Timothy Nikkel 4cac1c7814 Bug 1763121. nsIDOMWindowUtils::sendNativeTouchpadPan should use an observer to notify when the event has been sent to the destination widget. r=hiro
Otherwise we can return without the widget even seeing the event. This is how other test functions are implemented.

We need this to make the test in bug 1757928 pass.

Differential Revision: https://phabricator.services.mozilla.com/D142943
2022-04-05 22:53:35 +00:00
Emilio Cobos Álvarez 79f3fe026d Bug 1759962 - Don't return the DPI override in devicePixelRatio to privileged code. r=nchevobbe,webdriver-reviewers
Chrome code should be able to rely on CSS pixel * devicePixelRatio =
device pixel.

Chrome code that cares about the override should use
BrowsingContext.overrideDPPX. We were exposing the no-override value in
WindowUtils but that's unneeded now.

Differential Revision: https://phabricator.services.mozilla.com/D141323
2022-03-23 17:03:04 +00:00
Masayuki Nakano 1b713219e4 Bug 1758420 - part 1: Let `TextComposition` know where is changed in storing text node r=m_kato
`IMEContentObserver` observes the text node change which contains the current
composition string.  Therefore, it can let `TextComposition` know where is
updated by web apps and adjust offset and length in the text node.

Differential Revision: https://phabricator.services.mozilla.com/D141193
2022-03-18 06:34:46 +00:00
Ben Hearsum f46bdbcad0 Bug 1751010: Update JumpListBuilder tests for interface changes. r=mhowell
I couldn't see any value in running these for private and non-private mode, since all of those differences are up in Javascript land.

Differential Revision: https://phabricator.services.mozilla.com/D139608
2022-03-01 14:16:49 +00:00
Butkovits Atila 107318ad27 Backed out 5 changesets (bug 1751010) for causing failures at browser_startup_mainthreadio.js. CLOSED TREE
Backed out changeset af347bb985d4 (bug 1751010)
Backed out changeset 9944e42017ff (bug 1751010)
Backed out changeset 282a5cd52cd0 (bug 1751010)
Backed out changeset 2f54afb16002 (bug 1751010)
Backed out changeset 6ad85a8edf15 (bug 1751010)
2022-02-27 03:40:08 +02:00
Ben Hearsum 22a33af4db Bug 1751010: Update JumpListBuilder tests for interface changes. r=mhowell
I couldn't see any value in running these for private and non-private mode, since all of those differences are up in Javascript land.

Differential Revision: https://phabricator.services.mozilla.com/D139608
2022-02-25 18:33:46 +00:00
sotaro 982d3d18e2 Bug 1732738 - Add EnsureDisplayStatusObserver() and EnsureSessionChangeObserver() r=nical,gfx-reviewers
pref handling is removed from WinWindowOcclusionTrackerInteractiveTest. Instead, WinWindowOcclusionTracker::EnsureDisplayStatusObserver() and WinWindowOcclusionTracker::EnsureSessionChangeObserver() are added.

Differential Revision: https://phabricator.services.mozilla.com/D133601
2022-02-18 01:10:53 +00:00
Masayuki Nakano e1ad4921b9 Bug 1755438 - Make `ContentCacheInParent::GetTextRect` check `mSelection` before referring it r=m_kato
Unfortunately, the adding test cannot reproduce the crash, but I have no idea
how to make `mSelection` being `Nothing` until next native event loop.  Anyway,
it's worthwhile to add new tests.

This patch just avoids `ContentCacheInParent::GetTextRect` referring
`mSelection` when there is no text rects and `mSelection` is `Nothing`.

Differential Revision: https://phabricator.services.mozilla.com/D138876
2022-02-17 08:53:35 +00:00
Hiroyuki Ikezoe 5f2996def4 Bug 1755422 - Set swipe tracker prefs in browser_test_swipe_gesture.js. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D138861
2022-02-16 06:42:20 +00:00
sotaro 2daf591edf Bug 1732737 - Add VirtualDesktop handling to window occlusion on Windows r=gfx-reviewers,bradwerth
Implementation of WindowOcclusionCalculator::Initialize() is borrowed from InitializeVirtualDesktopManagerTask::Run().
And implementation of WindowOcclusionCalculator::IsWindowOnCurrentVirtualDesktop() is borrowed from chromium's WindowOcclusionCalculator::IsWindowOnCurrentVirtualDesktop()

Differential Revision: https://phabricator.services.mozilla.com/D133327
2022-02-15 14:33:06 +00:00
Masayuki Nakano 69c1675bde Bug 1746104 - part 7: Make `eQuerySelectedText` event and `ContentEventHandler` work with no selection ranges r=m_kato
Finally, making `WidgetQueryContentEvent::Succeeded` return `true` when there
is no selection when its message is `eQuerySelectedText`, and making
`ContentEventHandler::OnQuerySelectedText` set the no selection range data even
when the queried selection type is "normal.  Then, all things which are
changed by the previous patches start to work.

And this patch adds a simple test for `ContentCache` and update tests of
`nsITextInputProcessor`.

Differential Revision: https://phabricator.services.mozilla.com/D137432
2022-02-07 22:33:41 +00:00
Masayuki Nakano fd30eaf365 Bug 1746104 - part 5-1: Get rid of `WidgetQueryContentEvent::Reply::mHasSelection` r=m_kato
It's intended to indicate whether the selection is collapsed or not, but it can
be referred by other members, there is no reasonable user and the name makes
developers confused.

Differential Revision: https://phabricator.services.mozilla.com/D137422
2022-02-07 22:33:37 +00:00
Emilio Cobos Álvarez b699e8cdc8 Bug 1753995 - Remove nsDOMWindowUtils.screenPixelsPerCSSPixel. r=smaug,dholbert
For all purposes, this is the same as devicePixelRatio. It was meant to
skip the resistFingerprinting check the devicePixelRatio getter does,
but we do that now using CallerType in WebIDL, so if we cared about that
for these tests (which we don't) we could just do
SpecialPowers.wrap(window).devicePixelRatio.

As a follow-up we could move the NoOverride to window for symmetry. But
it's only used by devtools touch simulation so not sure if worth it.

Differential Revision: https://phabricator.services.mozilla.com/D138021
2022-02-07 18:23:36 +00:00
Hiroyuki Ikezoe ef0e6ea3cf Bug 1751124 - Disable SwipeTracker on Windows. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D137576
2022-02-02 02:12:55 +00:00
Marian-Vasile Laza ea7ac3de04 Backed out changeset a585d22e0888 (bug 1732738) for causing talos test failures. CLOSED TREE 2022-01-17 11:15:35 +02:00
sotaro a17009748a Bug 1732738 - Enable display status handling of window occlusion on Windows r=nical,gfx-reviewers
pref handling is removed from WinWindowOcclusionTrackerInteractiveTest. Instead, WinWindowOcclusionTracker::EnsureDisplayStatusObserver() and WinWindowOcclusionTracker::EnsureSessionChangeObserver() are added.

Differential Revision: https://phabricator.services.mozilla.com/D133601
2022-01-16 23:57:41 +00:00