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

1446 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay 4dfc15fe87 Bug 1689677 - Ensure layout/base/tests/test_bug607529.html works with SHIP-BFCache r=nika
Depends on D109215

Differential Revision: https://phabricator.services.mozilla.com/D109216
2021-03-21 19:40:49 +00:00
Andrew Halberstadt 4ad325da5a Bug 1694833 - Skip some mochitest-plain tests with fission so we can add new tasks, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D108251
2021-03-12 20:43:26 +00:00
Kagami Sascha Rosylight 46f609593d Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-11 20:51:51 +00:00
Dorel Luca 0f483545c6 Backed out changeset e780bd8fa66a (bug 1697253) for Mochitest failures in dom/base/test/test_domwindowutils.html. CLOSED TREE 2021-03-11 01:24:46 +02:00
Kagami Sascha Rosylight c7276af0c1 Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-10 21:20:30 +00:00
Masayuki Nakano 1c60ca0e2c Bug 1691622 - part 12: Change the default unit of `screenX/Y` of `synthesizeNativeMouseEvent` from device pixels to CSS pixels r=smaug
For minimizing the previous patch changes, `scale`'s default value for
`screenX/Y` is treated as 1.0.  It means that `screenX/Y` are device
pixels by default, but `offsetX/Y` are in CSS pixels by default.  This
difference may make developers confused.  Therefore, we should align the
default unit of them to `screenPixelsPerCSSPixel`.  I.e., their default
unit becomes CSS pixels.

Differential Revision: https://phabricator.services.mozilla.com/D105929
2021-02-24 01:27:11 +00:00
Masayuki Nakano 876ef492b9 Bug 1691622 - part 11: Make mochitests stop using `nsIDOMWindowUtils.sendNativeMouseEvent` directly as far as possible r=smaug
For making the test framework/API change easier, such raw API shouldn't be
used directly.  Therefore, this patch makes tests using it directly stop
using it and use `synthesizeNativeMouseEvent` instead.

However, this patch does not fix `browser_touch_event_iframes.js` because
it accesses the API from `ContentTask`.  So, `EventUtils.js` isn't available
without larger change.

Note that this patch disables `test_bug596600.xhtml` because as I commented
in it, it's completely broken.  It depends on the race of next native event
loop and `waitForTick`, and this patch changes the result of the race.

Differential Revision: https://phabricator.services.mozilla.com/D105765
2021-02-24 01:27:11 +00:00
Masayuki Nakano ef2253b4a1 Bug 1691622 - part 9: Make `nsIWidget::SynthesizeNativeMouseEvent` take an XP button ID and abstract message value r=smaug,geckoview-reviewers,agi,m_kato
Currently, it takes a raw native message value, but it makes JS content too
complicated.  And on Linux, it cannot synthesize non-primary button events
because GDK has only button press and release messages which dont' include
mouse button information.

For solving these problems, this patch creates a new abstract native message
as `nsIWidget::NativeMouseMessage` and makes each widget converts it to
a platform native message.

Additionally, this patch adds an argument to make it possible its callers
to specify pressing or releasing mouse button with a DOM mouse button value.

Note that the following patch adds new argument to
`synthesizeNativeEventMouse*` for mochitests and which will be tested by
new tests.

Differential Revision: https://phabricator.services.mozilla.com/D105763
2021-02-24 01:27:10 +00:00
Henri Sivonen 9d6d02b341 Bug 1663931 - Avoid moving focus when changing iframe remoteness. r=nika,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D99215
2021-02-22 10:51:51 +00:00
Sean Feng 93ae22d5b9 Bug 1692350 - Implement a telemetry probe to collect page load data for documents that use lazyload r=emilio,chutten
Differential Revision: https://phabricator.services.mozilla.com/D104912
2021-02-17 22:25:02 +00:00
Mihai Alexandru Michis 8d0efc214f Backed out changeset 6a0dcd8f4e3e (bug 1692350) for causing crashes in WindowContext.
CLOSED TREE
2021-02-17 21:02:59 +02:00
Sean Feng 7917a71b50 Bug 1692350 - Implement a telemetry probe to collect page load data for documents that use lazyload r=emilio,chutten
Differential Revision: https://phabricator.services.mozilla.com/D104912
2021-02-17 17:17:52 +00:00
Daniel Holbert d1c38c39fc Bug 1691286: Fix nsPrintSettingsWin::CopyFromNative to reliably encode the pages' orientation in the mOrientation field (fixing mismatched landscape/portrait rendering in some cases). r=jfkthame
This was just a silly typo; I got the order of the ternary expression's options
backwards.

