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

852834 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa 52394e4a4f Bug 1847469 - Part 21: Use column number types in ErrorObject. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185759
2023-08-16 10:26:32 +00:00
Tooru Fujisawa ee81f946a2 Bug 1847469 - Part 20: Use column number types in JSErrorBase. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185758
2023-08-16 10:26:32 +00:00
Tooru Fujisawa 3f55ec7262 Bug 1847469 - Part 19: Remove unused conversion functions. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185757
2023-08-16 10:26:32 +00:00
Tooru Fujisawa 2a42af3d0e Bug 1847469 - Part 18: Remove unused line and column from MIR. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185756
2023-08-16 10:26:31 +00:00
Tooru Fujisawa c37bbdb5f3 Bug 1847469 - Part 17: Use uint32_t for line and column in JSErrorBase as a preparation to use column number types. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185755
2023-08-16 10:26:31 +00:00
Tooru Fujisawa 3ff56fc280 Bug 1847469 - Part 16: Use column number types in debugger. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185754
2023-08-16 10:26:31 +00:00
Tooru Fujisawa ca1431eebc Bug 1847469 - Part 15: Use uint32_t for line and column in debugger as a preparation to use column number types. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185753
2023-08-16 10:26:31 +00:00
Tooru Fujisawa a6d795e43b Bug 1847469 - Part 14: Use column number types in ScriptSource. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185752
2023-08-16 10:26:30 +00:00
Tooru Fujisawa 2415cca7ce Bug 1847469 - Part 13: Use column number types in PCToLineNumber. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185751
2023-08-16 10:26:30 +00:00
Tooru Fujisawa e49ed329a5 Bug 1847469 - Part 12: Use column number types in JitCodeSourceInfo. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185750
2023-08-16 10:26:30 +00:00
Tooru Fujisawa 6ed9b0b30a Bug 1847469 - Part 11: Use column number types in JSScript. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185749
2023-08-16 10:26:30 +00:00
Tooru Fujisawa c38b6641b8 Bug 1847469 - Part 10: Use column number types in SourceExtent. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185748
2023-08-16 10:26:29 +00:00
Tooru Fujisawa bfb39b4a60 Bug 1847469 - Part 9: Use column number types in SavedFrame API. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185747
2023-08-16 10:26:29 +00:00
Tooru Fujisawa ca7ba27825 Bug 1847469 - Part 8: Use column number types in ubi. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185746
2023-08-16 10:26:29 +00:00
Tooru Fujisawa 025944aede Bug 1847469 - Part 7: Use column number types in FrameIter and SavedFrame internal. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185745
2023-08-16 10:26:29 +00:00
Tooru Fujisawa 475220dbaa Bug 1847469 - Part 6: Use column number types in Module API. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185744
2023-08-16 10:26:28 +00:00
Tooru Fujisawa c83a308dcf Bug 1847469 - Part 5: Use column number types in ErrorMetadata. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185743
2023-08-16 10:26:28 +00:00
Tooru Fujisawa 02a1aa5fe5 Bug 1847469 - Part 4: Use column number types in irregexp. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185742
2023-08-16 10:26:28 +00:00
Tooru Fujisawa 71c5590d5b Bug 1847469 - Part 3: Use column number types in module internal. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185741
2023-08-16 10:26:28 +00:00
Tooru Fujisawa 72486ee3d6 Bug 1847469 - Part 2: Use column number types in parser and bytecode compiler. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185740
2023-08-16 10:26:27 +00:00
Tooru Fujisawa 2d379b4dc9 Bug 1847469 - Part 1: Add JS::ColumnNumberZeroOrigin, JS::ColumnNumberOneOrigin, JS::WasmFunctionIndex, JS::ColumnNumberOffset and compound types. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185739
2023-08-16 10:26:27 +00:00
Emilio Cobos Álvarez c6be271926 Bug 1847440 - Fix line numbers in CSS error reports.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2023-08-16 12:34:21 +02:00
Updatebot 78c3beaf49 Bug 1848578 - Update libjxl to e6202f7181eff36c78bfdb79aa9bd45c3d1d614b r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D186097
2023-08-16 10:25:21 +00:00
Emilio Cobos Álvarez 3f5eefadfb Bug 1845779 - Don't report use counter data for content-inaccessible about:blank documents. r=nika
Our counters are super low because we report lots of empty entries for
these. It seems just opening a new tab is enough to trigger this.

