Commit Graph

804299 Commits

Author SHA1 Message Date
Morgan Rae Reschenberg
b6665e6e70 Bug 1783095: Add relation caching test for input wrapped in <label> r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D154010
2022-08-10 19:45:48 +00:00
Morgan Rae Reschenberg
2469d25ec9 Bug 1783096: Attempt to fetch tag from aFields if TagName() is null r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D153798
2022-08-10 19:45:48 +00:00
Nika Layzell
1972b3b710 Bug 1170668 - Improve short read handling in nsConverterInputStream, r=hsivonen
This patch changes how nsConverterInputStream handles passing data
through to the underlying unicode converter in order to make it more
reliably handle propagating errors and deal with short reads from the
underlying input stream.

This was done by making the code continuously read within the Fill
method until at least one character has been decoded from the input
stream, so that we don't spuriously communicate an EOF to the caller due
to a short read not producing enough bytes for the decoder to produce a
UTF-16 character.

In addition, while making this change it became easier to signal to
the decoder about the final read from the input stream, meaning that
partial characters at the end of the stream will now generate a
replacement character, rather than being ignored.

Differential Revision: https://phabricator.services.mozilla.com/D152682
2022-08-10 19:44:41 +00:00
Sam Foster
6c7d2cb869 Bug 1783269 - Fix fxview setup progressbar colors. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D154023
2022-08-10 19:40:39 +00:00
Greg Tatum
3c686461e9 Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio
Differential Revision: https://phabricator.services.mozilla.com/D153668
2022-08-10 19:38:46 +00:00
Greg Tatum
c02763857c Bug 1782578 - Add tests for the text recognition modal r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D153397
2022-08-10 19:38:46 +00:00
Greg Tatum
9e7bde31d8 Bug 1782578 - Build out the text recognition modal r=nordzilla,fluent-reviewers,Jamie,flod
This patch contains the bulk of the implementation of the modal. Most of
it is UI work and wiring together the various components. There is a bit
of complexity in the clustering algorithm, as I implemented the DBSCAN
algorithm to help cluster the text recognition results.

I filed Bug 1782586 to improve the DBSCAN algorithm, but currently it
works the same as the algorithm is described on Wikipedia.

Note that the tests are in the following patch in order to keep the line
count small for this patch.

Differential Revision: https://phabricator.services.mozilla.com/D153396
2022-08-10 19:38:45 +00:00
Greg Tatum
b3d582927d Bug 1782578 - Stub out the textrecognition component files r=nordzilla
The implementation follows after this, but I felt it made the code
easier to read to by splitting it out.

Differential Revision: https://phabricator.services.mozilla.com/D153395
2022-08-10 19:38:45 +00:00
Greg Tatum
43adfeafe7 Bug 1782578 - Rename and move the context menu for text recognition r=nordzilla,fluent-reviewers,flod
This matches what is in the Figma spec.

Differential Revision: https://phabricator.services.mozilla.com/D153394
2022-08-10 19:38:44 +00:00
Greg Tatum
d2d1bca50b Bug 1782578 - Put the img shadow DOM behind a preference r=nordzilla
This code will most likely be removed, but for now I am putting it
behind a pref so that it won't be activated when the modal is being
created.

See Bug 1782582 for the removal of the code.

Differential Revision: https://phabricator.services.mozilla.com/D153393
2022-08-10 19:38:44 +00:00
Andrew McCreight
dbc0dcf10f Bug 1763197 - Disable test_ext_userScripts_register.js without Fission. r=rpl
This test seems to fail frequently on Linux without Fission, and on Android,
when the parent controlled navigation pref is enabled, so disable the test
there. We don't really support non-Fission builds anyways, and apparently
containers aren't supported on Android.

