Commit graph

830 commits

Author SHA1 Message Date
Xidorn Quan
bcb2cc49a2 Bug 1350875 part 7 - Enable fullscreen scroll tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D68683
2020-07-15 11:11:01 +00:00
sefeng
7ba74df412 Bug 1649278 - Don't do PreventDefault for escape key if <select> dropdown is not shown r=smaug
We always use PreventDefault for <select> element, which is
problematic if modal dialog is on as it prevents cancelling
the dialog.

We fix it by not blocking the default action if <select> is
not shown.

Differential Revision: https://phabricator.services.mozilla.com/D82590
2020-07-15 19:00:30 +00:00
Neil Deakin
c9ee18c831 Bug 1650691, remove framescript from browser_fullscreen-api-keys.js, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83322
2020-07-15 12:39:15 +00:00
Neil Deakin
6abab347d8 Bug 1650691, remove framescript from browser_fullscreen-newtab.js, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83321
2020-07-15 12:39:08 +00:00
Emilio Cobos Álvarez
ff86a1d84e Bug 1608358 - Fix allowfullscreen check to check for feature policy. r=baku
We can clean up this code once the feature policy pref goes away, but
meanwhile this should do the right thing.

Differential Revision: https://phabricator.services.mozilla.com/D82976
2020-07-13 21:15:54 +00:00
tkhan
75ea54bf01 Bug 1650919 - Adding manifest annotations for xorigin test harness. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D82763
2020-07-13 20:34:46 +00:00
Bogdan Tara
6faddf7d8f Backed out changeset 1a0f002865d3 (bug 1650919) for test_deprecated.html failures CLOSED TREE 2020-07-13 19:22:21 +03:00
tkhan
e50031dfc7 Bug 1650919 - Adding manifest annotations for xorigin test harness. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D82763
2020-07-13 13:01:43 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
sefeng
80e3e377d1 Bug 1645046 - Enable HTML5 dialog in Nightly r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D80045
2020-07-03 19:48:59 +00:00
Cosmin Sabou
5d6a0462a3 Backed out changeset 0f5653007c41 (bug 1645046) for wpt failures. CLOSED TREE 2020-07-03 18:19:17 +03:00
sefeng
383b8d065d Bug 1645046 - Enable HTML5 dialog in Nightly r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D80045
2020-07-02 20:36:37 +00:00
sefeng
c284f742fe Bug 1648877 - Deny the fullscreen request if the element is dialog r=smaug
Per fullscreen api spec,
https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen,
fullscreen request should be denied if the requesting element is
<dialog>

Differential Revision: https://phabricator.services.mozilla.com/D81615
2020-07-02 15:47:39 +00:00
Cosmin Sabou
7ece4fe886 Backed out 1 changesets (bug 1648877) for mochitest failures on test_bug1648877_dialog_fullscreen_denied.html. CLOSED TREE
Backed out changeset bfd857646de4 (bug 1648877)
2020-06-30 20:00:28 +03:00
sefeng
6d945fa759 Bug 1648877 - Deny the fullscreen request if the element is dialog r=smaug
Per fullscreen api spec,
https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen,
fullscreen request should be denied if the requesting element is
<dialog>

Differential Revision: https://phabricator.services.mozilla.com/D81615
2020-06-30 10:03:04 +00:00
Noemi Erli
b04c81aab3 Backed out changeset 397ad8a55255 (bug 1645046) for causing multiple wpt failures CLOSED TREE 2020-06-30 00:19:28 +03:00
sefeng
4132c41203 Bug 1645046 - Enable HTML5 dialog in Nightly r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D80045
2020-06-29 15:33:45 +00:00
Emilio Cobos Álvarez
e916b18fa8 Bug 1643798 - Fix feature policy check for fullscreen so that it gets reflected properly in document.fullscreenEnabled. r=baku
See bug 1606660 comment 8 as to why checking it only in
Element.requestFullscreen is wrong.

Do you know how to test this? I'm not very familiar with feature-policy.

