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

794142 Коммитов

Автор SHA1 Сообщение Дата
Neil Deakin ea69612638 Bug 1746052, don't modify the extension for text and binary types, as this is the behaviour that save as had, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135955
2022-05-06 10:00:54 +00:00
Neil Deakin ddb4cde5bf Bug 1746052, use GetValidFileName to determine the filename from the channel when saving a resource, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135954
2022-05-06 10:00:54 +00:00
Neil Deakin ba93616285 Bug 1746052, use ValidateFileNameForSaving to determine a valid filename for pasting a file to the filesystem, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135953
2022-05-06 10:00:53 +00:00
Neil Deakin d96060da7f Bug 1746052, use ValidateFileNameForSaving to compute the filename for dragging images to the file system, r=haik
Differential Revision: https://phabricator.services.mozilla.com/D135952
2022-05-06 10:00:53 +00:00
Neil Deakin 3dd82cbf48 Bug 1746052, improve file sanitization by filtering and collpasing more whitespace characters and truncating files to 255 bytes, r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D138736
2022-05-06 10:00:52 +00:00
Neil Deakin 45e161641c Bug 1746052, add methods to the mime service that compute and validate a filename for a given content type, r=Gijs
The code in SanitizeFilename will be expanded upon in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D135951
2022-05-06 10:00:52 +00:00
Neil Deakin 6c927c11b6 Bug 1746052, add a means to get the filename that should be used for saving an image to disk, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D135950
2022-05-06 10:00:52 +00:00
Iulian Moraru 4274cdc165 Merge autoland to mozilla-central. a=merge 2022-05-06 12:49:18 +03:00
Emilio Cobos Álvarez 5a4150927e Bug 1767938 - Choose closest draggable node as drag target. r=edgar
This reveals an inconsistency when dragging links, where dragging the
link itself produces less mime types than dragging from the text of the
link.

I think this is just a bug, so use the parentLink code path all the
time, which allows us to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D145604
2022-05-06 09:40:37 +00:00
Jon Coppeard ec0a3f37b6 Bug 1767800 - Part 5: Factor out a method to check whether a URL to load is trusted r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D145473
2022-05-06 09:17:51 +00:00
Jon Coppeard 1b6dae3fb1 Bug 1767800 - Part 4: Factor out a method to get the source file location for a URI r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D145472
2022-05-06 09:17:50 +00:00
Jon Coppeard 5473dc1ffe Bug 1767800 - Part 3: Factor out a method to determine if a URL is a real file from PrepareObjectForLocation r=mccr8
We won't call PrepareObjectForLocation when loading ES6 modules.

Differential Revision: https://phabricator.services.mozilla.com/D145471
2022-05-06 09:17:50 +00:00
Jon Coppeard 85670a8b90 Bug 1767800 - Part 2: Factor out method to load a JSScript from mozJSComponentLoader::ObjectForLocation r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D145470
2022-05-06 09:17:50 +00:00
Jon Coppeard 13a16d119b Bug 1767800 - Part 1: Fix error handling in mozJSComponentLoader::CreateLoaderGlobal r=mccr8
Minor fix. This didn't check for errors when defining functions. The patch gives
it a return value and returns null if this fails.

Differential Revision: https://phabricator.services.mozilla.com/D145469
2022-05-06 09:17:49 +00:00
Iulian Moraru 7f90dc53f6 Merge mozilla-central to autoland on a CLOSED TREE 2022-05-06 12:53:16 +03:00
Kagami Sascha Rosylight b5451a2b91 Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145671
2022-05-06 09:00:29 +00:00
Kagami Sascha Rosylight e9861ec03f Bug 1620560 - Part 4: Mark BlobImpl::GetFileId as const r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145669
2022-05-06 09:00:29 +00:00
Kagami Sascha Rosylight c1b379141c Bug 1620560 - Part 3: Mark BlobImpl::CreateInputStream as const r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145668
2022-05-06 09:00:28 +00:00
Kagami Sascha Rosylight 71359f69c7 Bug 1620560 - Part 2: readability-inconsistent-declaration-parameter-name to dom/file r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145666
2022-05-06 09:00:28 +00:00
Kagami Sascha Rosylight 7d3887bb0b Bug 1620560 - Part 1: Apply modernize-concat-nested-namespaces to dom/file r=smaug
D95456 didn't properly include headers (`--header-filter=dom`).

