Commit Graph

804566 Commits

Author SHA1 Message Date
Kirk Steuber
244c64dc64 Bug 1700158 - Add test that Background Update Tasks don't interfere with an in-progress internal download r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D154477
2022-08-12 19:18:08 +00:00
Kirk Steuber
f0b12076e5 Bug 1700158 - Prevent the Background Update task from using the internal downloader r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D152095
2022-08-12 19:18:08 +00:00
Ziran Sun
d2ec77d012 Bug 1783006 - Calculate the track sizes with the contain intrinsic block size if available. r=emilio,Oriol
When block size is initially indefinite but later was determined by the contain intrinsic
size, we calculate the track sizes using the contain intrinsic block size.

Differential Revision: https://phabricator.services.mozilla.com/D153623
2022-08-12 19:17:17 +00:00
Emilio Cobos Álvarez
83145e5efe Bug 1764640 - Apply implicit containment with container-type. r=dholbert
As per spec. This is a progression but there's still more work to do of
course.

Differential Revision: https://phabricator.services.mozilla.com/D153950
2022-08-12 19:13:13 +00:00
Marian-Vasile Laza
4cbc2911be Backed out changeset c3a651718270 (bug 1784138) for causing python py3 failures. CLOSED TREE 2022-08-12 22:13:57 +03:00
pmcmanis
1a4b224273 Bug 1784510 - add legacy telemetry client_id to baseline ping r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D154542
2022-08-12 18:50:48 +00:00
Barret Rennie
f7c69730e9 Bug 1776307 - Port osfile.jsm usage to IOUtils in toolkit/components/printing r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D150205
2022-08-12 18:37:31 +00:00
Dão Gottwald
2252ec286b Bug 1784034 - Remove old Nightly-only uninstall migration step for colorways / monochromatic themes with obsolete IDs. r=bigiri
Differential Revision: https://phabricator.services.mozilla.com/D154217
2022-08-12 18:37:29 +00:00
Emilio Cobos Álvarez
91a8e85af1 Bug 1784462 - Annotate a test while we finish the implementation of container queries.
MANUAL PUSH: This annotation needs to be revisited before enabling by
default but for now it's not too worrying.
2022-08-12 20:16:29 +02:00
Meg Viar
c08a7f7ad5 Bug 1784138 - Show the correct number of steps in the Feature Callout step indicator r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D154301
2022-08-12 17:24:49 +00:00
Ryan Hunt
f3a70ff9e6 Bug 1782770 - wasm: Don't make extra copy of FuncType for debugging. r=yury
Now that we transfer all type definitions to Metadata, we can
remove the special debugging case where we would transfer all
function types. Instead, we can just transfer the funcTypeIndex
and find the function type in Metadata.

Differential Revision: https://phabricator.services.mozilla.com/D153500
2022-08-12 17:21:56 +00:00
Ryan Hunt
4ed81efbb9 Bug 1782770 - wasm: Make ValType a uint32_t now that rtt's are gone. r=yury
ValType needed to be pointer size to support (rtt) types. Now that
they have been removed, we can revert to 32-bit on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D153499
2022-08-12 17:21:56 +00:00
Ryan Hunt
bbc6652080 Bug 1782770 - wasm: Transfer all type definitions to Metadata. r=yury
Metadata stores a vector of TypeDef that comes from the type section of the module.
We currently only transfer a type if it's a struct type, array type, or else a
function type that cannot fit in an immediate for call_indirect signature checks.

Because we filter out some types, this means we need to renumber the type index
space to match. This is a bit hacky, and is difficult to do consistently.

The original reason for only bringing function types that cannot fit in an
immediate was to reduce the size of metadata as most function types can fit in an
immediate. However, I discovered that we make a copies of function types for
FuncExport and FuncImport metadata. This can create multiple copies of the original
function type, e.g. when multiple exported functions reference the same type
definition.

If we instead transfer all types and store the index of the function type in
FuncExport/FuncImport we can reduce total metadata size, reduce allocations,
and remove type renumbering.

This commit does this by:
  1. Transferring all type definitions to Metadata (WasmGenerator.cpp)
  2. Removing the typeRenumbering vector
  3. Replacing FuncType with typeIndex on FuncImport/FuncExport
  4. Updating all users of FuncImport/FuncExport to get the FuncType using
     the typeIndex and Metadata. This the bulk of the changes.