While at it I found that we also report about:preferences / about:config
since they use the system principal. Also block those.

Differential Revision: https://phabricator.services.mozilla.com/D184834
2023-08-16 10:23:22 +00:00
Valentin Gosu bae0259857 Bug 1724048 - Only add the HttpChannelChild to the loadGroup when guaranteed we will actually open the channel. r=necko-reviewers,kershaw
When we AsyncOpen the HttpChannelChild, we might exit early, possibly because
we're already shutting down. But if we've already added the channel to the
loadgroup when the loadgroup gets cleaned up we try to cancel the channel.
Because we didn't get to that point where we call SetEventTarget,
we would trigger the neckoTarget assertion in HttpChannelChild::AsyncCallImpl.

This patch makes sure we add the channel to the loadgroup when we are certain
it will actually be opened.

Differential Revision: https://phabricator.services.mozilla.com/D186123
2023-08-16 10:11:06 +00:00
Andreas Pehrson 7710707346 Bug 1848749 - Route received RTCP packets directly to PacketReceiver via PCImpl. r=bwc
This patch moves from a model where every received RTCP packet goes through all
MediaPipelines for a given transport, being duplicated along the way to the same
webrtc::PacketReceiver instance; to a model where every received RTCP packet
goes through PeerConnectionImpl to webrtc::PacketReceiver.

With this patch, no duplications occur.

The PacketDumper API expects received RTCP/SRTCP packet to be tied to a level so
this patch maintains the old behavior by dumping received RTCP/SRTCP on all
levels that have dumping enabled.

