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

323 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond ce897c182a Bug 1738971 - Part 1. Split out plumbing for AnimationFrameProvider from Document. r=dom-worker-reviewers,smaug
This patch splits out AnimationFrameProvider from the Document WebIDL to
allow the workers to implement it. It also splits out a helper class to
manage the requestAnimationFrame callbacks which may be reused on a
worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D130262
2021-12-10 02:57:49 +00:00
Csoregi Natalia 1c7cae16d7 Backed out 17 changesets (bug 1738971, bug 1736177) for bp-hybrid failures and others. CLOSED TREE
Backed out changeset 828633114de2 (bug 1736177)
Backed out changeset 5be8557c4721 (bug 1736177)
Backed out changeset 49f8b4205a46 (bug 1736177)
Backed out changeset 2610d4464ad5 (bug 1736177)
Backed out changeset 6d6c78c31c28 (bug 1736177)
Backed out changeset d55f1ee88bb9 (bug 1736177)
Backed out changeset bf588f8ffcf1 (bug 1736177)
Backed out changeset 86f6f6d86c6c (bug 1736177)
Backed out changeset f400c75c5829 (bug 1736177)
Backed out changeset 4a34124d5f4e (bug 1736177)
Backed out changeset 70aff7fcd001 (bug 1736177)
Backed out changeset db2347ee8147 (bug 1736177)
Backed out changeset 3dde5ddb65e5 (bug 1738971)
Backed out changeset 894ba6b7b68f (bug 1738971)
Backed out changeset dc4503052cf1 (bug 1738971)
Backed out changeset d9aef3e9797e (bug 1738971)
Backed out changeset 562a1e8e5ac3 (bug 1738971)
2021-12-10 01:13:23 +02:00
Andrew Osmond 54aa9cd0ea Bug 1738971 - Part 1. Split out plumbing for AnimationFrameProvider from Document. r=dom-worker-reviewers,smaug
This patch splits out AnimationFrameProvider from the Document WebIDL to
allow the workers to implement it. It also splits out a helper class to
manage the requestAnimationFrame callbacks which may be reused on a
worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D130262
2021-12-09 19:25:22 +00:00
Tom Schuster 5d023856bb Bug 1722576 - Rename PostMessageOptions to StructuredSerializeOptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126717
2021-09-29 12:48:17 +00:00
Sandor Molnar fe9f55e2fb Backed out 2 changesets (bug 1722576) for causing wpt failures in structured-clone.any.worker.html
Backed out changeset d31a1c199922 (bug 1722576)
Backed out changeset 4d0e3d6a1960 (bug 1722576)
2021-09-28 22:59:51 +03:00
Tom Schuster 6cec896db2 Bug 1722576 - Rename PostMessageOptions to StructuredSerializeOptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126717
2021-09-28 17:09:18 +00:00
Emilio Cobos Álvarez 6751b4d168 Bug 1727429 - Disable window.paintWorklet in beta/release for good. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D123959
2021-08-31 12:59:15 +00:00
Emilio Cobos Álvarez baf18c5198 Bug 1723921 - Throw on invalid pseudo-elements in getComputedStyle() as per spec. r=dholbert,layout-reviewers
I need to update tests, try incoming.

Depends on D121705