Differential Revision: https://phabricator.services.mozilla.com/D145665
2022-05-06 09:00:27 +00:00
Kagami Sascha Rosylight d21908d6a0 Bug 1756070 - Part 2: Apply modernize-use-override to dom/file r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145662
2022-05-06 09:00:27 +00:00
Csoregi Natalia 27daffd9fc Backed out changeset 076c2a81804a (bug 1739348) for xpcshell failures on test_DownloadBlockedTelemetry.js. CLOSED TREE 2022-05-06 12:07:31 +03:00
lyavor 2ed9dfb1a3 Bug 1767290 - update /dom/cache/test/mochitest/ test files to use https. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145611
2022-05-06 08:45:18 +00:00
Kershaw Chang 2422b023ff Bug 1766251 - Count TRR_SKIP_REASON_NATIVE_SUCCESS/FAILED once in strict mode, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D144568
2022-05-06 08:26:58 +00:00
Shane Hughes f9c5e96acb Bug 1749998 - Expose alwaysOpenPanel in context menu. r=mak,Gijs,fluent-reviewers,flod
This patch adds a new menuitem to the toolbar context menu that
functions analogously to the downloads button auto-hide menuitem.
It's visible when the context menu is opened on the downloads button,
and hidden otherwise. It toggles browser.download.alwaysOpenPanel.
Also add some tests to make sure it's showing in the correct conditions
and having the correct effect in practice. While we're at it, make some
slight simplifications of related tests.

Differential Revision: https://phabricator.services.mozilla.com/D145284
2022-05-06 08:21:41 +00:00
Jan de Mooij d3a3c40b2f Bug 1366470 part 4 - Add tests. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D145432
2022-05-06 08:21:08 +00:00
Jan de Mooij 6b04af846a Bug 1366470 part 3 - Warp-compile JSOp::PushVarEnv. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D145431
2022-05-06 08:21:07 +00:00
Jan de Mooij 77c280685c Bug 1366470 part 2 - Bailout changes to support var environments. r=iain
For function frames, the "initial environment" includes the Call and NamedLambda
environments but never VarEnvironmentObject.

For eval frames, the initial environment is a VarEnvironmentObject, but we don't
support optimizing eval scripts yet.

This means the bailout code doesn't need to do anything special to support this,
similar to lexical environments.

Differential Revision: https://phabricator.services.mozilla.com/D145430
2022-05-06 08:21:07 +00:00
Jan de Mooij 847c551bc0 Bug 1366470 part 1 - Add VarEnvironmentObject::create for Warp. r=iain
Some refactoring to have a function we can call for Warp. This is similar to
other environment objects.

Also remove the unused |heap| argument from create/createInternal.

Differential Revision: https://phabricator.services.mozilla.com/D145429
2022-05-06 08:21:07 +00:00
Shane Hughes 0c6f58f214 Bug 1739348 - Don't open downloads panel after download dialogs. r=NeilDeakin
This is a medium sized patch to legacy download construction. It takes
advantage of the new property added in Bug 1762033 to prevent the
downloads panel from being automatically shown when a download is added
after an interaction with the unknown content type dialog or the file
picker dialog. I chose to not do the same for failed transfers since I
thought it might serve some use, but that might be wrong. I don't know
if there's a way to test the dialog that appears when you download an
executable without going through the same path I adjusted with the
patch. It seems like it's covered but I could be wrong. Also add a test
to cover these changes from the bottom up. Thanks and apologies for my
sloppy C++, though I'm sure I'll learn a lot more from the review 😅

Differential Revision: https://phabricator.services.mozilla.com/D145312
2022-05-06 08:20:39 +00:00
Emilio Cobos Álvarez b15e2bd5ee Bug 1767625 - Simplify selector flags setup even more. r=boris
In my investigation for bug 1766439, I am digging into why selector
matching regressed.