Differential Revision: https://phabricator.services.mozilla.com/D154288
2022-08-10 19:38:16 +00:00
Emilio Cobos Álvarez
5edd66eae2 Bug 1783940 - Include fonts that new chrome tests need in the reftest jar.
MANUAL PUSH: Test-only trivial fix CLOSED TREE
2022-08-10 21:31:04 +02:00
Emilio Cobos Álvarez
514e206e84 Bug 1778989 - Annotate a test on android that seems to be timing out.
MANUAL PUSH: Orange fix CLOSED TREE
2022-08-10 20:54:15 +02:00
Henrik Skupin
73ba554fdd Bug 1398792 - [wdspec] Enhance "Get Element Property" tests for Web References. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154220
2022-08-10 18:30:54 +00:00
Henrik Skupin
b1c401d013 Bug 1398792 - [marionette] Waive Xrays in "WebDriver:GetElementProperty" to get unfiltered access to untrusted elements. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154219
2022-08-10 18:30:54 +00:00
Jason Prickett
37c6118e15 Bug 1774067 - Adding about welcome mobile download screen in MR onboarding. r=pdahiya,mviar
Differential Revision: https://phabricator.services.mozilla.com/D152295
2022-08-10 18:16:53 +00:00
Norisz Fay
df7a75af14 Backed out changeset 44255b7d9b1c (bug 1746524) for causing xpcshell failures on test_ext_userScripts_register.js CLOSED TREE 2022-08-10 21:06:23 +03:00
Emilio Cobos Álvarez
63b17f21b8 Bug 1783882 - Don't flex searchbar listbox. r=dao
I can't reproduce this on Linux (which would make it easier to dig into what's
going on), but I confirmed this fixes the issue on Windows.

The flexing algorithm of XUL doesn't deal well with the footer block.

This shouldn't be needed, I think, because the listbox height is handled
explicitly in

  https://searchfox.org/mozilla-central/rev/6a37a2ab9328bec6a29f688d1b2fba6974d34905/toolkit/content/widgets/autocomplete-popup.js#361

Also use CSS rather than attributes to flex stuff.

Differential Revision: https://phabricator.services.mozilla.com/D154133
2022-08-10 18:00:55 +00:00
Ryan VanderMeulen
19a8c40474 Bug 1781558 - Update HarfBuzz to 5.1.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D152830
2022-08-10 17:47:44 +00:00
Meg Viar
5b715b9b64 Bug 1781086 - Handle dismiss telemetry in Feature Callout r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D153787
2022-08-10 17:17:42 +00:00
Norisz Fay
8bc30afa79 Backed out 6 changesets (bug 1782578, bug 1782579) for causing mochitest failures on browser_parsable_css.js CLOSED TREE
Backed out changeset bdb42cfe6213 (bug 1782579)
Backed out changeset 5f17ee4cc4df (bug 1782578)
Backed out changeset 4f969d46dd37 (bug 1782578)
Backed out changeset b4c51d1ffa99 (bug 1782578)
Backed out changeset 98d0d6bcd37b (bug 1782578)
Backed out changeset 8332d678079e (bug 1782578)
2022-08-10 20:19:31 +03:00
Marian-Vasile Laza
8274331cda Backed out changeset 449fe2d946ea (bug 1783934) for causing mochitest failures on test_animation-type-longhand.html. CLOSED TREE 2022-08-10 19:48:38 +03:00
Ting-Yu Lin
2fdf8765a6 Bug 793686 Part 2 - Call SetNextInFlowNeedsReflow() when an absolute containing block is incomplete. r=emilio
This fixed the following assertion for `layout/forms/crashtests/1690166-1.html`
after applying part 1.

```
ASSERTION: We have to create a continuation, but the block doesn't want us to reflow it?
```

https://searchfox.org/mozilla-central/rev/c0bed29d643393af6ebe77aa31455f283f169202/layout/generic/nsColumnSetFrame.cpp#750-752

Differential Revision: https://phabricator.services.mozilla.com/D154049
2022-08-10 16:19:06 +00:00
Ting-Yu Lin
c5cbd5bbfd Bug 793686 Part 1 - Don't set mIsTopOfPage on -moz-column-content during column-balancing. r=emilio
According to `nsContainerFrame::ShouldAvoidBreakInside`, we allow a frame to
break from inside when it is at the top of page/column, i.e. when `mIsTopOfPage`
is true.

This patch allows the content at the top of the column to honor the
break-inside:avoid during column balancing, so it can now propagate the
break-before status to nsColumnSetFrame if it needs to report such status.

We don't need to worry about disallowing an break-inside:avoid content from
breaking will trap the column balancing algorithm forever. If the content's
block-size is larger than the column container's available content-box
block-size, then the column balancing algorithm will give up and fill the
columns sequentially at
https://searchfox.org/mozilla-central/rev/4f2984be127d2e7c788cf1848d63dca63022beec/layout/generic/nsColumnSetFrame.cpp#1146-1162