Differential Revision: https://phabricator.services.mozilla.com/D121706
2021-08-07 09:55:55 +00:00
Kagami Sascha Rosylight a54da69bc5 Bug 1717613 - Remove HAVE_SIDEBAR build condition r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118613
2021-06-24 20:55:37 +00:00
Sandor Molnar e6880a9bb9 Backed out changeset 9da3d7718f82 (bug 1717613) for causing BR build bustages. CLOSED TREE 2021-06-24 22:24:55 +03:00
Kagami Sascha Rosylight 0976ff66fa Bug 1717613 - Remove HAVE_SIDEBAR build condition r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118613
2021-06-23 20:36:16 +00:00
Kagami Sascha Rosylight 751f4ef52c Bug 1717612 - Disable window.sidebar from early-beta-or-earlier r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118472
2021-06-22 16:05:45 +00:00
Kagami Sascha Rosylight d7c2b12fbe Bug 1717072 - Add window.clientInformation r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D118466
2021-06-22 12:38:13 +00:00
Kagami Sascha Rosylight 434af579f7 Bug 1631581 - Part 5: Rename TreatNullAs=EmptyString to LegacyNullToEmptyString r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111213
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight 20a3a7aaff Bug 1631581 - Part 4: Rename Unforgeable to LegacyUnforgeable r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111212
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight fecaac5d19 Bug 1701824 - Hide ondevicelight behind a flag r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110177
2021-03-30 20:44:47 +00:00
Kagami Sascha Rosylight b046eaa662 Bug 1701789 - Restore UserProximityEvent r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110172
2021-03-30 20:44:47 +00:00
Kagami Sascha Rosylight 24e9b29c8d Bug 1699707 - Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug
Note that this removes `window.ondeviceproximity` and `window.onuserproximity` which unexpectedly have been exposed unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D109160
2021-03-22 18:16:16 +00:00
Jan-Erik Rediger 4a219f294b Bug 1695197 - Remove MOZ_GLEAN constant, introduce MOZ_GLEAN_ANDROID. r=chutten,emilio
We enable compilation of FOG/Glean on _all_ platforms.
We disable Glean initialization and metric recording on Android (GeckoView) by respecting MOZ_GLEAN_ANDROID.
This way GeckoView just works, consumers don't need to think about it (except in tests, these need to be disabled for Android builds).

Stubbing out the metric implementations will happen in the commits after
this one.

Differential Revision: https://phabricator.services.mozilla.com/D106766
2021-03-04 11:15:12 +00:00
Edgar Chen 0916876268 Bug 1690747 - Should also check blur is allowed in BrowsingContext::Blur(); r=hsivonen
When binding delegates blur() to BrowsingContext::Blur, the remote side skips
the check given that there is no js on the stack, but we should not skip the
check. This only affects design-mode which allows the focus moving to the root
element.

Differential Revision: https://phabricator.services.mozilla.com/D104008
2021-02-09 14:56:56 +00:00
Andreea Pavel c546ab6198 Backed out changeset ebb61065ad47 (bug 1690747) for failing mochitests at test_focus_design_mode.html on a CLOSED TREE 2021-02-09 15:11:05 +02:00
Edgar Chen 486af881a2 Bug 1690747 - Should also check blur is allowed in BrowsingContext::Blur(); r=hsivonen
When binding delegates blur() to BrowsingContext::Blur, the remote side skips
the check given that there is no js on the stack, but we should not skip the
check. This only affects design-mode which allows the focus moving to the root
element.

Differential Revision: https://phabricator.services.mozilla.com/D104008
2021-02-09 12:18:15 +00:00
Neil Deakin ca5dfb7222 Bug 259640, add chrome only method to add scrollbar tick marks to a window, r=smaug,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D100938
2021-02-03 17:35:41 +00:00
Emilio Cobos Álvarez 039592f4d8 Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam
This lifts a bunch of string conversions higher up the stack, but allows
us to make the servo code use utf-8 unconditionally, and seemed faster
in my benchmarking (see comment 0).

It should also make a bunch of attribute setters faster too (like
setting .cssText), now that we use UTF8String for them (we couldn't
because we couldn't specify different string types for the getter and
setters).

Differential Revision: https://phabricator.services.mozilla.com/D99590
2020-12-17 14:04:35 +00:00
Chris H-C a0efcbcf74 Bug 1673660 - C++ and JS API for Glean Custom Pings r=janerik,webidl,smaug
Covers adding the new JS global `GleanPings` for JS, the new structs for C++ at
mozilla::glean_pings, ping-id and string-table-index codegen, the usual
boilerplate for JS and C++ stuff, and tests.