Differential Revision: https://phabricator.services.mozilla.com/D186227
2023-08-16 10:06:14 +00:00
Otto Länd f9ae3e211d Bug 1840872: apply code formatting via Lando
# ignore-this-changeset
2023-08-16 09:59:34 +00:00
Nicolas Chevobbe 6d6a70bb42 Bug 1840872 - [devtools] Show `::highlight` pseudo element in rules view. r=devtools-reviewers,ochameau.
We need to do things a bit differently than for other pseudo elements as
`InspectorUtil.getCSSStyleRules` expects the highlight function + the highlight
name (e.g. `::highlight(myHighlight)`.
We loop through all registered Highlights via `CSS.highlights` and only consider
the ones that are currently used in the page (i.e. their `size` is > 0).
A test is added to ensure everything works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D184551
2023-08-16 09:56:43 +00:00
Nicolas Chevobbe 3296d02897 Bug 1840872 - Add InspectorUtils.getRegisteredCssHighlights method. r=jjaschke.
This will be used by DevTools to retrieve the name of registered, active, highlights,
in order to display the CSS rules for the `::highlight` pseudo element rules.

Differential Revision: https://phabricator.services.mozilla.com/D186006
2023-08-16 09:56:43 +00:00
Nicolas Chevobbe 69d2ab5554 Bug 1847517 - [devtools] Tweak preview popup style. r=devtools-reviewers,ochameau.
Don't display the arrow on the root node, and remove the ability to collapse it.
Add a border at the bottom of the root node so it looks like a header
Add a new `HEADER` Rep mode that will be used for the root node, so we're
showing relevant information in this context (e.g. the object type/class name)
but not the preview when it would be redundant with the content of the tooltip.

For example, we don't want to show the preview for simple objects, arrays, maps, …
but we still have a "longer" description for objects where the properties in
the preview are handpicked (e.g. elements, window, document, …)

Differential Revision: https://phabricator.services.mozilla.com/D185770
2023-08-16 09:53:17 +00:00
Emilio Cobos Álvarez 29a01bdd3d Bug 1847440 - Always store relative line numbers in CSS rules. r=zrhoffman
CSS rules were storing absolute rather than relative line numbers (this
was done to match the old style system).

So when we hit the cached inline stylesheet code-path, for which we
share the CSS rules of the stylesheet, for the cache hit the line
numbers were completely off.

This particular page was probably regressed by bug 1834081, but the
issue could happen before with Shadow DOM.

Always store relative numbers and convert to absolute when asked by the
inspector, rather than the other way around.

This is simpler and makes the cache work.

Differential Revision: https://phabricator.services.mozilla.com/D185916
2023-08-16 09:37:27 +00:00
Emilio Cobos Álvarez 0cd41b3262 Bug 1847440 - Other misc cleanups in style-rule.js. r=nchevobbe,devtools-reviewers
No need to explicitly return a promise in async functions.

Depends on D185916

Differential Revision: https://phabricator.services.mozilla.com/D186090
2023-08-16 09:36:56 +00:00
Jan-Niklas Jaeschke 09be4ee8df Bug 1840822, part 3: Don't add a second line break if between block element and end of editing host. r=masayuki,dom-core
This patch deals with this case:
```
<span contenteditable><div>foo</div>[]</span>
```
In this case only one `<br>` should be added since one
line break is already added because of the `<div>` block.

Differential Revision: https://phabricator.services.mozilla.com/D185935
2023-08-16 09:34:50 +00:00
Jan-Niklas Jaeschke df8b4a288b Bug 1840822, part 2: Add an invisible line break at the end of a contenteditable for `InsertLineBreak` case. r=masayuki,dom-core
The logic behind this patch is similar to that of part 1, only that this covers the case where a user triggers a line break instead of a new paragraph (i.e. by pressing [Shift/cmd]+[Enter]).
If the inserted BR element is followed by a block boundary, another BR element is added.

Depends on D182339

Differential Revision: https://phabricator.services.mozilla.com/D182485
2023-08-16 09:34:50 +00:00
Jan-Niklas Jaeschke 9a0cf05339 Bug 1840822, part 1: Add an invisible line break at the end of a contenteditable for `insertParagraph` case. r=masayuki,dom-core
If a user presses <Enter> to add a new paragraph at the end of a contenteditable, a second (invisible) line break has to be added:
`<span contenteditable>foo[]</span>` --> `<span contenteditable>foo<br><br></span>`

This patch deals with contenteditables which do not preformat whitespaces
(i.e. should insert linebreaks, not linefeeds).
The linefeed cases are handled in Bug 1840856.
Also this patch only deals with a code path that uses `insertParagraph`.
The code path that uses `InsertLineBreak` is handled in part 2 of this Bug.

The patch implements a lambda function that inserts a second `<br>` element,
which is called in two situations:
1. The editing host is empty:
  `<span contenteditable>[]</span>`--> `<span contenteditable><br><br></span>`
2. The caret is at a block boundary:
  `<span contenteditable>abc[]</span>` --> `<span contenteditable>abc<br><br></span>`

Differential Revision: https://phabricator.services.mozilla.com/D182339
2023-08-16 09:34:50 +00:00
Emilio Cobos Álvarez 6b114cbb5f Bug 1847440 - Part 2: Simplify some callers now that getAuthoredCssText doesn't throw. r=nchevobbe,devtools-reviewers
Depends on D185906

Differential Revision: https://phabricator.services.mozilla.com/D186089
2023-08-16 09:12:34 +00:00
Emilio Cobos Álvarez 55eec79fa6 Bug 1847440 - Part 1: Cache failure in getAuthoredCssText(). r=nchevobbe,devtools-reviewers
If our line numbers etc are wrong, then we might throw and retry later.

Given the empty string already represents failure, make
getAuthoredCssText not throw and just return the empty string on
failure.

This avoids retrying over and over just to fail. It doesn't fix the
initial hang, but makes it more manageable.

Will still try to find a proper fix / root cause of course, but this
seems harmless enough either way.

Differential Revision: https://phabricator.services.mozilla.com/D185906
2023-08-16 09:12:34 +00:00
Emilio Cobos Álvarez 4701bd9d26 Bug 1847440 - Part 0: Split canSetRuleText so that it's easier to follow. r=nchevobbe,devtools-reviewers
No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D186088
2023-08-16 09:12:33 +00:00
Emilio Cobos Álvarez db7cf7a43e Bug 1451717 - Fix scheduling of media query list events to match the spec. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D185662
2023-08-16 09:07:14 +00:00
Frederic Wang 3ca3383228 Bug 1847201 - Reorganize and tweak tests for mathml.disabled=true. r=emilio
After bug 1847177, the only remaining tests in layout/mathml/tests are
for testing the effect of mathml.disabled=true.

test_disabled.html is a plain mochitest, rename it
dynamic-math-tree-001.html and move it into
testing/web-platform/mozilla/tests/mathml/disabled. The iframe added in
bug 1470163 is no longer necessary since the preference is enabled in
the __dir__ini manifest.

test_disabled_chrome.html is a chrome mochitest checking that MathML
is still laid out in Chrome document when mathml.disabled is true. It
is a bit complex and non-obvious so try to rewrite it in a more
straightforward way. Also use test_disabled_chrome_iframe.html as
a file name for the the iframe content to make clear it's associated
to this test. Probably this test could be rewritten as a browser
mochitest (see bug 1847206).

math-parse01.html is copied from the the upstream WPT repo but runs
with mathml.disabled=true. Move it into the same directory as other
WPT tests testing support when MathML is disabled.

Finally, also enable linting for layout/mathml/tests.

Differential Revision: https://phabricator.services.mozilla.com/D185426
2023-08-16 09:06:01 +00:00
Hanpu Liu Charles af4d15c34d Bug 1817779 - Implemented tabs.detectLanguage for Android, r=robwu,geckoview-reviewers,extension-reviewers,owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184942
2023-08-16 09:05:20 +00:00
Paul Adenot d7ef8972e6 Bug 1257145 - Remove --disable-fmp4 to unbreak --disable-ffmpeg. r=glandium,media-playback-reviewers,karlt
MP4 now routinely contains royalty-free codecs such as VP9 and Opus, I don't
think it makes too much sense to couple it with an option for the inclusion of a
decoder that is in the contrary used to decode patented codecs. It also doesn't
make much sense to allow disabling it either in this day and age.

Differential Revision: https://phabricator.services.mozilla.com/D185918
2023-08-16 09:04:46 +00:00
Jon Coppeard 526c00fd08 Bug 1847397 - Check no post barrier needed when eliding it in UpdateRegExpStatics r=jandem
The original issue was fixed bug 1847017. This patch adds some checks to ensure
things are working correctly.

Differential Revision: https://phabricator.services.mozilla.com/D186213
2023-08-16 08:46:26 +00:00
Yoshi Cheng-Hao Huang 74429a25c6 Bug 1833503 - Test for importScripts. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D181215
2023-08-16 07:56:27 +00:00
Nicolas Chevobbe d81e60336d Bug 1792737 - [devtools] Handle undefined DebuggerObject.environment in JQueryLiveEventCollector. r=devtools-reviewers,ochameau.
This could cause the event tooltip to not be displayed for some jQuery events.
A test is added to ensure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D185976
2023-08-16 07:24:51 +00:00
Nicolas Chevobbe 83325686ef Bug 1848119 - [devtools] Remove unnecessary PageStyleActor#_expandRules. r=devtools-reviewers,jdescottes.
Depends on D184728

Differential Revision: https://phabricator.services.mozilla.com/D185915
2023-08-16 07:24:29 +00:00
Cristian Tuns 91f3e9507b Backed out changeset 734d30379253 (bug 1848821) for causing wpt failures in virtual_authenticator.html CLOSED TREE 2023-08-16 03:03:55 -04:00
Mozilla Releng Treescript 05d11b4fa7 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
de -> 7c12a18c483e894dccf79f71759faf6019e4a575
es-CL -> 9fef1e212fcea0d6a4a695d1dcd01efb7181ffed
it -> d0b7e74b768ff9bfc76dd5371e28df2ea582caa0
sl -> b7af22906f76c952965fc0e3d9d7a4235dce8f5f
tg -> 6d88e1def304b0136719fe48fe2785196bbfd7f0
2023-08-16 06:59:29 +00:00
Paul Bone c75bf8e729 Bug 1844359 - Lookup main thread only arenas without a lock r=glandium
By adding another tree for arena lookups we can access the new tree without
taking a lock.  This makes main-thread-only arenas completely lock-free.

Differential Revision: https://phabricator.services.mozilla.com/D184548
2023-08-16 05:51:38 +00:00
Ting-Yu Lin 5e66827a51 Bug 1818933 - Synthesize flex item's baseline if its inline axis is the cross axis. r=dholbert
After this patch, we'll fail four tests due to reference files written in grid
layout, and we've had bug 1609403 for grid baseline alignment.

Differential Revision: https://phabricator.services.mozilla.com/D185872
2023-08-16 05:45:53 +00:00