The reference files are modified to reflect the rendering as of this patch. Note
that browsers do not agree on the rendering of `1420528-1.html`. Before this
patch, our rendering is the same as Chrome by placing "Spacer" in the first
column, but now we agree with webkit by placing it in the second column.

The multicol in `611574-2.html` is used for visual separation of subtests. I
change it from column balancing to fill to workaround bug 1784002.

Differential Revision: https://phabricator.services.mozilla.com/D154048
2022-08-10 16:19:05 +00:00
Julian Descottes
6bed5799c5 Bug 1783893 - [devtools] Changes view should rely on the computed property name r=nchevobbe
Similar to the fix done for values in Bug 1590031, now focused on property names.

Differential Revision: https://phabricator.services.mozilla.com/D154124
2022-08-10 16:18:53 +00:00
Jan Rio Krause
151c70968b Bug 1783921 - Add office.com to the Firebase shim. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154132
2022-08-10 16:11:51 +00:00
Jan Rio Krause
0f5a53cde6 Bug 1783919 - Add track.toggl.com to the PBMWebAPIFixes shim. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154125
2022-08-10 16:11:51 +00:00
Greg Tatum
980c8191a3 Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio
Differential Revision: https://phabricator.services.mozilla.com/D153668
2022-08-10 16:08:46 +00:00
Greg Tatum
57b038eab3 Bug 1782578 - Add tests for the text recognition modal r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D153397
2022-08-10 16:08:45 +00:00
Greg Tatum
b218d4bcca Bug 1782578 - Build out the text recognition modal r=nordzilla,fluent-reviewers,Jamie,flod
This patch contains the bulk of the implementation of the modal. Most of
it is UI work and wiring together the various components. There is a bit
of complexity in the clustering algorithm, as I implemented the DBSCAN
algorithm to help cluster the text recognition results.

I filed Bug 1782586 to improve the DBSCAN algorithm, but currently it
works the same as the algorithm is described on Wikipedia.

Note that the tests are in the following patch in order to keep the line
count small for this patch.

Differential Revision: https://phabricator.services.mozilla.com/D153396
2022-08-10 16:08:45 +00:00
Greg Tatum
0a77c0395d Bug 1782578 - Stub out the textrecognition component files r=nordzilla
The implementation follows after this, but I felt it made the code
easier to read to by splitting it out.

Differential Revision: https://phabricator.services.mozilla.com/D153395
2022-08-10 16:08:44 +00:00
Greg Tatum
a895f79b4c Bug 1782578 - Rename and move the context menu for text recognition r=nordzilla,fluent-reviewers,flod
This matches what is in the Figma spec.

Differential Revision: https://phabricator.services.mozilla.com/D153394
2022-08-10 16:08:44 +00:00
Greg Tatum
2ab79f551c Bug 1782578 - Put the img shadow DOM behind a preference r=nordzilla
This code will most likely be removed, but for now I am putting it
behind a pref so that it won't be activated when the modal is being
created.

See Bug 1782582 for the removal of the code.

Differential Revision: https://phabricator.services.mozilla.com/D153393
2022-08-10 16:08:43 +00:00
Yury Delendik
4aa9dd7e2c Bug 1781946 - Implement br_on_null, br_on_non_null, ref.as_non_null in Ion. r=rhunt
* Enable testing using Ion
* Disable call_ref.js for ion
* Allow Ion when --wasm-function-references
* Fix WasmOpIt to pass ref values
* Add br_on_null, br_on_non_null, ref.as_non_null

Differential Revision: https://phabricator.services.mozilla.com/D154146
2022-08-10 16:08:23 +00:00
Nicolas Silva
e7bb72d798 Bug 1777535 - Work around build issues. r=gfx-reviewers,lsalzman
I think that this issue was introduced by another series of patch (when we started passing nsACStrings as parameter in the bindings), but were hidden by unified builds.

Differential Revision: https://phabricator.services.mozilla.com/D154247
2022-08-10 15:55:12 +00:00
Nicolas Silva
39c0ae30ae Bug 1780792 - Remove unnecessary MapRequest constructor. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D152521
2022-08-10 15:55:11 +00:00
Nicolas Silva
6a27b6fc7f Bug 1777535 - Mapped at creation implies write access. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D152520
2022-08-10 15:55:11 +00:00
Nicolas Silva
8e0c3182c6 Bug 1780792 - Remove the public/private/public sandwich in Buffer.h. r=jimb
Depends on D152082