Unresolved:
* What happens if we call this on a non-parent process?
  (This isn't a supported mode of operation)

Differential Revision: https://phabricator.services.mozilla.com/D98671
2020-12-14 16:50:07 +00:00
Jan-Erik Rediger eeb5f1a8c2 Bug 1646165 - Implement FOG's JavaScript API via WebIDL. r=chutten,webidl,emilio,smaug
This is only the basic outline.
It doesn't do anything yet, but compile.
As there are no metrics generated for it it can't look up anything.

To note: Actual metric types are implemented in XPIDL later.

The following (priviliged) JavaScript code will soon work (if the
corresponding metrics would be defined):

const { Glean } = ChromeUtils.import("resource://gre/modules/Glean.jsm");
Glean.shared.test_only.count_things.add(1);

Differential Revision: https://phabricator.services.mozilla.com/D92211
2020-10-21 11:36:46 +00:00
Emilio Cobos Álvarez eeaa6d826f Bug 1493223 - Allow fuzzers to call window.printPreview. r=smaug
It'll open a window / tab that they can then close. This allows fuzzers
to catch crashes in our printing codepaths. Can't wait for the fun to
start.

Differential Revision: https://phabricator.services.mozilla.com/D88477
2020-08-27 20:18:11 +00:00
Emilio Cobos Álvarez 044b3c4332 Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi
This centralizes our print and preview setup in nsGlobalWindowOuter so
that we never re-clone a clone, and so that we reuse the window.open()
codepath to create the browsing context to clone into.

For window.print, for both old print dialog / silent printing and new
print preview UI, we now create a hidden browser (as in with visibility:
collapse, which takes no space but still gets a layout box).

 * In the modern UI case, this browser is swapped with the actual print
   preview clone, and the UI takes care of removing the browser.

 * In the print dialog / silent printing case, the printing code calls
   window.close() from nsDocumentViewer::OnDonePrinting().

 * We don't need to care about the old print preview UI for this case
   because it can't be open from window.print().

We need to fall back to an actual window when there's no
nsIBrowserDOMWindow around for WPT print tests and the like, which don't
have one. That seems fine, we could special-case this code path more if
needed but it doesn't seem worth it.

Differential Revision: https://phabricator.services.mozilla.com/D87063
2020-08-25 17:45:12 +00:00
Kris Maglione 394e6d02d5 Bug 1638153: Part 0 - Add Window.browsingContext getter. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D75430
2020-06-17 17:17:01 +00:00
Razvan Maries a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione 8805ff3be0 Bug 1638153: Part 0 - Add Window.browsingContext getter. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D75430
2020-05-28 19:34:33 +00:00
Mark Banner 5d044573da Bug 1632447 - Disable window.external/sidebar.AddSearchProvider by preference. r=baku
This makes them both operate as dummy functions.

Differential Revision: https://phabricator.services.mozilla.com/D76329
2020-05-22 11:41:15 +00:00
Kagami Sascha Rosylight 6da77fced9 Bug 1632116 - Introduce dom.window.content.untrusted.enabled r=emilio
`window.content` is currently disabled only in Nightly by C preprecessor, and this patch replaces it with a new flag to allow users to manipulate.

Differential Revision: https://phabricator.services.mozilla.com/D71775
2020-04-22 13:08:25 +00:00
Mike de Boer 1ebc8eec6b Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-07 11:01:47 +00:00
Nika Layzell 349de0b692 Bug 1616353 - Part 7.7: Remove window initialization properties which are redundant with nsOpenWindowInfo, r=kmag
These properties used to be passed to newly created content windows in many
different ways, but are now unified under nsOpenWindowInfo. This patch cleans up
the remaining properties.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:44 +00:00
Bogdan Tara 86041bd513 Backed out 4 changesets (bug 890125) for central bustages complaining about nsWindow.cpp
Backed out changeset 68475f12d4f1 (bug 890125)
Backed out changeset 6e2c1facb7e0 (bug 890125)
Backed out changeset 17b15e227d3b (bug 890125)
Backed out changeset 6e71761c1018 (bug 890125)
2020-04-07 01:31:47 +03:00
Cosmin Sabou aefb5f9c88 Backed out 24 changesets (bug 1616353) for fission assertion failures nsGlobalWindowOuter.cpp.
Backed out changeset 3a43210e4900 (bug 1616353)
Backed out changeset cb77e9149cf8 (bug 1616353)
Backed out changeset 3aacc7cfe33f (bug 1616353)
Backed out changeset c026b06063a5 (bug 1616353)
Backed out changeset 580e790c5d17 (bug 1616353)
Backed out changeset 6f09bc1c476d (bug 1616353)
Backed out changeset 6955906262c0 (bug 1616353)
Backed out changeset a7700472807a (bug 1616353)
Backed out changeset a4735096e01b (bug 1616353)
Backed out changeset bd1706c57d91 (bug 1616353)
Backed out changeset 363c13296fda (bug 1616353)
Backed out changeset e414df387524 (bug 1616353)
Backed out changeset 765d3364cca0 (bug 1616353)
Backed out changeset 8a13355b4ac4 (bug 1616353)
Backed out changeset ada17fb8fca7 (bug 1616353)
Backed out changeset 6b6b99af186d (bug 1616353)
Backed out changeset ea966e78b296 (bug 1616353)
Backed out changeset cb88e0bbb3b9 (bug 1616353)
Backed out changeset f89a89015114 (bug 1616353)
Backed out changeset ae6058552969 (bug 1616353)
Backed out changeset f42bb5b48c1b (bug 1616353)
Backed out changeset 1ab9d22c73bb (bug 1616353)
Backed out changeset 2692c2c1396b (bug 1616353)
Backed out changeset 11a279c8da08 (bug 1616353)
2020-04-06 20:03:02 +03:00
Nika Layzell 102f99bbee Bug 1616353 - Part 7.7: Remove window initialization properties which are redundant with nsOpenWindowInfo, r=kmag
These properties used to be passed to newly created content windows in many
different ways, but are now unified under nsOpenWindowInfo. This patch cleans up
the remaining properties.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 14:30:19 +00:00
Mike de Boer 317a8e211a Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-06 12:56:25 +00:00
Oana Pop Rus 715930ff5b Backed out 4 changesets (bug 890125) for Windows MinGW build bustages failures. on a CLOSED TREE
Backed out changeset 1c8115a9a684 (bug 890125)
Backed out changeset eceeef4fc062 (bug 890125)
Backed out changeset cd850f6d0b0b (bug 890125)
Backed out changeset 08359730557d (bug 890125)
2020-04-03 22:44:14 +03:00
Mike de Boer f18c2f3af4 Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-03 10:19:47 +00:00
Marcos Cáceres c837a27119 Bug 1625384 - Remove window.onappinstalled event, as it was never used or shipped r=baku
removing this from spec

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

--HG--
extra : moz-landing-system : lando
2020-03-27 08:28:09 +00:00
Mike de Boer 929799eef6 Bug 440895 - Add support for Mac OSX spaces in session restore, which allows any window to be restored to their respective (work)space. r=mconley,mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D61457

--HG--
extra : moz-landing-system : lando
2020-03-02 13:36:39 +00:00
Emilio Cobos Álvarez 322cec0c5e Bug 1612510 - Remove IsChromeOrXBL*. r=bzbarsky
XBL is no longer a thing... Also, should we rename AllowContentXBLScope?

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

--HG--
extra : moz-landing-system : lando
2020-02-04 21:28:57 +00:00
Emilio Cobos Álvarez 6bfbf10f25 Bug 1611711 - Remove kCursorKTable. r=jwatt
(And while at it, format the end of the other keyword tables so that
cleanup_ktables.py works).

It seems `Window.setCursor` is only used once in our code, maybe
we should remove it...

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

--HG--
extra : moz-landing-system : lando
2020-01-26 20:17:41 +00:00
Edgar Chen 1ff24dddf7 Bug 1575425 - Part 1: Remove SharedArrayBuffer type in WebIDL parser; r=bzbarsky
There is no SharedArrayBuffer type defined in WebIDL spec.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 13:03:41 +00:00
Kris Maglione ab5a99dd15 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 21:32:28 +00:00
Mihai Alexandru Michis 745c94b1df Backed out changeset 006f4e50e8e5 (bug 1602898) for causing multiple failures.
CLOSED TREE
2020-01-21 22:55:37 +02:00
Kris Maglione aa0306477e Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 18:48:26 +00:00
Cosmin Sabou 9b6e5f8e66 Backed out changeset 4c303f6ec2e6 (bug 1602898) for browser chrome failures on browser_ssb_windowlocation. 2020-01-18 01:06:34 +02:00