The mistake wasn't obvious from testing, because this function isn't always
invoked.  In particular, it's not invoked if I print "https://example.org" in a
fresh profile, but it *is* invoked if I print "about:support" or other
browser-internal pages.

Differential Revision: https://phabricator.services.mozilla.com/D104354
2021-02-08 23:01:37 +00:00
Anny Gakhokidze b6692a0ebd Bug 1687574 - Change test_zoom_restore_bfcache.html to use BroadcastChannel, r=smaug
Also, make sure that BFCachePreventionObserver does not fire events for
elements that are part of an anonymous native tree.

Differential Revision: https://phabricator.services.mozilla.com/D103812
2021-02-03 18:11:02 +00:00
Emilio Cobos Álvarez bfe77f303a Bug 1591120 - Move print and color-scheme simulation to browsingContext. r=ochameau,nika,devtools-backward-compat-reviewers
We keep mMedium in nsPresContext rather than just looking it up in the
browsing context because that's used quite more frequently.

Differential Revision: https://phabricator.services.mozilla.com/D103782
2021-02-03 10:38:09 +00:00
Masayuki Nakano fef8b70479 Bug 1541915 - part 1: Move scroll position tests from `layout/base/tests` to `dom/events/test` and disable async font loading in `dom/events/test` r=smaug,jfkthame
Asynchronous font loading occurs during scroll position tests, it resets
scroll positions to 0.  So, this causes intermittent failures in such tests.
Disabling the async font loading under `layout/base/tests` may not be proper
solution because some layout tests may work perfectly even if global reflow
may occur.

Therefore, this patch moves 2 tests which check scroll position to under
`dom/events/test` and disabling the async font loading since the global reflow
shouldn't be related to the tests under `dom/events`.

Differential Revision: https://phabricator.services.mozilla.com/D103013
2021-02-02 03:05:04 +00:00
Masayuki Nakano 3210cefe0a Bug 1685491 - part 3: Fix some mochitests for conforming to use system default shortcut keys r=smaug
Some mochitests use `nsISelectionController` instead of synthesizing key since
`Home`, `End`, `PageUp` and `PageDown` didn't work as native key event.

Differential Revision: https://phabricator.services.mozilla.com/D102879
2021-02-02 03:31:06 +00:00
Sean Feng 71ce0cfc2a Bug 1687358 - Implement telemetry probes to determine the best possible threshold for <lazyload> r=emilio
This patch implements five telemetry probes to help us learn how
lazyload thresholds perform in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D102845
2021-01-29 17:03:25 +00:00
Emilio Cobos Álvarez 0a06c5acab Bug 1689343 - Enlarge the iframe viewport in bug1448730.html. r=spohl
Without this the non-native theme fails the last assertion of the test.

I couldn't reproduce locally but the word that it's supposed to be
selected is very close to being out of the iframe viewport on my
machine, so it'd make sense if the new non-native theme, which has a bit
more padding, causes the word to move a bit further down.

I've confirmed this fixes the issue.

Differential Revision: https://phabricator.services.mozilla.com/D103317
2021-01-29 14:31:32 +00:00
Anny Gakhokidze f105a0c763 Bug 1688767 - Change layout/base/tests/test_bug607529.html to use BroadcastChannel, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103189
2021-01-28 00:19:23 +00:00
Bogdan Tara a9b6b7cff8 Backed out changeset a77ccd1c1659 (bug 1687358) for browser_lazyload_telemetry.js failures CLOSED TREE 2021-01-27 02:46:06 +02:00
Sean Feng 14dee2e52c Bug 1687358 - Implement telemetry probes to determine the best possible threshold for <lazyload> r=emilio
This patch implements five telemetry probes to help us learn how
lazyload thresholds perform in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D102845
2021-01-26 21:54:33 +00:00
Edgar Chen 48c01f0a8b Bug 1688105 - Part 2: Get rid of dom.w3c_pointer_events.enabled; r=smaug
Depends on D102668

Differential Revision: https://phabricator.services.mozilla.com/D102669
2021-01-25 16:22:44 +00:00
Mats Palmgren 334efb391e Bug 1687239 part 1 - Remove plugin tests from layout/, dom/ and accessible/. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102139
2021-01-25 11:53:31 +00:00
Kartikaya Gupta 61f758440f Bug 1686002 - Don't retarget touches if they land inside a clickable element. r=botond
Touches that land on a descendant of a clickable element should
not get retargeted to other nearby elements because the descendant
itself can react to those touch events.