Differential Revision: https://phabricator.services.mozilla.com/D152093
2022-08-10 15:55:11 +00:00
Nicolas Silva
b59239fdc3 Bug 1777535 - Ensure WebGPUParent outlives the map callback. r=jimb
Depends on D152081

Differential Revision: https://phabricator.services.mozilla.com/D152082
2022-08-10 15:55:10 +00:00
Nicolas Silva
76a812fef7 Bug 1777535 - Differentiate between destroying and dropping a buffer. r=jimb
The former frees resources but keeps the handle. It can be called multiple times. The latter destroys the handle. Any subsequent reference to the same buffer is a bug and will cause the GPU process to crash.

Depends on D152080

Differential Revision: https://phabricator.services.mozilla.com/D152081
2022-08-10 15:55:09 +00:00
Nicolas Silva
dc27dd1a81 Bug 1771254 - Work around zero-sized shmems. r=jimb
Depends on D151703

Differential Revision: https://phabricator.services.mozilla.com/D152080
2022-08-10 15:55:09 +00:00
Nicolas Silva
4052fb5b08 Bug 1777535 - Don't crash when buffer_unmap returns an error. r=jimb
Depends on D151702

Differential Revision: https://phabricator.services.mozilla.com/D151703
2022-08-10 15:55:09 +00:00
Nicolas Silva
a868c89b1a Bug 1777535 - Don't crash when buffer_map_async returns an error. r=jimb
The error is handled in the callbacks.

Depends on D151701

Differential Revision: https://phabricator.services.mozilla.com/D151702
2022-08-10 15:55:08 +00:00
Nicolas Silva
aa764f309f Bug 1777535 - Validate mapAync mode on the parent side. r=jimb
Depends on D151632

Differential Revision: https://phabricator.services.mozilla.com/D151701
2022-08-10 15:55:08 +00:00
Nicolas Silva
971548a974 Bug 1780792 - Move the remaining buffer logic in Device.cpp into Buffer.cpp. r=jimb
Having the code in the same place makes it easier to follow. This made me realize that the validation of aMode in mapAsync has to move to the device side (fix coming in a followup).

Depends on D151631

Differential Revision: https://phabricator.services.mozilla.com/D151632
2022-08-10 15:55:08 +00:00
Nicolas Silva
ea11e14b00 Bug 1780792 - use Buffer::GetDevice instead of mParent. r=jimb
Another cosmetic change. I've dabbled with IPDL actors too much to not think about WebGPUParent when reading "mParent". Also the parent-child relationship between Device and Buffer is not very obvious to me (nor is it part of the specification).
So I find that wrapping mParent in a GetDevice method to make the code easier to understand. It also makes it explicit that the parent pointer cannot be null.

Depends on D151630

Differential Revision: https://phabricator.services.mozilla.com/D151631
2022-08-10 15:55:07 +00:00
Nicolas Silva
15f2edabb7 Bug 1780792 - Remove Buffer::Mappable(). r=jimb
It is not used anywhere.

Depends on D151629

Differential Revision: https://phabricator.services.mozilla.com/D151630
2022-08-10 15:55:07 +00:00
Nicolas Silva
89ae7cbb9e Bug 1777535 - Simplify Buffer::Cleanup. r=jimb
Make sure to always clean up any potential content-side state and only avoid sending Destroy each time.

Depends on D151621

Differential Revision: https://phabricator.services.mozilla.com/D151629
2022-08-10 15:55:07 +00:00
Nicolas Silva
92f2f9d376 Bug 1777535 - Unmap the buffer in Destroy. r=jimb,emilio
Per spec, if a buffer is mapped in destory(), unmap() must be called.

Depends on D151620

Differential Revision: https://phabricator.services.mozilla.com/D151621
2022-08-10 15:55:06 +00:00
Nicolas Silva
2247de33ba Bug 1777535 - Validate getMappedRange against the actually mapped range. r=jimb
Depends on D151619

Differential Revision: https://phabricator.services.mozilla.com/D151620
2022-08-10 15:55:06 +00:00