Differential Revision: https://phabricator.services.mozilla.com/D153498
2022-08-12 17:21:55 +00:00
Dan Baker
1a2a6430f7 Bug 1783764 - Rename MediaEngineDefault to MediaEngineFake and change Default to Fake inside files.;r=webrtc-reviewers,bwc,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D154432
2022-08-12 16:54:39 +00:00
Nicolas Chevobbe
22f3a599f5 Bug 1783373 - [devtools] Pass isPrivate property to Downloads.createDownload. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D154528
2022-08-12 16:53:15 +00:00
Sandor Molnar
8aada8ee04 Backed out 2 changesets (bug 1595491) for causing build bustages in docshell/base/BrowsingContext.cpp CLOSED TREE
Backed out changeset 3687b7153c44 (bug 1595491)
Backed out changeset 91d87de145e3 (bug 1595491)
2022-08-12 19:50:20 +03:00
Byron Campen
5af4144f3e Bug 1783765: Make sure we clear out mUncommittedJsepSession when sRD/sLD fails in JS. r=jib,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D154168
2022-08-12 16:29:07 +00:00
Byron Campen
7556a7d769 Bug 1783765: Add a couple of assertions, and loosen the release assert that this bug was about. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D154167
2022-08-12 16:29:06 +00:00
Byron Campen
fbcf105d68 Bug 1783765: Do implicit local offer rollback in sRD(offer) before trying identity stuff. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D154166
2022-08-12 16:29:06 +00:00
Byron Campen
797164b448 Bug 1783765: Test case for bug. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D154165
2022-08-12 16:29:05 +00:00
Yulia Startsev
dee4b84e71 Bug 1784477 - Make ModuleLoaderBase thread-insensitive; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D147323
2022-08-12 16:18:44 +00:00
Yulia Startsev
ddbc6378de Bug 1784477 - Remove Dynamic Import option; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D154529
2022-08-12 16:18:44 +00:00
Benjamin VanderSloot
d169434ceb Bug 1782526 - Clean up site scope permission code, r=permissions-reviewers,pbz
While working on Bug 1777497 I bumped into a few things I would have done
differently that make it harder to misuse the site-scoped permissions.
These are just bugs waiting to happen, so I'm cleaning them up while I'm in here.

Differential Revision: https://phabricator.services.mozilla.com/D152760
2022-08-12 16:12:07 +00:00
Benjamin VanderSloot
af169fb243 Bug 1777497, part 4 - Add doorhanger tests for the Top Level Storage Access API, r=anti-tracking-reviewers,pbz
Depends on D151280

Differential Revision: https://phabricator.services.mozilla.com/D151281
2022-08-12 16:12:06 +00:00
Benjamin VanderSloot
5eb779d9f9 Bug 1777497, part 3 - Require a grant (auto or manual) for the requestStorageAccessUnderSite permission, r=timhuang,pbz,anti-tracking-reviewers
Depends on D151279

Differential Revision: https://phabricator.services.mozilla.com/D151280
2022-08-12 16:12:06 +00:00
Benjamin VanderSloot
04fdece310 Bug 1777497, part 2 - Make "finalChecks" callback creation easier to use flexibly, r=anti-tracking-reviewers,pbz,timhuang
Depends on D151278

Differential Revision: https://phabricator.services.mozilla.com/D151279
2022-08-12 16:12:05 +00:00
Benjamin VanderSloot
64d2f3f974 Bug 1777497, part 1 - Change StorageAccessPermissionRequest to allow an option specifying the top level domain, r=anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D151278
2022-08-12 16:12:05 +00:00
Kagami Sascha Rosylight
c45758d39e Bug 1486949 - Part 6: Fix ReadableStreamDefaultReader::Read to use the constructor realm r=smaug
Other methods probably should do the same, but for now this fulfills the test requirement. The rest is (or should be) tracked by https://bugzilla.mozilla.org/show_bug.cgi?id=1756661.