It doesn't help that the selector-matching code is instantiated a
gazillion times (so there's a ton of copies of the relevant functions).

This was needed in the past because we had different ways of setting the
selector flags on elements, but I unified that recently and now we only
need to either set them or not. That is the kind of thing that
MatchingContext is really good for, so pass that instead on
MatchingContext creation.

Differential Revision: https://phabricator.services.mozilla.com/D145428
2022-05-06 08:17:20 +00:00
criss bc2d63b260 Backed out 7 changesets (bug 1763606) for causing reftest failures on sort-tonumber.js. CLOSED TREE
Backed out changeset cac8af0a3542 (bug 1763606)
Backed out changeset 993971e98bc6 (bug 1763606)
Backed out changeset 1e0e956513ab (bug 1763606)
Backed out changeset e477519e66c5 (bug 1763606)
Backed out changeset 403a6eebf0a4 (bug 1763606)
Backed out changeset 5d55dc85cdbe (bug 1763606)
Backed out changeset 80dc9032e75f (bug 1763606)
2022-05-06 11:25:27 +03:00
Amy Churchwell 7d76a764c9 Bug 1767017 - Remove placeholder Colorways section from about:newtab's personalize panel. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D145680
2022-05-06 08:02:07 +00:00
André Bargull 4ab2ef774d Bug 1763606 - Part 7: Remove detached ArrayBuffer checks from TypedArray.prototype.sort comparator. r=tcampbell
Remove the check per <https://github.com/tc39/ecma262/pull/2723>.

Depends on D143290

Differential Revision: https://phabricator.services.mozilla.com/D143291
2022-05-06 07:31:27 +00:00
André Bargull 82069c3dff Bug 1763606 - Part 6: Copy shared memory for RadixSort. r=tcampbell
Similar to part 5, concurrent write accesses shouldn't affect the sort algorithm.

Depends on D143289

Differential Revision: https://phabricator.services.mozilla.com/D143290
2022-05-06 07:31:26 +00:00
André Bargull 833d175c0a Bug 1763606 - Part 5: Sort TypedArray elements in a temporary buffer. r=tcampbell
<https://github.com/tc39/ecma262/pull/1585> changed `Array.prototype.sort` to
first collect all elements in a temporary list. And because `TypedArray.prototype.sort`
follows `Array.prototype.sort`, the same copying has to happen here.

Depends on D143288

Differential Revision: https://phabricator.services.mozilla.com/D143289
2022-05-06 07:31:26 +00:00
André Bargull 512dd1059a Bug 1763606 - Part 4: Add a test case for concurrent modifications when sorting. r=tcampbell
Depends on D143287

Differential Revision: https://phabricator.services.mozilla.com/D143288
2022-05-06 07:31:26 +00:00
André Bargull 582fc10153 Bug 1763606 - Part 3: Port TypedArray RadixSort function to C++. r=tcampbell
An almost direct translation of the JS implementation to C++. In contrast to
the JS implementation, we're using a smaller fallback to `std::sort`, because
the C++ implementation is faster, but we're also calling into `std::sort` for
large arrays to avoid allocating a large heap buffer.

As a further improvement, the radix sort implementation calls the counting sort
function for 16-bit types when the number of elements reaches `2^16`. That way
we can further reduce the number of allocated heap memory.

The pre- and post-process steps from the JS implementation can be omitted,
because we can directly interpret the TypedArray memory contents as unsigned
integers in C++.

The concurrent write access handling in `SortByColumn` is necessary to avoid
an out-of-bounds access when a different thread writes to the same shared
memory location. This was also an issue in the JS implementation, except the
only visible outcome in that implementation was that the internal `aux` array
could leak to the user.

Depends on D143286

Differential Revision: https://phabricator.services.mozilla.com/D143287
2022-05-06 07:31:25 +00:00
André Bargull ba6f2a53cc Bug 1763606 - Part 2: Port TypedArray CountingSort function to C++. r=tcampbell
Direct translation of the JS counting sort implementation to C++. The stack
allocated buffer has inline storage to store the complete uint8_t range. (This
function will also be used in the next part for uint16_t, but in that case the
complete buffer will be heap allocated.)

The C++ implementation is faster than the JS implementation and therefore we
can use a smaller limit when we fallback to `std::sort` for small arrays.

Depends on D143285

Differential Revision: https://phabricator.services.mozilla.com/D143286
2022-05-06 07:31:25 +00:00
André Bargull 71d92c1b95 Bug 1763606 - Part 1: Replace TypedArray QuickSort JS-function with C++. r=tcampbell
Invoke `std::sort` without a comparator function for integral types including
`uint8_clamped`. For floating point types invoke `std::sort` with a comparator
function to ensure negative zero is sorted before positive zero. To further
improve the performance when sorting floating point numbers, compare numbers
using their unsigned sort value using the same approach as currently used in
RadixSort.

When the backing buffer is a SharedArrayBuffer, we need to copy the TypedArray
contents to avoid UB in std::sort when a different thread is modifying the
same SharedArrayBuffer memory.

The next two patches in this queue will provide specialisations for
`TypedArraySort()` to select faster sort algorithms than `std::sort` for
certain TypedArray element types.

Differential Revision: https://phabricator.services.mozilla.com/D143285
2022-05-06 07:31:24 +00:00
Mathew Hodson 05c78de712 Bug 1630027 - Migrate RTL Guidelines from MDN. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142183
2022-05-06 07:16:58 +00:00
Mathew Hodson 34e2ece16f Bug 1630027 - Migrate CSS Guidelines from MDN. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142163
2022-05-06 07:16:48 +00:00
Mathew Hodson d83e906b06 Bug 1630027 - Migrate SVG Guidelines from MDN. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142184
2022-05-06 07:16:48 +00:00
Mozilla Releng Treescript 3c671a76c0 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
ach -> c0df1e6f0fa47ebcb9779cb5f465d1059c59bb19
af -> 96d07670432bed1a1c705ed3c4d5a862cc9006d8
an -> 061c207c941adaaffdb7bb6105501f0589042a38
ar -> bae567482ff7d25eebcbe7248079801f55791777
ast -> 97547f7bd8446f20080c3a0753a8cc096403eb34
az -> 72ef330c2422bfa75b166ec2e98f1e1fd1673ba0
be -> f2d385944ea4169ea1bb082465ca470337b1855d
bg -> 626c7768d5d74c847340f9ef70595519ece8e92f
bn -> 558f01717c63b70b7fcc9ed887c101deabece004
br -> 75c688444c744824e79601a671e5fdca832a3c90
brx -> 801dafb3f8bd238e0c216190527f6ce5814261b7
bs -> bc98619d6c3f446e86c10da7e5056d95dae0cfdc
ca -> 53a4976d45ed94825c3bfae65ecea3f1c112ada2
ca-valencia -> 811d57b3b4c5388c16cabe816e903edd1d94c097
cak -> 745ff9cdf91ac493dc20f5957c7cd3d45e2790a3
ckb -> d32309249e66041e5cc21f5b56e72de8eab140d5
cs -> c92361922a4d7a51cf8cf3fd841541cc67f3bb14
cy -> 35f86582d707fac389af5d188bb0bb3415de7c20
da -> 8281e95169d039c502dd164ead658aa2e0d1f988
de -> 04a4762f573434bb12615c2bbd3f4c0ea153d75d
dsb -> e36d120efc35f361fc7e67f855ca7fefc72b03d9
el -> 889152361dbe6b2d3a88a9e9b28f7b17a423b9bb
en-CA -> 69ff3ae8ee1bf5d33e871e082ba5270fed4ab250
en-GB -> 7e5b5f326c2ce3aabf5965c7f5b00d578f350c03
eo -> eecbe5acb6bf8c95a70c512876d6304780520104
es-AR -> eb03b0e211c79c3a4594e3b701f9d9e316ebd379
es-CL -> 40b571e8f3b18250eea05afb4be6ae4d4436fb56
es-ES -> 54fd7c0b27f9da0e4b5354005f9fb9baa8c65da5
es-MX -> 115d9ed28210d6f3275c24b4103cf73b02094292
et -> 8dccc3aa8722023a45b1bdf3d58f7f9737027617
eu -> 42ad6743cc1770b2f47d3453e733408db5a1365e
fa -> 622763228c43c99e13cc8ac63de0fdd16fe88695
ff -> a6819d7bd721261eb006dc162326cb5ffe69607a
fi -> 4d3eeb159a2cf3967720f6f94ba50927e5bb1cb1
fr -> c05a59cfb5151c8d1c19d9506c2181a4618f5917
fy-NL -> 714842b6442e639f7466a7ef8af68034c4c4e294
ga-IE -> 1bd8b81bcda69a87e8af506c79ed4791dba17042
gd -> cbeacf37662048187521b685e78584f99cb8e402
gl -> 1a18225155092f615d0253d1ecca98acd754077b
gn -> 1251d035931c95e1a773d3f08c1e0ac7397c92db
gu-IN -> 6f2ef8ed1f872e99d7e11ab81affcf9a3a9cd440
he -> a0a6b8062fb202c3125282673e8883a268c05e91
hi-IN -> 8b192e3f182dcb52aa2fbf04bbb682402e74dc0a
hr -> 44533ae994aacb4c18d5d633aa1288d49a0ab315
hsb -> 9572e1808da82f67e8bc2f4f37145d2ec1c5a723
hu -> fee2af2a52920cb7e6d762fd3e0435322110df96
hy-AM -> bb1bf145406ce6e0f948891d60ef6298d4f1e6a0
hye -> a780a7fe6f815e22388f988bd74acf49aaa4d67a
ia -> 951322c57da80039b2d96cba4b0156f8e06780e9
id -> f2fba11024d9cde67cb2a318f0386c65c17306ce
is -> b086e5eaad74eef1705ee7e71e5f22b3d1474dbe
ja -> 8a5eee4bffb74d9e055f56b8763ee78f401ba0f3
ja-JP-mac -> ca17bbf61a8103b93e35a952ea4a2a76a43d8a52
ka -> 012dfb41fc2b2487cd4a13bf4573433eabec4abf
kab -> 96c192f25b1c20938d05db5840ded6a196886f1a
kk -> f06eada3bbfa2447fe4fdd4f74dbac7d465042d6
km -> 66ae84dd76885d1d893ce81cff7dfdf51ba6e70f
kn -> cc568a617e7c90707fb94662b8d945a5f2d8aef0
ko -> 68f951d5947f78d444aa52ec0a26dce2765adf92
lij -> f058b05af7db4f4fab06f7b72af9e9f79523f347
lo -> 1e8e1e2c5256265b00f1bbb301e5f85518f698d5
lt -> 079ded942e9d51aee48fff7e0ddda5ae724c8c60
ltg -> 6c74343f8cf1afa6c670394bb5cc2a2037f74b86
lv -> ce9e5a93e7906fb940d61a69046342d2f62297a1
mk -> 5148d6e2faa6db6eb8f19dd65a1fc9e70b444ef2
mr -> 083d2131757827a85b5239fe992d4c5dc5ca9c9f
ms -> 2e625c947ce24d2ff66a840cfed3fcbdba34cfca
my -> 701639e1c9053bcd2b851b44f708cc594722b193
nb-NO -> 84f645f9ccf1586a18bf26a8c2ba0ba9917b88d0
ne-NP -> eed51c2b7e393f58a40c3c98894dbbf3a3c6362a
nl -> a7874fae80bc15eae072a354b5527e46d2b007f6
nn-NO -> 3cb4783309c530c1de9a87ce9279aa91b19ce7f4
oc -> 3d0905f0ab710727e0a8da5c28ab88684f662c5d
pa-IN -> c503058164026391bb96a34465deaffa87aa1d0a
pl -> fcad82afea33c12f2c326bb4c86e9b23e3897d66
pt-BR -> 4e73bef496a8e116c4589ceb334243d3744933c6
pt-PT -> 1b1d031ddde508738a9daa41d3d53b0f836e7296
rm -> 28f75608293606014de87e8aa8b3740891c72279
ro -> 4ee410ec4225bd234c44e9dabe402459d0415370
ru -> bdf7d74cb82043f7f8060b3c5a44699460fa5ade
sat -> 23cf8ee51996b0e522f563671997d623e766cc6b
sc -> c8c6153069b35bd9fcbb253d1d6885e552be7290
scn -> 5683cd3aa41fe256dfc3585efa0d3abe58d6f972
sco -> baeaf5bfc3d3456eff3a5bf3df07ab40480e18fb
si -> 9a37c1ccfd1de276880babd3e0090a13bdb523b7
sk -> a2e3c72ccbfee2f1191028588bb4994eb2aa69af
sl -> a13f0af860c2812dfa2abf1afa02e1ed7cb9c07d
son -> d29c45b2d27b0e64e1df7ed2c4aaec2821e69ca2
sq -> ab808e918a3a18dce19bded163a333fca4dc5c98
sr -> b4f5f41731d5368fb8a2ef8809f5ca2ca4be6577
sv-SE -> 8a97853ace7454a592bd631507923ea4626b74d7
szl -> b459b2c9bf0f732850f04cfdbfdbe3aec37b57d6
ta -> b58c291be896ddcd0b8067598509ccb7e19185a5
te -> 212c00e4acdf8fd80e09fb9cdb7d29655347ea48
tg -> fc59fd10d4cfe6c97f878d76640c283a6f19b998
th -> 8ca3f21a07931b52f0bd1a8e35312bb9cd5be9cd
tl -> 40ee423d53e24e15e6881ba2cb73219a55b25c68
tr -> bd5a0dc58fa6cc1f07ff7aca0584acec5fc92460
trs -> 774bff28fc2f165f17d85ff841c6830a24284399
uk -> 6f28754108979b742960e1645f0bfa6dd2f0bb21
ur -> df2082bc317be9116009fb18e55b9b29cacf917e
uz -> b0e3a748043e8134cd7bdf8e769cd6baf50b6305
vi -> 949ecc9990c6a1213e5eb858b819d7caccc6eb2e
wo -> 67fe7137404ae9258ae1065100df819ea3d9ca31
xh -> 756ef4ec56278ddf62e8a334b0e407970ee3fd2a
zh-CN -> 9328544ce933e90c6b051ffc75ef6fa9aae072c3
zh-TW -> 4fdfc4111627a5b2a60bfaec3fd1c1c45650839a
2022-05-06 06:57:52 +00:00
Dimi 2d87cac70d Bug 1763080 - Do not use arbitary timeout in browser_remoteiframe.js r=sgalich,tgiles
This patch does the following:
1. Use `focusUpdateSubmitForm` utility function
2. Use `waitForAutofill` utility function instead of using arbitary
   timeout to wait for autofill result
3. Use `openPopupForSubframe` utility function instead of only using
   `synthesizeKey`. This ensures the next key event is triggered after
   the popup is opened.
4. Add "autofill-clear-button" to `runAndWaitForAutocompletePopupOpen`
   so "Clear Autofill Form" popup is recognized by the utility function.

Differential Revision: https://phabricator.services.mozilla.com/D144878
2022-05-06 06:51:31 +00:00
Iulian Moraru 24cf77db18 Backed out 2 changesets (bug 1681498, bug 1681495) for causing marionette failures on test_service_worker_at_shutdown.py. CLOSED TREE
Backed out changeset c553d7f2e586 (bug 1681495)
Backed out changeset 190c8814b474 (bug 1681498)
2022-05-06 10:06:21 +03:00
Daniel Holbert c68edab7cb Bug 1745310 part 4: Add a copy of this bug's WPT test with large positive margin values. r=emilio
This test isn't entirely interoperable, but in the spots where other engines
disagree with Gecko, I'm pretty sure it's due to bugs on their end, and I've
filed bugs which I've linked in the test.  Out of caution, though, I've named
the test filename with ".tentative" due to the lack of full interop and due to
the CSS2 spec's ambiguity around precise float wrapping behavior.  The
reference case is based on Gecko's current behavior, in any case.

Differential Revision: https://phabricator.services.mozilla.com/D145531
2022-05-06 06:05:39 +00:00
Daniel Holbert ce27583b57 Bug 1745310 part 3: Add a copy of the WPT test with negative margin values that shouldn't trigger wrapping. r=emilio
The margins in this test aren't more-negative than the available space, so they
don't "pump up" the BFC's border-box enough to force it to wrap to a new line.

Firefox and Chromium agree on this testcase, but WebKit does not, per
https://bugs.webkit.org/show_bug.cgi?id=239976

Given that this is a vaguely-specced area, I'm naming the test with
".tentative" at this point.

Depends on D145197

Differential Revision: https://phabricator.services.mozilla.com/D145530
2022-05-06 06:05:39 +00:00
Daniel Holbert 28817b460c Bug 1745310 part 2: Add a copy of the WPT test with "width:stretch" (and prefixed aliases). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D145197
2022-05-06 06:05:38 +00:00
Daniel Holbert 738efcb1cc Bug 1745310 part 1: Account for the impact of negative margins when determining how much space a float-avoiding box will need in order to fit alongside a float. r=emilio
Note: The WPT test included in this test is intended to excercise cases that
are (newly) interoperable between WebKit, Blink, and Gecko (with this patch).

There are other related cases where browsers still disagree; I'll add
additional WPT tests for those cases in a later patch in this series.

Differential Revision: https://phabricator.services.mozilla.com/D145159
2022-05-06 06:05:38 +00:00