787834 Commits

Author SHA1 Message Date
Lee Salzman
eb9953e3f6 Bug 1758127 - Don't use tight bounding rect if glyph transform fails. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D140746
2022-03-11 08:06:39 +00:00
Florian Quèze
9fbf6f9b14 Bug 1757202 - Add the browser window inner id to the SetDisplayList, CompositeToTarget and SkippedComposite profiler markers, r=mstange.
Depends on D139733

Differential Revision: https://phabricator.services.mozilla.com/D140748
2022-03-11 07:49:06 +00:00
Florian Quèze
43b1fb6ca1 Bug 1757202 - Add SetAnimation, SampleAnimation and ClearAnimation markers on the compositor thread, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139733
2022-03-11 07:49:05 +00:00
Florian Quèze
e199a5a9b2 Bug 1757202 - Expose CompositorThreadHolder::GetThreadId to make it easy to add profiler markers on the compositor thread from any thread, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139732
2022-03-11 07:49:05 +00:00
Florian Quèze
9c9aca9d89 Bug 1757202 - Include the inner window id in the existing Composite markers, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139731
2022-03-11 07:49:05 +00:00
Florian Quèze
253d6198c8 Bug 1757202 - Make the inner window id of the browser window available in the compositor bridge, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139730
2022-03-11 07:49:04 +00:00
Florian Quèze
ee33a6c743 Bug 1757202 - Add more information in existing CSS Animation and CSS Transition main thread markers, r=boris.
Differential Revision: https://phabricator.services.mozilla.com/D139734
2022-03-11 07:49:04 +00:00
Florian Quèze
8e60938b99 Bug 1758752 - Describe the event target in DOMEvent profiler markers, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D140670
2022-03-11 07:49:03 +00:00
Masayuki Nakano
be8f718db4 Bug 1742933 - part 7: Make HTMLEditor::ChangeSelectedHardLinesToList() insert list item into the new list element before connected to the DOM tree r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D140471
2022-03-11 07:43:06 +00:00
Andreea Pavel
243a4ef66a Bug 1753364 - update disabling to fix android failures r=test-only on a CLOSED TREE 2022-03-11 10:08:46 +02:00
Masayuki Nakano
1d03bba6fd Bug 1742933 - part 6: Make HTMLEditor::HandleInsertParagraphInListItemElement() insert <br> element into the new paragraph before connecting to the DOM tree r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D140470
2022-03-11 07:26:03 +00:00
Masayuki Nakano
c677c96b0a Bug 1742933 - part 5: Make HTMLEditor::HandleInsertParagraphInHeadingElement() insert <br> element into the new paragraph before connecting to the DOM tree r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D140469
2022-03-11 07:26:03 +00:00
Masayuki Nakano
5ffc15f39d Bug 1742933 - part 4: Make HTMLEditor::CreateAndInsertElementWithTransaction() and HTMLEditor::InsertBRElementWithTransaction() work without transactions r=m_kato
At initializing new element which has not been connected, undo transactions
are not necessary because just removing the new element gets same result for
users.  Therefore, they should be able to work without transactions.

Differential Revision: https://phabricator.services.mozilla.com/D140468
2022-03-11 07:18:48 +00:00
Masayuki Nakano
b17c5766d4 Bug 1742933 - part 3: Make HTMLEditor::AlignBlockContentsWithDivElement set align attribute or equivalent before inserting a new <div> into the DOM tree r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D140467
2022-03-11 07:11:59 +00:00
Masayuki Nakano
6ba81cec0c Bug 1742933 - part 2: Make HTMLEditor::CopyLastEditableChildStylesWithTransaction clone attributes to new elements before inserting them into the DOM tree r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D140466
2022-03-11 06:59:37 +00:00
Masayuki Nakano
6eaf1c971a Bug 1742933 - part 1: Make HTMLEditor::CreateAndInsertElementWithTransaction() take a callback function r=m_kato
For making initializing new element safer and faster, it's better to initialize
new element's attributes and appending children before inserting the new element
into the DOM tree.