Differential Revision: https://phabricator.services.mozilla.com/D102827
2021-01-23 06:00:21 +00:00
Micah Tigley 1b5b46ec79 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo,remote-protocol-reviewers
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-14 21:45:14 +00:00
Butkovits Atila 4d521226ef Backed out changeset f8e28ebbdaa0 (bug 1675720) for causing failures on browser_system_dialog_subdialog_hidden.js. CLOSED TREE 2021-01-13 03:00:31 +02:00
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley 06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Erik Nordin 979cf92582 Bug 1675720 - Fix print_to_filename prefs for Linux system dialog r=emilio
This patch ensures that the global print_to_filename pref is checked
when initializing print settings from prefs.

It also fixes a regression which was preventing the Linux system dialog
from correctly reading its printer-specific print_to_filename prefs.

Differential Revision: https://phabricator.services.mozilla.com/D98975
2021-01-12 22:08:21 +00:00
Daniel Holbert af327bde4e Bug 1669905 part 3: Add support for 2 and 6 as options for pages-per-sheet, in the print-related frame classes (and add tests for these values). r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D99553
2021-01-05 02:13:03 +00:00
Daniel Holbert 5a10b53059 Bug 1682294: Increase fuzzy-match threshold for test_printpreview.xhtml subtest "printpreview_pps_uw4.html". (no review, just a test tweak)
For now, this subtest (ab)uses a fuzzy-failure allowance, to annotate a piece
of the test as a known failure on Windows (for an issue tracked in
bug 1680838).

The fuzzy annotation needs a bit of an increase, apparently, per at least one
failure log on Bug 1682294. This commit makes that increase, to avoid
test-failure-spam.

Differential Revision: https://phabricator.services.mozilla.com/D100477
2020-12-26 06:45:18 +00:00
Ting-Yu Lin f7561e7d4d Bug 1681402 - Improve stability and error handling for _selection_location_helper(). r=emilio
This patch doesn't change the behavior, but should improve the stability
and error handling of _selection_location_helper().

From the current intermittent pattern, `self.selection_rect_list(0)` can
fail sometimes. We set a retry limit of three times, and raise
exceptions with clearer message if we give up. Bug 1682382 tracks the
root cause behind this.

Differential Revision: https://phabricator.services.mozilla.com/D99288
2020-12-14 19:56:13 +00:00
Emilio Cobos Álvarez 3987c781d0 Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika
And have it mirror in the parent process more automatically.

The docShellIsActive setter in the browser-custom-element side needs to
be there rather than in the usual DidSet() calls because the
AsyncTabSwitcher code relies on getting an exact amount of notifications
as response to that specific setter. Not pretty, but...

BrowserChild no longer sets IsActive() on the docshell itself for OOP
iframes. This fixes bug 1679521. PresShell activeness is used to
throttle rAF as well, which handles OOP iframes nicely as well.

Differential Revision: https://phabricator.services.mozilla.com/D96072
2020-12-11 15:43:19 +00:00
Daniel Holbert f2254ae972 Bug 1670068 part 2: Add mochitests for pages-per-sheet printing with nonzero unwritable margins. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D98714
2020-12-08 00:35:45 +00:00
Daniel Holbert c8304e6e3e Bug 1672974: Increase the fuzz threshold slightly for test_printpreview.xhtml subtest "printpreview_pps9.html". r=TYLin DONTBUILD
This patch also updates the bug link in the explanatory comment for this group
of known-fuzzy-on-Windows test failures. (Before this patch, the code-comment
for these fuzzy failures points at bug 1671036, but that bug has been closed
because a speculative potentially-helpful patch landed there.  The speculative
patch didn't actually fix the issue, unfortunately, so I opened bug 1680838
which now tracks this category of known fuzzy test failures, and I'm updating
the comment to point there.)

Differential Revision: https://phabricator.services.mozilla.com/D98834
2020-12-07 18:04:46 +00:00
Peter Van der Beken 4869b7ad1a Bug 1677689 - Make layout/base/tests/test_bug851485.html more reliable so it works with Fission too. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97271
2020-11-27 15:43:04 +00:00
Razvan Maries 7885200a40 Backed out changeset 5f347d3846aa (bug 1677689) for perma failures on layout/base/tests/test_bug851485.html. CLOSED TREE 2020-11-21 12:47:56 +02:00
David Parks 8c7f8843d1 Bug 1675349: Update tests under layout/base for the removal of plugins. r=jmathies
UPDATED
-------
layout/base/tests/test_bug629838.html
bug 629838
Make sure MozPaintCount and MozAfterPaint are in sync, even with empty transactions
Switch to a <div> and use CSS.  MozPaintCount is otherwise largely untested.

layout/base/tests/test_mozPaintCount.html
bug 563864
Test MozPaintCount.
Switch to a <div> and use CSS.

REMOVED
-------
layout/base/tests/chrome/test_chrome_over_plugin.xhtml
Test that plugins are properly clipped wrt translucent chrome elements and not by translucent content elements.

