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

4199 Коммитов

Автор SHA1 Сообщение Дата
Jon Bauman 6af16546a9 Bug 1675987 - No derogatory language: Remove references to "crazy" in dom module. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97654
2020-11-20 23:37:01 +00:00
David Parks b29b36b6cf Bug 1675349: Update tests under dom/tests/mochitest for the removal of plugins. r=jmathies
REMOVED
-------
dom/tests/mochitest/bugs/test_bug427744.html
Test that navigator.plugins properly includes testplugin

Differential Revision: https://phabricator.services.mozilla.com/D95912
2020-11-18 15:58:41 +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 c32ab86e13 Bug 1675349: Update tests under dom/tests/mochitest for the removal of plugins. r=jmathies
REMOVED
-------
dom/tests/mochitest/bugs/test_bug427744.html
Test that navigator.plugins properly includes testplugin

Differential Revision: https://phabricator.services.mozilla.com/D95912
2020-11-18 02:45:48 +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
Emilio Cobos Alvarez 14f6139c4e Bug 1677304 - Fix a condition in a test to account for Mac.
Differential Revision: https://phabricator.services.mozilla.com/D97139
2020-11-16 10:39:15 +00:00
Valentin Gosu bd132e112d Bug 1658097 - [fission] Send resource timing data for cross-origin frames to the correct process r=nika,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D96754
2020-11-13 13:48:00 +00:00
Emilio Cobos Álvarez ac6e97d5f9 Bug 1618639 - Make focus-visible match the spec more closely. r=edgar
The spec text has been improved a while ago, so I think we should do
this. This keeps the current moz-focusring behavior when the pref is
disabled, but when enabled it becomes effectively an alias of
focus-visible.

Differential Revision: https://phabricator.services.mozilla.com/D96697
2020-11-13 12:53:45 +00:00
Emilio Cobos Álvarez a33ff60406 Bug 1676843 - Make innerWidth/innerHeight return the actual CSS size rather than a rounded version of it. r=heycam
On Nightly, for now. This allows websites to get the real viewport size.

The rounded size has caused problems in the past (see bug 1648298 / bug
1648265), and changing it would be ideal.

I told the CSSWG that we can experiment with this on Nightly to
alleviate (or prove) compat concerns, in which case we'd need to use a
different solution, see https://github.com/w3c/csswg-drafts/issues/5260.

Differential Revision: https://phabricator.services.mozilla.com/D96826
2020-11-13 12:44:01 +00:00
Mirko Brodesser d18305c95e Bug 1657983: enable "dom/tests/mochitest/general/test_framedhistoryframes.html" for Fission. r=peterv
Locally it passes and finishes now.

Differential Revision: https://phabricator.services.mozilla.com/D96579
2020-11-11 16:51:20 +00:00
Dan Minor b0bcf54c7d Bug 1673054 - Add isAppLocaleRTL to IntlUtils; r=Gijs,zbraniecki,emilio
Differential Revision: https://phabricator.services.mozilla.com/D96233
2020-11-10 21:34:04 +00:00
Andrew Halberstadt 331bc892dd Bug 1675319 - [manifestparser] Properly support multiline skip-if statements, r=jmaher,extension-reviewers,zombie
This supports one manifestparser expression per line in the 'skip-if',
'fail-if' and 'run-if' keys. As a side effect the:

    skip-if = foo ||
        bar

syntax is no longer supported. Instead it can be:

    skip-if =
        foo  # bug 123
        bar  # bug 456

Differential Revision: https://phabricator.services.mozilla.com/D95927
2020-11-05 19:55:08 +00:00
Razvan Maries 10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell 5f9c85da95 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-04 00:55:36 +00:00
Sean Feng 37a638e521 Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-10-27 16:25:50 +00:00
Sean Feng 2ce0e3da25 Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange
Spec: https://w3c.github.io/paint-timing/#sec-PerformancePaintTiming
We only support FirstContentfulPaint at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D66463
2020-10-27 16:25:50 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Frederik Braun f786bccdf6 Bug 1673309 - Sanitizer should be behind a pref r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D94704
2020-10-26 13:58:05 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Sean Feng 5fc0b74bd2 Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-10-23 19:44:11 +00:00
Sean Feng 981acf390f Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange
Spec: https://w3c.github.io/paint-timing/#sec-PerformancePaintTiming
We only support FirstContentfulPaint at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D66463
2020-10-23 19:25:36 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Anny Gakhokidze 1840c0b907 Bug 1671179 - Make test_bug132255.html xorigin compatible, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D93605
2020-10-15 15:53:40 +00:00
Chris Martin e2f2de6530 Bug 1657404 - Change PGamepadTestChannel to "refcounted protocol" r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D93023
2020-10-14 20:33:55 +00:00
Tom Tung 45a97b5b83 Bug 1654080 - Use PBackground for syncing SessionStorageCache and use LSWriteOptimizer to send data changes; r=dom-workers-and-storage-reviewers,janv,nika
This patch does:
- Use LSWriteOptimizer
- Remove SessionStorageService since it's unused.
- Move IPC from PContent to PBackground
(by SessionStorageManager{Child, Parent} and SessionStorageCache{Child, Parent}).
- Extract SessionStorageManagerBase and add PBackgroundSessionStorageManager.
- Expose a getter function to get a BackgroundParentManager for top context id
on the parent.