Differential Revision: https://phabricator.services.mozilla.com/D140465
2022-03-11 06:28:36 +00:00
Andreea Pavel
bfb61b27c1 Bug 1753364 - disable 2d.drawImage.animated.poster.html for frequent failures r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D140588
2022-03-11 06:20:45 +00:00
Andreea Pavel
6cb3aadc50 Bug 1692963 - update disabling condition to reduce failure rate r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D140594
2022-03-11 06:20:21 +00:00
Mike Hommey
14c4b67aac Bug 1758781 - fix for build bustages. CLOSED TREE 2022-03-10 21:09:30 -08:00
Mike Hommey
d6e5f60dce Bug 1758781 - Remove now unnecessary patch to link llvm-symbolizer statically. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D140712
2022-03-11 04:10:49 +00:00
Mike Hommey
3885f30dfb Bug 1758781 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
The llvm-symbolizer tasks currently extract a llvm-symbolizer from clang
tasks. Changes in clang 14 make the hack that we have in place to keep
llvm-symbolizer statically linked to libllvm while clang uses a dynamic
libllvm not work anymore, so it's time to bite the bullet and build
llvm-symbolizer separately.

We share most of the build setup with the compiler-rt build.

Differential Revision: https://phabricator.services.mozilla.com/D140711
2022-03-11 04:10:49 +00:00
Mike Hommey
adaf88ed51 Bug 1758781 - Use the WinMsvc.cmake toolchain file to build compiler-rt. r=firefox-build-system-reviewers,mhentges
The toolchain file is a helper for cross-compilation that even deals
with case-sensivity in MSVC, which simplifies our setup.

Differential Revision: https://phabricator.services.mozilla.com/D140710
2022-03-11 04:10:48 +00:00
Masayuki Nakano
45ba6f356a Bug 1753508 - Add logger of selection batch r=smaug
This was required for debugging the bug.

Differential Revision: https://phabricator.services.mozilla.com/D139350
2022-03-11 02:24:24 +00:00
Masayuki Nakano
5ee6119ad5 Bug 1753508 - Make EditorBase::AutoEditActionDataSetter::UpdateSelectionCache clean up and restart selection batch which the editor started r=smaug
When `Selection` instance is updated, the old selection may be in batch.
In the case, `UpdateSelectionCache` should clean up the batch in the old
selection and start new one in the new selection instead.

Differential Revision: https://phabricator.services.mozilla.com/D139349
2022-03-11 02:24:24 +00:00
Sammy Khamis
5449cda06a Bug 1559349 - Change Sync startup to be after browser idle r=markh,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140577
2022-03-11 02:03:15 +00:00
Jonas Jenwald
7c50ea0cdb Bug 1757527 - Slightly reduce (repeated) message passing overhead when localizing the PDF Viewer. r=pdfjs-reviewers,calixte,bdahl
Currently there's a fair bit of unneeded overhead when localizing the PDF Viewer, since *every single* string requires a round-trip from the `viewer.js` file to the `PdfStreamConverter.jsm` file.
This despite the fact that the relevant `viewer.properties` file is read *only once*, and its result is then cached, see https://searchfox.org/mozilla-central/rev/8f42809e51cb07aa4f5739932a06d14581e9dd4a/toolkit/components/pdfjs/content/PdfStreamConverter.jsm#470-473

Hence we can improve things here by instead sending the *entire* localization data at once when it's first requested, and also cache it in the viewer, to reduce completely unneeded message passing overhead caused by localizing the PDF Viewer.

To put these changes into perspective, let's look at what happens when loading the PDF Specification; i.e. https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf
When loading that document we first of all need to localize the viewer UI, however the initialization/rendering of the PDF Document itself also causes some l10n-string lookups. All-in-all, simply loading the above PDF document in Firefox currently results in just over `3900` l10n-strings being fetched (with most of them being duplicates).
Furthermore, all these l10n-string lookups also have a measurable performance impact on the viewer UI localization. Using some, admittedly crude, benchmarking with `console.time/timeEnd` around the viewer UI localization code in https://searchfox.org/mozilla-central/rev/8f42809e51cb07aa4f5739932a06d14581e9dd4a/toolkit/components/pdfjs/content/web/viewer.js#484-485 gives the following results (using the best observed values, with `privacy.reduceTimerPrecision = false` set):

 - With the current code, the viewer UI localization takes around `12-13` ms.

 - With this patch, the viewer UI localization takes around `4-5` ms.