Differential Revision: https://phabricator.services.mozilla.com/D153977
2022-08-12 15:59:05 +00:00
Kagami Sascha Rosylight
0c2f2d038f Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-12 15:59:05 +00:00
Kagami Sascha Rosylight
237dffb194 Bug 1486949 - Part 4: Implement TransformStream construction for GenericTransformStream r=smaug
Per the Streams spec, other specs that want to implement custom TransformStream should use [GenericTransformStream](https://streams.spec.whatwg.org/#other-specs-ts-wrapping) mixin and store a [new TransformStream](https://streams.spec.whatwg.org/#transformstream-set-up) in a slot. This implements the latter part.

Differential Revision: https://phabricator.services.mozilla.com/D153975
2022-08-12 15:59:04 +00:00
Kagami Sascha Rosylight
bb449a5649 Bug 1486949 - Part 3: Refactor TransformerAlgorithms to allow subclassing r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153974
2022-08-12 15:59:04 +00:00
Kagami Sascha Rosylight
034516b498 Bug 1486949 - Part 2: Convert TransformStreamSetBackpressure to a method r=smaug
This way SetBackpressureChangePromise can be removed which is only exposed for that function.

Differential Revision: https://phabricator.services.mozilla.com/D153973
2022-08-12 15:59:03 +00:00
Kagami Sascha Rosylight
cb2f087593 Bug 1486949 - Part 1: Remove redundant GetReadable/Writable r=smaug
It was a part of the initial skeleton code where the getters threw NOT_IMPLEMENTED. The methods are wrong anyway since `.forget()` will unset the fields.

Differential Revision: https://phabricator.services.mozilla.com/D153972
2022-08-12 15:59:03 +00:00
Andreas Farre
f50b89fd60 Bug 1595491 - Part 2: Adapt test files to <embed> and <object> behaving more like <iframe>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148118
2022-08-12 15:48:27 +00:00
Andreas Farre
ec3d91462e Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-12 15:48:26 +00:00
Hubert Boma Manilla
90178fe177 Bug 1779359 - Update Content-Length when message body changes r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153477
2022-08-12 15:47:28 +00:00
André Bargull
ad1746d63e Bug 1784092 - Part 5: Update test262 exclusions. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154271
2022-08-12 15:22:19 +00:00
André Bargull
e02f67890b Bug 1784092 - Part 4: Update test262. r=mgaudet
Update test262 after enabling the features from part 2.

Depends on D154269

Differential Revision: https://phabricator.services.mozilla.com/D154270
2022-08-12 15:22:18 +00:00
André Bargull
56216f7437 Bug 1784092 - Part 3: Update test262 importer feature checks. r=mgaudet
Enable "array-grouping" and "change-array-by-copy" tests.

Depends on D154268

Differential Revision: https://phabricator.services.mozilla.com/D154269
2022-08-12 15:22:18 +00:00
André Bargull
40c109ec7b Bug 1784092 - Part 2: Enable change-array-by-copy build option by default on Nightly. r=mgaudet
This only enables the build option, which allows to actually run any tests in CI.

Depends on D154267

Differential Revision: https://phabricator.services.mozilla.com/D154268
2022-08-12 15:22:17 +00:00
André Bargull
437553873a Bug 1784092 - Part 1: Remove tests for removed TypedArray.prototype.toSpliced function. r=mgaudet
Depends on D154266

Differential Revision: https://phabricator.services.mozilla.com/D154267
2022-08-12 15:22:17 +00:00
Thomas Wisniewski
bc244b3b70 Bug 1784302 - Add a navigator.connection intervention for open.toutiao.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D154425
2022-08-12 15:19:50 +00:00
André Bargull
ba2a960d5f Bug 1784454: Initialise dense elements before copying into them. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154505
2022-08-12 15:15:52 +00:00
Oriol Brufau
39da2e438a Bug 1781046 - Return float in ResizeObserverSize's Block/InlineSize(). r=emilio
They just redirect to LogicalPixelSize's B/ISize(), which return floats.
So it seems pointless to return a double, and static analysis would
complain when storing the double as float for the last remembered size.

Depends on D154325

Differential Revision: https://phabricator.services.mozilla.com/D154473
2022-08-12 15:06:43 +00:00
Oriol Brufau
cf76dc495f Bug 1781046 - Add internal ResizeObserver for last remembered size. r=emilio
In a follow-up, it will take care of updating the last remembered size
as described in https://drafts.csswg.org/css-sizing-4/#last-remembered

Differential Revision: https://phabricator.services.mozilla.com/D154325
2022-08-12 15:06:43 +00:00
Oriol Brufau
52c73d8329 Bug 1781046 - Make ResizeObserver::mCallback Variant. r=emilio
So that it can accept a callback function implemented in C++.

Analogous to what D61436 did for DOMIntersectionObserver.

Differential Revision: https://phabricator.services.mozilla.com/D154324
2022-08-12 15:06:42 +00:00
Oriol Brufau
e52b22933a Bug 1781046 - Initialize ResizeObserver::mHasSkippedTargets. r=emilio
Otherwise static analysis may complain.

Differential Revision: https://phabricator.services.mozilla.com/D154323
2022-08-12 15:06:42 +00:00
Oriol Brufau
d780913e08 Bug 1781046 - Let elements have a last remembered size. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D154322
2022-08-12 15:06:42 +00:00
Bernard Igiri
58e7783c9d Bug 1781917 - Try to make test_videocontrols_audio.html more robust to address the frequent failures. r=Gijs
Attempting to make test more robust to reduce the opportunity for intermittant failures.

Differential Revision: https://phabricator.services.mozilla.com/D153385
2022-08-11 21:23:01 +00:00
Cosmin Sabou
8158c6a1d3 Backed out changeset c97989ad6a32 (bug 1781917) for not being necessary anymore. 2022-08-12 17:29:42 +03:00