IPC
- Before this patch:
  - Copy from parent while loading a document.
    - Mark cache entry on the parent process as loaded by the child id.
  - Update change on checkpoint.
  - Unmark cache entry on the parent process as unloaded for the child id while
  the parent actor is destorying.
- After this patch:
  - Sync IPC load in the first SessionStorage operation.
  - Update change on checkpoint

`BackgroundSessionStorageManager`'s lifecycle on the parent process.
- Create by `SessionStorageManagerParent` and register to the `sManagers`.
- Hold by `SessionStorageManagerParent` and `sManagers`.
- Remove from the `sManagers` while the corresponding `BrowsingContext` is
destructed (on the parent process).

Depends on D89341

Differential Revision: https://phabricator.services.mozilla.com/D89342
2020-10-14 00:19:33 +00:00
Edgar Chen 6ea02af2f9 Bug 1666843 - Clear mFocusedWindow while burring; r=hsivonen
The expectation is that the blurring would eventually result in an IPC message
doing this anyway, but this doesn't happen if the focus is in OOP iframe which
won't try to bounce an IPC message to its parent frame.

Differential Revision: https://phabricator.services.mozilla.com/D93210
2020-10-12 11:58:50 +00:00
Ryan Hunt 67e0a28855 Bug 1669784 - Merge TypedObject namespace into WebAssembly namespace, gated on GC feature. r=lth
This commit merges the TypedObject namespace into the WebAssembly namespace, and
only exposes the TypedObject definitions when the GC feature is enabled.

A future commit will remove the TypedObject definitions from the namespace, but we
still need the infrastructure from this commit for storing the TypedObject definitions
in private slots in the namespace.

Differential Revision: https://phabricator.services.mozilla.com/D92857
2020-10-12 21:01:39 +00:00
James Willcox 0db8042add Bug 1549418 - Hook up WebAuthn support for GeckoView r=geckoview-reviewers,jcj,agi
This mostly just refactors the stuff we had for Fennec.

We add a dependency on Google Play Services here, but care
is taken to ensure that things will fail gracefully if
Play Services are not present at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D91446
2020-10-12 19:22:09 +00:00
Christoph Kerschbaumer faf05f7d19 Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
Edgar Chen 3711f2ee72 Bug 1668964 - Enable some subtests in test_pointerlock-api.html back; r=smaug
test_pointerlock-api.html is disabled mainly because of bug 1357082 and
bug 1615802. Let's just disable the subtests that cause intermittent failures
and enable others, so we could at least get some test coverage back.

Differential Revision: https://phabricator.services.mozilla.com/D92314
2020-10-07 13:44:12 +00:00
Andreea Pavel 4dbb01e9eb Bug 1666843 - disable browser_pointerlock_warning.js on Linux debug fission DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D92776
2020-10-07 17:20:31 +00:00
Brindusan Cristian c992a99524 Backed out 2 changesets (bug 1549418) for causing android bpgo exceptions. CLOSED TREE
Backed out changeset b2c7cf464308 (bug 1549418)
Backed out changeset bb3cee345d37 (bug 1549418)
2020-10-03 13:35:35 +03:00
James Willcox ac966a1df8 Bug 1549418 - Hook up WebAuthn support for GeckoView r=geckoview-reviewers,jcj,agi
This mostly just refactors the stuff we had for Fennec.

We add a dependency on Google Play Services here, but care
is taken to ensure that things will fail gracefully if
Play Services are not present at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D91446
2020-10-02 15:43:41 +00:00
Masayuki Nakano 1917bdfbe7 Bug 1609291 - Make run all tests in `test_clipboard_events.html` with a child window r=smaug
Although I don't understand 100% of the reason why it fails to enable
`onbeforeinput` attribute with enabling the pref at first `add_task()`,
it seems that it's too late to enable it (I guess that JIT compiler refers
`GlobalEventHandlers` before enabling it).  For avoiding this issue,
this patch moves all tests in it to a child window.