While these improvements are obviously not huge, they thus cannot hurt as far as I'm concerned.

(Assuming this is accepted, I'll obviously follow-up with the relevant `web/viewer.js` patch at GitHub. However, these changes must be synchronized in the both the viewer/integration code.)

Differential Revision: https://phabricator.services.mozilla.com/D139928
2022-03-11 01:24:05 +00:00
Yury Delendik
f283dae3a8 Bug 1749788 - Fix replace_lane and i64x2.splat for AVX. r=jseward
* Implement {i8x16,i16x8,i32x4,f32x4,f64x2}.replace_lane
* Fix i64x2.splat for AVX2 and make it faster for non-AVX2

Differential Revision: https://phabricator.services.mozilla.com/D139077
2022-03-11 01:20:57 +00:00
Yury Delendik
70f833bf4d Bug 1749788 - Implement simple binary SIMD operations for AVX encoding. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D139051
2022-03-11 01:20:57 +00:00
Katherine Patenio
9e9997b4a2 Bug 1756718 - move pip texttracks when pip player controls appear to avoid overlap. r=mhowell,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139956
2022-03-11 00:52:01 +00:00
Marian-Vasile Laza
089b6279c6 Backed out changeset d3f40b4651f5 (bug 1755006) for causing mochitest failures on test_pointerlock-api.html. CLOSED TREE 2022-03-10 17:54:53 -08:00
Neil Deakin
fc439be68b Bug 1755887, the picture-in-picture shortcut should open the focused video, if any, otherwise, should find a video in the nested subframe that has focus, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D140663
2022-03-11 00:29:05 +00:00
sotaro
c7c684492c Bug 1758865 - Add Feature::VIDEO_OVERLAY r=gfx-reviewers,lsalzman
With Feature::VIDEO_OVERLAY, we could know if video overlay is enabled from about:support.

Differential Revision: https://phabricator.services.mozilla.com/D140706
2022-03-10 23:58:18 +00:00
Niklas Baumgardner
8df33a3b36 Bug 1755748 - Keep PiP tabs in active state. r=mconley,dthayer
Differential Revision: https://phabricator.services.mozilla.com/D140394
2022-03-10 23:33:26 +00:00
Dana Keeler
3f93068a72 Bug 1756061 - PSM changes corresponding to mozilla::pkix signature verification changes in bug 1755092 r=jschanck
Bug 1755092 changed how mozilla::pkix verifies signatures. This patch makes the
corresponding changes in PSM.

Depends on D140597

Differential Revision: https://phabricator.services.mozilla.com/D139202
2022-03-10 23:21:00 +00:00
John Schanck
5075ae5d88 Bug 1758579 - land NSS be8a62f85be7 UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D140597
2022-03-10 23:20:59 +00:00
Olli Pettay
50ba1466cf Bug 1755006, reduce framerate if the main thread is busy handling also other tasks, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D140046
2022-03-10 23:04:55 +00:00
Edgar Chen
4f64d5369a Bug 1683281 - Part 7: Generate example code for ObservableArray; r=peterv
Depends on D113862

Differential Revision: https://phabricator.services.mozilla.com/D115747
2022-03-10 22:44:29 +00:00
Edgar Chen
74c8ac1951 Bug 1683281 - Part 6-2: C++ helper function for ObservableArray; r=peterv
Generate helper function for C++ to perform operations on backing objects for
each observable array attribute,
- ElementAt: Get the item at that index. Throw error if fail to get the element.
- ReplaceElementAt: Replace the item at the index, this will also trigger OnDelete
  and OnSet callback. Throw error if fail to replace the element.
- AppendElement: Append one element to the end of the array, this will also trigger
  OnSet callback. Throw error if fail to append the element.
- RemoveLastElement: Remove the element at the last index, this will also trigger
  OnDelete callback. Throw error if fail to remove the element.
- Length: Get the number of the indexd value. Throw error if fail to get the length.

Depends on D113728

Differential Revision: https://phabricator.services.mozilla.com/D113862
2022-03-10 22:44:29 +00:00
Edgar Chen
d70b01fd77 Bug 1683281 - Part 6-1: Create CGHelperFunctionGenerator and refactor into more generic base class; r=peterv
So we could reuse it to generate helper function for observable array type

Depends on D112280

Differential Revision: https://phabricator.services.mozilla.com/D113728
2022-03-10 22:44:29 +00:00
Edgar Chen
ebd37b74c8 Bug 1683281 - Part 5: Generate binding code for ObservableArray type; r=peterv
The highlevel architecture:
- Each observable array attribute has corresponding ES proxy exotic object stored
  in DOM reflector's reserved slot. It use the ObservableArrayProxyHandler as
  proxy handler which implements the behaviour defined in the spec.
- Each observable array exotic objects has 2 reserved slots:
  * one is to store the raw pointer of the interface, it is cleaned up when the
    DOM reflector is finalized. It is used to run the SetAlgorithm and
    DeleteAlgorithm defined in the spec.
  * one is to store the backing list used to store the indexed value. The additional
    properties are stored in the proxy target instead.

Depends on D112279

Differential Revision: https://phabricator.services.mozilla.com/D112280
2022-03-10 22:44:28 +00:00
Edgar Chen
f56fbb0c77 Bug 1683281 - Part 4: Add helper method to get ObservableArray backing object; r=peterv
Depends on D112278

Differential Revision: https://phabricator.services.mozilla.com/D112279
2022-03-10 22:44:28 +00:00
Edgar Chen
2ecc5e3af1 Bug 1683281 - Part 3: Add ObservableArrayProxyHandler base class; r=peterv
This implements the base class for proxy handler of observable array exotic
objects, it implments the proxy behaviour define in
https://webidl.spec.whatwg.org/#es-observable-arrays, the virtual functions
, OnDeleteItem() and OnSetItem(), are for SetAlgorithm and DeleteAlgorithm that
are defined and implemented per interface.

Depends on D112277

Differential Revision: https://phabricator.services.mozilla.com/D112278
2022-03-10 22:44:27 +00:00
Edgar Chen
88a7cf9866 Bug 1683281 - Part 2: Move proxy handler utility functions from DOMJSProxyHandler.h to ProxyHandlerUtils.h; r=peterv
Depends on D103469

Differential Revision: https://phabricator.services.mozilla.com/D112277
2022-03-10 22:44:27 +00:00
Edgar Chen
8434221dbc Bug 1683281 - Part 1: Make WebIDL parser support ObservableArray type; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D103469
2022-03-10 22:44:27 +00:00
Alexandre Poirot
c0f34702c3 Bug 1757951 - [devtools] Implement "Root" Resources in order to be able to watch for context-less resources in the parent process. r=jdescottes,devtools-backward-compat-reviewers
This is equivalent to the ResourceCommand, but isn't related to any context/descriptor.
This helps listen to things right away when connecting to a RDP server.
That, without having to instantiate any descriptor/watcher actor.
It works right away via the root actor which is instantiated by default.

Differential Revision: https://phabricator.services.mozilla.com/D140206
2022-03-10 22:43:48 +00:00
Andrew Halberstadt
5c60693de8 Bug 1748510 - [taskgraph] Use taskgraph.py from vendored Taskgraph, r=taskgraph-reviewers,aki
The files are identical so this is just a matter of updating the references.

Depends on D140755

Differential Revision: https://phabricator.services.mozilla.com/D140756
2022-03-10 22:17:36 +00:00
Andrew Halberstadt
deab40aaac Bug 1748510 - [taskgraph] Use graph.py from vendored Taskgraph, r=taskgraph-reviewers,aki
The two files are identical, so it's just a matter of updating references.

Differential Revision: https://phabricator.services.mozilla.com/D140755
2022-03-10 22:17:36 +00:00
Ed Lee
e491000e89 Bug 1744377 - Coalesce next variation to avoid exceptions in tests r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D140707
2022-03-10 21:56:32 +00:00
Narcis Beleuzu
3b4c015f6a Merge mozilla-central to autoland. CLOSED TREE 2022-03-10 23:56:00 +02:00
Narcis Beleuzu
61fcf20da2 Merge autoland to mozilla-central. a=merge 2022-03-10 23:49:49 +02:00