Differential Revision: https://phabricator.services.mozilla.com/D78567
2020-06-25 13:17:04 +00:00
Andreas Farre
9a7127a8e1 Bug 1590762 - Part 4: Remove nsIWebProgressListener from HTMLFormElement. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D79821
2020-06-23 12:52:59 +00:00
tkhan
6ccabd4784 Bug 1602668 - M(1) manifest and test changes. r=kmag,karlt,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70362
2020-06-22 19:09:49 +00:00
Masayuki Nakano
8954e9663b Bug 1636855 - Enable editor.truncate_user_pastes even in Nightly channel r=emilio
Mozilla consider that we should protect even Nightly testers from the behavior
change of bug 1320229.

And I forgot to modify the new mochitest for bug 1635224 which is a regression
of bug1320229.

Differential Revision: https://phabricator.services.mozilla.com/D78841
2020-06-09 08:47:31 +00:00
sefeng
727ca5589e Bug 1322947 - Add support of cancel dialog modal with escape key r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74937
2020-05-27 14:37:19 +00:00
Emilio Cobos Álvarez
b9c1bf761c Bug 312971 - Unprefix -moz-read-write / -moz-read-only. r=edgar
And remove some duplicated tests from WPT.

Differential Revision: https://phabricator.services.mozilla.com/D75231
2020-05-14 16:46:08 +00:00
Emilio Cobos Álvarez
ec9e0e8772 Bug 888884 - Make :read-write not apply for disabled controls to which readonly applies. r=edgar
Per https://html.spec.whatwg.org/#selector-read-write:

> The :read-write pseudo-class must match any element falling into one
> of the following categories [...]:
>
>   * input elements to which the readonly attribute applies, and that
>     are mutable (i.e. that do not have the readonly attribute
>     specified and that are not disabled)
>
>   * textarea elements that do not have a readonly attribute, and
>     that are not disabled.
>
>   * elements that are editing hosts or editable and are neither
>     input elements nor textarea elements.

This fixes the `:disabled` bits.

This matches Safari behavior and the spec, but not Chrome, which has our
behavior.

Fix the WPT, which had multiple issues, as :read-only is defined to be
just the opposite of :read-write. This will pass as soon as I unprefix
the pseudo-class.

Differential Revision: https://phabricator.services.mozilla.com/D75230
2020-05-14 13:58:20 +00:00
sefeng
a2b762d097 Bug 1557303 - Enable form dialog method for some existing tests r=smaug
Since the form dialog method can be enabled via the pref, enable it in
some existing tests.

Differential Revision: https://phabricator.services.mozilla.com/D73366
2020-05-08 00:16:37 +00:00
Etienne Bruines
2dcc34270a Bug 1635806 - [testing] Expose eventName in BrowserTestUtils.waitForContentEvent r=ahal
This should make it easier to write tests for race-conditions, as
the resolving value now indicates which event was received.

This required updating a test which for some reason asserted
undefined being the resolving value, as a way of "testing" if the
Promise resolved at all. Since await already throws Errors when it
is rejected, and the test throws a timeout if it doesn't resolve in
time, this assertion was removed. It did not add any value.

Differential Revision: https://phabricator.services.mozilla.com/D74124
2020-05-11 21:29:05 +00:00
sanketh
2fee157360 Bug 1635224 - Preserve mLastValueChangeWasInteractive between SaveState and RestoreState r=emilio,masayuki
Modify PresState's string variant to also store whether the last change was
interactive, and preserve that property when saving and restoring state.

Differential Revision: https://phabricator.services.mozilla.com/D73920
2020-05-08 15:15:04 +00:00
Botond Ballo
5081d59c17 Bug 1556556 - Disable zoom-to-focused-input behaviour in dom/html/test/forms. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D73775
2020-05-05 19:33:40 +00:00
Andreea Pavel
e8fa2263a8 Bug 1434744 - disable test_allowMedia.html on mac shippable, win debug and linux18.04 qr debug r=egao
Differential Revision: https://phabricator.services.mozilla.com/D72728
2020-04-27 19:40:58 +00:00
Paul Bone
4e341bce84 Bug 1603007 - Remove allowLinkedWebInFileUriProcess r=nika
This patch removes the allowLinkedWebInFileUriProcess pref, but one
code-path is kept because when DocumentChannel is disabled a HTTP POST load
from a file:// page would loose the postData, so that case keeps the FILE
remote type.