Then, the test becomes more unstable at least on my environment.  Most of
the failure is, `nsIClipboardHelper.copyString()` which is called by
`SpecialPowers.clipboardCopyString()` fails to update the clipboard without
any warnings in the terminal window.  And that causes odd failures of
following tests.  Therefore, this patch makes each test more independent:
* If `reset()` throws an exception, each test won't run its main tests.
* Make `reset()` clear all event handler attributes and remove all added event
listeners.
* Then, get rid of `try-finally` (i.e., without `catch`) if it's not necessary.
* Make `SimpleTest.promiseClipboardChange()` log clipboard initialization steps.

Differential Revision: https://phabricator.services.mozilla.com/D91862
2020-10-01 09:42:56 +00:00
Edgar Chen 8df93e148e Bug 1666201 - Part 3: Ensure synthesized mouse event is dispatched on correct thread; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91493
2020-10-01 08:52:20 +00:00
Olli Pettay 8a508eaa66 Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo
In many cases with wpt, most of the tests in the file pass, but it is rather time consuming to annotate
.ini files case by case.

Differential Revision: https://phabricator.services.mozilla.com/D91977
2020-10-01 10:23:47 +00:00
Bogdan Tara 222e4f64b7 Backed out 5 changesets (bug 1662094, bug 1666201, bug 1520785) for pointerevent related failures CLOSED TREE
Backed out changeset 0ff76cb4b991 (bug 1662094)
Backed out changeset 94bf1aff7bff (bug 1520785)
Backed out changeset 1688cdab3d48 (bug 1666201)
Backed out changeset e960f750c588 (bug 1666201)
Backed out changeset cb30150e8289 (bug 1666201)
2020-10-01 11:46:32 +03:00
Edgar Chen 6bea44b750 Bug 1666201 - Part 3: Ensure synthesized mouse event is dispatched on correct thread; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91493
2020-09-30 19:40:08 +00:00
Tooru Fujisawa 5fbf9ae43a Bug 1558642 - Part 1: Use synthesizeNativeMouseClick in test_bug1224790-1/2.xhtml (with a new AtCenter helper), re-enable the tests, and remove synthesizeNativeOSXClick. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D39603
2020-09-29 19:50:23 +00:00
Nika Layzell 8c5c6588c5 Bug 1658342 - Enable the remoteObjectEmbed pref by default, r=heycam,valentin
This also disables the cross-origin resource timing test when Fission is
enabled, as resource timing is is broken for cross-origin frames (bug 1658097).

Differential Revision: https://phabricator.services.mozilla.com/D91326
2020-09-28 22:06:44 +00:00
Dorel Luca 834eb9ea3f Backed out changeset 49c71a08f0e3 (bug 1658342) for causeing Mochitest failures. CLOSED TREE 2020-09-29 13:37:18 +03:00
Nika Layzell d167508da7 Bug 1658342 - Enable the remoteObjectEmbed pref by default, r=heycam,valentin
This also disables the cross-origin resource timing test when Fission is
enabled, as resource timing is is broken for cross-origin frames (bug 1658097).

Differential Revision: https://phabricator.services.mozilla.com/D91326
2020-09-28 22:06:44 +00:00
Neil Deakin 4273f86002 Bug 1664952, move the pointer lock warning handling into a separate actor that applies to subframes, and move origin determination into parent, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D90888
2020-09-22 08:51:57 +00:00
Anny Gakhokidze 5842740ef5 Bug 1666287 - Remove pref dom.datatransfer.mozAtAPIs and make relevant APIs ChromeOnly, r=nika
Make mozItemCount, mozTypesAt, mozClearDataAt, mozSetDataAt, mozGetDataAt
DataTransfer APIs ChromeOnly

Differential Revision: https://phabricator.services.mozilla.com/D91017
2020-09-22 16:16:29 +00:00
Kris Maglione d3498e1041 Bug 1655866: Part 5 - Use native PermitUnload implementation from front-end code. r=nika,mconley
Differential Revision: https://phabricator.services.mozilla.com/D88318
2020-09-21 22:41:04 +00:00
alwu 946ca59998 Bug 1666089 - enable MediaSession and MediaMetadata interface. r=emilio
We have enabled Media Session API by default in bug1665496.

Differential Revision: https://phabricator.services.mozilla.com/D90796
2020-09-21 14:59:09 +00:00
Edgar Chen 8eda55142f Bug 1662587 - Make pointer lock fission compatible; r=smaug
Now requesting/releasing pointer lock in content process will send IPC to let
parent process know which content process request a lock, so parent process
could dispatch mouse event to the right content process. And if there is already
a content proess had a lock, parent process will reject lock request from other
content proesses.

Differential Revision: https://phabricator.services.mozilla.com/D90313
2020-09-21 11:01:27 +00:00
Narcis Beleuzu 1a447211aa Backed out changeset 12856303559f (bug 1662587) for mochitest crashes on test_pointerlock_xorigin_iframe.html 2020-09-21 04:07:59 +03:00