Differential Revision: https://phabricator.services.mozilla.com/D95913
2020-11-18 15:58:59 +00:00
Bogdan Tara 56346a0425 Backed out 19 changesets (bug 1675349) for lint failures on browser_ext_browsingData_pluginData and test_archive CLOSED TREE
Backed out changeset 244e0f2b410c (bug 1675349)
Backed out changeset ba5724069dd4 (bug 1675349)
Backed out changeset 37fca259c7e9 (bug 1675349)
Backed out changeset f2b16caca1fc (bug 1675349)
Backed out changeset 28835d4935be (bug 1675349)
Backed out changeset eb913f58953a (bug 1675349)
Backed out changeset 19e3cb80f469 (bug 1675349)
Backed out changeset d9723f3a3a7e (bug 1675349)
Backed out changeset c888dfcdf70e (bug 1675349)
Backed out changeset 48f153341af6 (bug 1675349)
Backed out changeset 7fc67a9b2932 (bug 1675349)
Backed out changeset 1cee4d97f801 (bug 1675349)
Backed out changeset 59a0cb79c7c1 (bug 1675349)
Backed out changeset 43d349fa37b1 (bug 1675349)
Backed out changeset c84bfb6eae59 (bug 1675349)
Backed out changeset 38e9af69ae57 (bug 1675349)
Backed out changeset 3255c1ab3059 (bug 1675349)
Backed out changeset 2f3eaf9c342c (bug 1675349)
Backed out changeset 769e5c0db4c2 (bug 1675349)
2020-11-18 06:06:36 +02:00
David Parks f5e96badf2 Bug 1675349: Update tests under layout/base for the removal of plugins. r=jmathies
UPDATED
-------
layout/base/tests/test_bug629838.html
bug 629838
Make sure MozPaintCount and MozAfterPaint are in sync, even with empty transactions
Switch to a <div> and use CSS.  MozPaintCount is otherwise largely untested.

layout/base/tests/test_mozPaintCount.html
bug 563864
Test MozPaintCount.
Switch to a <div> and use CSS.

REMOVED
-------
layout/base/tests/chrome/test_chrome_over_plugin.xhtml
Test that plugins are properly clipped wrt translucent chrome elements and not by translucent content elements.

Differential Revision: https://phabricator.services.mozilla.com/D95913
2020-11-18 02:46:06 +00:00
Peter Van der Beken ea7daa934e Bug 1677483 - Reenable some tests that are now succeeding with Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97267
2020-11-17 10:25:51 +00:00
Mihai Alexandru Michis d06ca5f7d1 Backed out changeset e4b67fc1f101 (bug 1677483) for causing multiple mochitest plain failures.
CLOSED TREE
2020-11-17 19:29:26 +02:00
Peter Van der Beken 1bdf9fa7e0 Bug 1677689 - Make layout/base/tests/test_bug851485.html more reliable so it works with Fission too. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97271
2020-11-17 12:13:05 +00:00
Peter Van der Beken 75190a1035 Bug 1677483 - Reenable some tests that are now succeeding with Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97267
2020-11-17 10:25:51 +00:00
Nika Layzell 42028efc71 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-12 18:01:03 +00:00
lonocvb 591d8456eb Bug 1517385 - Add the pref to control the transition-duration. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D96506
2020-11-12 07:31:02 +00:00
Kris Maglione cfebcd3fd2 Bug 1669961: Return null from `.contentWindow` when inner window is inactive. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93853
2020-11-10 20:35:04 +00:00
Erik Nordin d9f598b6bf Bug 1666734 - Add two-sided printing checkbox to print UI r=sfoster,fluent-reviewers,flod,AlaskanEmily
This patch adds a new checkbox to the print UI for two-sided printing.
The checkbox is only visible if the currently selected printer supports
two-sided printing.

Notable Changes:
  - Add new section and checkbox for two-sided printing.
  - Add new getter to settings proxy for supportsDuplex.
  - Add new setter/getter to settings proxy for printDuplex.
  - Add new test for no duplex with PDF printer.
  - Add new test for toggle duplex in portrait orientation.
  - Add new test for toggle duplex in landscape orientation.
  - Add new test for toggle orientation with duplex checked.
  - Correctly set duple mode in GTK print settings.

Depends on D94026

Differential Revision: https://phabricator.services.mozilla.com/D93621
2020-11-06 06:33:27 +00:00
Razvan Maries 78b884f32d Backed out changeset 905f54a1dfed (bug 1666734) for perma failures on test_get_printer_paper_sizes.html. CLOSED TREE 2020-11-06 08:01:06 +02:00