Differential Revision: https://phabricator.services.mozilla.com/D69923
2020-04-23 17:15:09 +00:00
Emilio Cobos Álvarez
d36c96ab4c Bug 1612068 - Move zoom from the content viewer to the browsing context. r=nika
We need it to live in BrowsingContext instead of WindowContext, because
we need to preserve the zoom level across same-origin navigation.

It'd be nice if it only lived in the top BC, but that's not possible at
the moment because a lot of tests rely on zooming only iframes. Some of
them can be adjusted for scaling the top instead, but not sure it's
worth it's worth fixing them and moving the zoom to be top-only, as it'd
be a bunch of effort, and the complexity and overhead of propagating the
zoom is not so big.

The print-preview-specific code in nsContentViewer is from before we did
the document cloning setup, and it seems useless. I've tested print
preview scaling before and after my patch and both behave the same.

The rest is just various test changes to use the SpecialPowers APIs or
BrowsingContext as needed instead of directly poking at the content
viewer.

I named the pres context hook RecomputeBrowsingContextDependentData, as
more stuff should move there like overrideDPPX and other media emulation
shenanigans.

I also have some ideas to simplify or even remove ZoomChild and such,
but that's followup work.

Differential Revision: https://phabricator.services.mozilla.com/D71969
2020-04-22 19:32:52 +00:00
Makoto Kato
3d671e1047 Bug 1631401 - Need to wait for setBoolPerf. r=masayuki
I made a misteake on inputmode mochitest. I forget to wait for setter of preference.

Differential Revision: https://phabricator.services.mozilla.com/D71706
2020-04-21 05:16:34 +00:00
Kris Maglione
664885884e Bug 1614462: Part 2c - Remove content mozbrowser tests. r=mccr8,marionette-reviewers,whimboo
<iframe mozbrowser> is no longer supported in content processes.

Differential Revision: https://phabricator.services.mozilla.com/D70744
2020-04-20 22:15:35 +00:00
Ciure Andrei
a5ac2a8bbc Backed out 10 changesets (bug 1614462) for causing test_ipc_messagemanager_blob.js failures CLOSED TREE
Backed out changeset bf4f8253c708 (bug 1614462)
Backed out changeset c61b797d63e9 (bug 1614462)
Backed out changeset 284002de7137 (bug 1614462)
Backed out changeset 7f604ee5731c (bug 1614462)
Backed out changeset a73ef8167cd4 (bug 1614462)
Backed out changeset ecc3477ed34e (bug 1614462)
Backed out changeset 2106f3ccc4b5 (bug 1614462)
Backed out changeset e68c38a7741d (bug 1614462)
Backed out changeset 93b3bacdbb34 (bug 1614462)
Backed out changeset 0cf4898ae08d (bug 1614462)
2020-04-21 01:11:37 +03:00
Kris Maglione
6a5589ef4f Bug 1614462: Part 2c - Remove content mozbrowser tests. r=mccr8,marionette-reviewers,whimboo
<iframe mozbrowser> is no longer supported in content processes.

Differential Revision: https://phabricator.services.mozilla.com/D70744
2020-04-20 20:11:41 +00:00
Paul Bone
ce060c70b4 Bug 1629441 - Defer to DocumentChannel in shouldLoadURLInThisProcess r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D71331
2020-04-20 07:34:11 +00:00
Mihai Alexandru Michis
720a2a68e6 Backed out changeset ebea9991db0e (bug 1629441) for causing lint failures in browser_form_post_from_file_to_http.js
CLOSED TREE
2020-04-20 08:12:40 +03:00
Paul Bone
6262bc6b58 Bug 1629441 - Defer to DocumentChannel in shouldLoadURLInThisProcess r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D71331
2020-04-20 04:43:06 +00:00
Makoto Kato
fa2567e7c8 Bug 1630645 - Add more inputmode tests for widget. r=masayuki
`inputmode` DOM API are in WPT, but I should add more tests for widget.

Differential Revision: https://phabricator.services.mozilla.com/D71248
2020-04-17 02:35:56 +00:00
Ciure Andrei
c15dcac93b Backed out 10 changesets (bug 1614462) for causing xpcshell failures CLOSED TREE
Backed out changeset 34d4a86530b4 (bug 1614462)
Backed out changeset dbc2e2556d08 (bug 1614462)
Backed out changeset 512bbab4730c (bug 1614462)
Backed out changeset cd6b8d630f4c (bug 1614462)
Backed out changeset e4ad5037658f (bug 1614462)
Backed out changeset 0ffed1dc4296 (bug 1614462)
Backed out changeset 90ed81cbfe34 (bug 1614462)
Backed out changeset 6d2137eb1d52 (bug 1614462)
Backed out changeset b4819c99e16e (bug 1614462)
Backed out changeset b7deaed376ed (bug 1614462)
2020-04-17 02:26:14 +03:00
Kris Maglione
342edc77b2 Bug 1614462: Part 2c - Remove content mozbrowser tests. r=mccr8
<iframe mozbrowser> is no longer supported in content processes.

Differential Revision: https://phabricator.services.mozilla.com/D70744
2020-04-16 22:20:05 +00:00
Mihai Alexandru Michis
5c60242230 Backed out 6 changesets (bug 1350875) for causing failures in test.util.UiThreadUtils$TimeoutException
CLOSED TREE

Backed out changeset c65f2c0b6332 (bug 1350875)
Backed out changeset 5084623c0f83 (bug 1350875)
Backed out changeset 4eda0d89d8a2 (bug 1350875)
Backed out changeset 149058087816 (bug 1350875)
Backed out changeset 71ba43d7b2df (bug 1350875)
Backed out changeset e65ead196f4b (bug 1350875)
2020-04-07 16:13:53 +03:00
Xidorn Quan
355d3969f9 Bug 1350875 part 6 - Enable fullscreen scroll tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D68683

--HG--
extra : moz-landing-system : lando
2020-04-02 11:39:12 +00:00
Makoto Kato
2099916d3a Bug 1424284 - Part 1. Add inputmode to HTMLElement. r=smaug,jdai
`inputmode` attribute controls software keyboard layout like `<input type>`.
Originally this was by B2G (bug 746142) and for `<input>` element only.

WHATWG spec allows this attribute for HTML element and WebKit and Blink have
already implemented this.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 08:37:25 +00:00
Tim Nguyen
d4c0be2f9c Bug 1626419 - Move FeaturePolicy check to GetFullscreenError after CallerType check. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D69401

--HG--
extra : moz-landing-system : lando
2020-04-03 00:06:26 +00:00
Botond Ballo
7c3a542e38 Bug 1623476 - Scroll element into view before simulating a click on it in test_bug500885.html. r=kats
The top-level document containing the iframe in which the test runs can be
scrolled by things that happen in previous tests (e.g. a zoomToFocusedInput
in a previous test), causing the target element to be outside of the visual
viewport.

After bug 1556556, event synthesization functions will no longer support
targeting elements outside the visual viewport.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:24:42 +00:00
Emilio Cobos Álvarez
0c9bcce517 Bug 1622221 - Rework number input localization. r=jwatt
This restores our previous behavior with the new <input type=number>
implementation (see the changes in test_input_number_l10n.html, which undoes the
changes of the regressing bug), and adds a test that shows that we display the
localized value properly.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 09:36:52 +00:00
Tooru Fujisawa
51880be4b3 Bug 1507375 - Restrict the controllability of UI parts visibility with features parameter of window.open. r=smaug
Make the features parameter of window.open just a condition for whether to open
a popup or a new tab.
Also remove dom.disable_window_open_feature.* prefs.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 09:13:12 +00:00
Noemi Erli
db9c35d705 Backed out changeset 6fe5ce050c0d (bug 1507375) for failures in test_transformed_scrolling_repaints_3.html CLOSED TREE 2020-03-19 08:56:17 +02:00
Tooru Fujisawa
4270e3fedf Bug 1507375 - Restrict the controllability of UI parts visibility with features parameter of window.open. r=smaug
Make the features parameter of window.open just a condition for whether to open
a popup or a new tab.
Also remove dom.disable_window_open_feature.* prefs.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 03:50:25 +00:00