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

767069 Коммитов

Автор SHA1 Сообщение Дата
Frederik Braun 0d6ba1700d Bug 1725339 - Restrict systemprincipal from loading type *SUBDOCUMENT* via HTTP, HTTPS and data schemes (data restriction preffed OFF). r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D122420
2021-08-23 09:23:25 +00:00
Andrei Oprea 707ebe0230 Bug 1726819 - Scrollbar is present in 'Add/Edit bookmark' panel r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D123294
2021-08-23 09:22:09 +00:00
Emilio Cobos Álvarez dcedd925dc Bug 1726515 - Workaround GCC-calling-into-LLVM ABI issue by making GenericFontFamily larger. r=hiro
This enum being a bit larger doesn't cause many common data structures
to grow, so this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D123146
2021-08-23 09:18:49 +00:00
Julien Wajsberg 33162b590a Bug 1697901 - [network markers] Move the START marker slightly later so that we don't add it for canceled requests r=necko-reviewers,dragana
Requests may be canceled before AsyncOpen is even called. In that case
we don't want to add START markers, and we don't want to add CANCEL
markers for these requests that didn't even start yet.

Depends on D123255

Differential Revision: https://phabricator.services.mozilla.com/D123256
2021-08-23 08:56:54 +00:00
Julien Wajsberg 2a42e8a50e Bug 1697901 - [network markers] Bump the profile version to 24 r=gerald
This ensures our users will use the latest version of the frontend when
capturing 'cancel' network markers.

Depends on D123254

Differential Revision: https://phabricator.services.mozilla.com/D123255
2021-08-23 08:56:53 +00:00
Julien Wajsberg bf4f00022e Bug 1697901 - [network markers] Support channel cancelation in service workers too r=necko-reviewers,kershaw
Intercepted requests can also be canceled.

Depends on D122111

Differential Revision: https://phabricator.services.mozilla.com/D123254
2021-08-23 08:56:53 +00:00
Julien Wajsberg 4bc6caa649 Bug 1697901 - [network markers] Support channel cancelation r=valentin,gerald,necko-reviewers
This patch supports channel cancelations with network markers.

Because of all the possible ways to stop a channel and hence all
possible end markers, it also introduces a new boolean to reduce the
complexity. Indeed it happens that 2 "end functions" are called, but we
need to insert only 1 end marker to have a well-formed result in the
Profiler frontend.

Differential Revision: https://phabricator.services.mozilla.com/D122111
2021-08-23 08:56:52 +00:00
Julian Descottes ac9a92042c Bug 1726004 - [devtools] Remove backward compatibility code for descriptor reload r=bomsy,devtools-backward-compat-reviewers
Depends on D122761

Differential Revision: https://phabricator.services.mozilla.com/D122762
2021-08-23 07:59:09 +00:00
Julian Descottes 8095799bcf Bug 1726002 - [devtools] Remove backward compatibility code about hasNativeConsoleAPI in dom-complete DOCUMENT_EVENT r=bomsy
Depends on D122760

Differential Revision: https://phabricator.services.mozilla.com/D122761
2021-08-23 07:59:08 +00:00
Julian Descottes 4e8867aa9c Bug 1726001 - [devtools] Remove backward compatibility code supportsDocumentEventWillNavigate r=bomsy
Depends on D122759

Differential Revision: https://phabricator.services.mozilla.com/D122760
2021-08-23 07:59:08 +00:00
Julian Descottes 8a5ce6a47c Bug 1725999 - [devtools] Remove backward compatibility code for trait supportsThreadActorIsAttached r=bomsy
Depends on D122758

Differential Revision: https://phabricator.services.mozilla.com/D122759
2021-08-23 07:59:08 +00:00
Julian Descottes 6d33922813 Bug 1725999 - [devtools] Remove backward compatibility code for ThreadConfigurationOptions r=bomsy
Depends on D122751

Differential Revision: https://phabricator.services.mozilla.com/D122758
2021-08-23 07:59:07 +00:00
Julian Descottes 4bd565b3e0 Bug 1725994 - [devtools] Remove backward compatibility code about javascriptEnabledHandledInParent r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D122751
2021-08-23 07:59:07 +00:00
Masayuki Nakano 0c5d9df685 Bug 1726064 - part 21: Make `HTMLEditor::AdjustCaretPositionAndEnsurePaddingBRElement()` use `HTMLEditUtils::Get(Inclusive)AncestorElement()` r=m_kato
I have no idea how to test this because this method is a clean up method
after handling everything.  This patch just adds same editing host check,
but the others are not changed.

Finally, the legacy APIs are not used anymore.  So, let's remove them!

Differential Revision: https://phabricator.services.mozilla.com/D123075
2021-08-23 06:39:39 +00:00
Masayuki Nakano 7895de5264 Bug 1726064 - part 20: Make `HTMLEditor::RemoveBlockContainerElements()` use `HTMLEditUtils::GetAncestorElement()` r=m_kato
Depends on D123073

Differential Revision: https://phabricator.services.mozilla.com/D123074
2021-08-23 06:27:39 +00:00
Masayuki Nakano 4cca5d2f25 Bug 1726064 - part 19: Make `HTMLEditor::SelectBRElementIfCollapsedInEmptyBlock()` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato
I have no idea how to write test for this kind of preparation method of
following range computation to do something.

Depends on D123072

Differential Revision: https://phabricator.services.mozilla.com/D123073
2021-08-23 05:50:43 +00:00
Masayuki Nakano c23029f7d5 Bug 1726064 - part 18: Make `HTMLEditor::HandleCSSIndentAtSelectionInternal()` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato
Depends on D123071

Differential Revision: https://phabricator.services.mozilla.com/D123072
2021-08-23 05:35:12 +00:00
Dana Keeler 1cfc7d4bce Bug 1724072 - update android hostutils due to ssltunnel changes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D123276
2021-08-23 05:25:36 +00:00
Masayuki Nakano 2ac70cba92 Bug 1726064 - part 17: Make `HTMLEditor::FormatBlockContainerWithTransaction()` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato
Depends on D123070

Differential Revision: https://phabricator.services.mozilla.com/D123071
2021-08-23 05:08:42 +00:00
Dan Mosedale 70e89e9be7 Bug 1721516 - land npm audit fixes for newtab, r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D120422
2021-08-23 04:54:25 +00:00
Dan Mosedale b241042f6c Bug 1703566 - update many old newtab dependencies, r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D120396
2021-08-23 04:54:25 +00:00
Masayuki Nakano 60f1ec0712 Bug 1726064 - part 16: Make `HTMLEditor::InsertParagraphSeparatorAsSubAction()` use `HTMLEditUtils::Get(Inclusive)AncestorElement()` and `HTMLEditUtils::IsSplittableNode()` r=m_kato
Comparing found editable block with editing host does not make sense if
focused editing host has another editing host and selection is in the
child editing host since the child editing host should be compared with the
found block element.  Therefore, this patch makes it use `IsSplittableNode()`
instead of the comparing.

Depends on D123069

Differential Revision: https://phabricator.services.mozilla.com/D123070
2021-08-23 03:11:25 +00:00
Matt Woodrow 0ee96e3fa5 Bug 1726291 - Remove FrameLayerBuilder. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D122930
2021-08-23 03:07:31 +00:00
Iulian Moraru 87787e85e2 Backed out changeset d93e8a61d529 (bug 1724846) for causing reftest failures on downscale-moz-icon-1.html. CLOSED TREE 2021-08-23 07:11:37 +03:00
Daisuke Akatsuka b92a37cc10 Bug 1726305: Avoid throwing NS_ERROR_FAILURE when referring to the host in nsIURI. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D123176
2021-08-23 01:58:16 +00:00
Iulian Moraru a16afaadfe Backed out changeset d21b3f88a2b4 (bug 1726648) for causing build bustages. CLOSED TREE 2021-08-23 04:12:02 +03:00
Kagami Sascha Rosylight 0c5086660f Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D123163
2021-08-23 00:35:40 +00:00
Masayuki Nakano d8027365e3 Bug 1726064 - part 15: Make `HTMLEditor::EnsureCaretNotAfterPaddingBRElement()` use `HTMLEditUtils::Get(Inclusive)AncestorElement()` r=m_kato
The method assumes two wrong things:
* The padding `<br>` element flag may not be set (another bug)
* There may be `<br>` element which is created by the web app

But its callers want to put caret at **invisible** `<br>` element if selection
is collapsed after it.  Therefore, this patch fixes the method for passing
the new tests and rename it.

And also this patch changes the expected result of some tests in `inserthtml.js`
because their expected result are based on Gecko, i.e., both Blink/WebKit
fail, but their result is better for keeping the invisible `<br>` element
visibility.
https://wpt.fyi/results/editing/run/inserthtml.html?run_id=5747864689967104&run_id=5201845715730432&run_id=5735315550502912&run_id=5763864667881472

Depends on D123068

Differential Revision: https://phabricator.services.mozilla.com/D123069
2021-08-22 21:38:20 +00:00
Hiroyuki Ikezoe f548cc63dc Bug 1724358 - Don't apply overscroll-behavior properties on non scrollable APZCs for scrolling handoff. r=botond
This behavior is not compliant with the CSS overscroll behavior spec.

The spec clearly explains that overscroll-behavior applies to scroll
container elements. But overflow: hidden elements can be scroll container
elements, thus the property should be respected in terms of the spec
definitions. That said, Chrome has been doing this behavior since 2017 [1],


[1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209
[2] https://github.com/w3c/csswg-drafts/issues/6523

Differential Revision: https://phabricator.services.mozilla.com/D122199
2021-08-22 21:35:19 +00:00
Masayuki Nakano d543ed3a3b Bug 1726064 - part 14: Make `AutoDeleteRangesHandler::ExtendRangeToIncludeInvisibleNodes()` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato
I have no idea how to test this without making unrealistic cases with legacy
mutation event listeners because now, Gecko ignores selection ranges which
crosses editing host boundaries when it tries to delete selection.
* https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/editor/libeditor/HTMLEditorDeleteHandler.cpp#1120
* https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/editor/libeditor/EditorUtils.cpp#137
* https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/editor/libeditor/EditorUtils.cpp#119-125

And invisible white-spaces appear end of a block or start of a block, i.e.,
both block parents in the range boundaries are always editable in normal cases.
So, such range should be ignored first.

Depends on D123067

Differential Revision: https://phabricator.services.mozilla.com/D123068
2021-08-22 21:32:21 +00:00
Glenn Watson fa6eeae54b Bug 1724846 - Split DL spatial tree to separate payload r=gfx-reviewers,nical
This will allow experimenting with different representations of
the spatial tree (such as interning and/or providing stable
indices during display list building). It may also simplify
future changes to the public API to expose the spatial tree
directly.

As part of these changes, refactor how the debug representation
for the capture format is (de)serialized, to make it simpler to
add different payload vector types in future.

Differential Revision: https://phabricator.services.mozilla.com/D122183
2021-08-22 20:54:07 +00:00
Matt Woodrow fea5444468 Bug 1723266 - Return an infinite perspective in TransformOperation::Perspective::to_animated_zero. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D122919
2021-08-22 20:46:47 +00:00
Eden Chuang 69e4ba3cbc Bug 1693074 - Adding telemetry for evaluating the duration of fetch event dispatching and response synthesizing. r=dom-worker-reviewers,asuth
This patch tries to record the fetch event dispatching time, the response's synthesizing time, and interception resetting time.

Fetch event dispatching time is the time duration between interception starts, which is the time point of InterceptedHttpChannel::AsyncOpenInternal(), and the fetch handler starts. It includes the InterceptedHttpChannel setup time, ServiceWorker launch time, FetchEventOp propagation through IPC, a FetchEvent creation, initialization, and dispatching/scheduling on worker scope.

Response synthesizing time is the time duration between the fetch handler finishes, which is the resolving/rejecting promise of respondWith(), to the finish of pumping the synthesized response to InterceptedHttpChannel, which is the time point of calling InterceptedHttpChannel::OnStopRequest(). It includes the response propagation through IPC, response header and body synthesis, and pumping synthesized response to the channel.

Interception resetting time is the time duration between the fetch handler finishes and redirecting InterceptedHttpChannel to a normal HTTP channel.

Since the fetch handler is executed on the process where the service worker spawned, the timestamps related to the fetch handler need to be get on that process. So this patch adds the FetchHandlerStart and FetchHandlerFinish on IPCFetchEventRespondWithResult related types to propagate the timestamps to the parent process.

Depends on D118398

Differential Revision: https://phabricator.services.mozilla.com/D118399
2021-08-22 11:02:18 +00:00
Eden Chuang 4d477a5d36 Bug 1693074 - Adding telemetry for evaluating whole fetch interception duration. r=dom-worker-reviewers,asuth
Class InterceptionTimeStamps is introduced to help to record fetch-related timing. It is a private class of InterceptedHttpChannel since should use it in InterceptedHttpChannel only.

We are probably not only interested in the resource type, navigation or subresource, but also the final status of fetching, Synthesized, Reset, Canceled, or Redirected. So the fetch's final status also be appended on the sub-key of telemetry.

Depends on D118397

Differential Revision: https://phabricator.services.mozilla.com/D118398
2021-08-22 11:02:18 +00:00
Eden Chuang 9d2950b7b1 Bug 1693074 - Adding telemetry for spawning service worker. r=dom-worker-reviewers,asuth
Instead of recording service workers' spawning in InterceptedHttpChannel, recording SERVICE_WORKER_LAUNCH_TIME_2 in ServiceWorkerPrivateImpl since spawning does not happen in fetch only

Depends on D118396

Differential Revision: https://phabricator.services.mozilla.com/D118397
2021-08-22 11:02:17 +00:00
Eden Chuang 43495b894c Bug 1693074 - Remove child interception telemetries related codes. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D118396
2021-08-22 11:02:17 +00:00
Andi-Bogdan Postelnicu 75ed803f7c Bug 1725145 - fixes for linking in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122344
2021-08-22 10:21:56 +00:00
Andi-Bogdan Postelnicu 250fa0d795 Bug 1725145 - header files fixes in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122343
2021-08-22 10:21:55 +00:00
Andi-Bogdan Postelnicu 6bf82cc2f5 Bug 1725145 - Fixes for libwebrtc. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D122806
2021-08-22 10:21:55 +00:00
Andi-Bogdan Postelnicu ee0c1c4213 Bug 1725139 - Fix gtest suite in gfx to be buildable outside unified. r=hiro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D122340
2021-08-22 10:21:55 +00:00
Andi-Bogdan Postelnicu c08f1b99c2 Bug 1725137 - Fix gtest suite from dom to be buildable outside unified. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D122338
2021-08-22 10:21:54 +00:00
Robert Mader 68c6005874 Bug 1726807 - Avoid crashes caused by floating point errors, r=gfx-reviewers,lsalzman
We always expect integer values here, even with fractional scaling,
and if floating point errors cause `bufferClip.x` or `bufferClip.y` to
fall slightly below `0`, this will cause a protocol error.
We can savely avoid this by simply rounding the rect.

Differential Revision: https://phabricator.services.mozilla.com/D123289
2021-08-22 08:44:48 +00:00
Alexandru Michis 27cbe35110 Backed out changeset 6df43bd2a7bc (bug 1724358) for causing gv-junit failures in testOverscrollBehaviorNoneAuto 2021-08-22 03:15:08 +03:00
Hiroyuki Ikezoe 8f7a2ef029 Bug 1724358 - Don't apply overscroll-behavior properties on non scrollable APZCs for scrolling handoff. r=botond
This behavior is not compliant with the CSS overscroll behavior spec.

The spec clearly explains that overscroll-behavior applies to scroll
container elements. But overflow: hidden elements can be scroll container
elements, thus the property should be respected in terms of the spec
definitions. That said, Chrome has been doing this behavior since 2017 [1],


[1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209
[2] https://github.com/w3c/csswg-drafts/issues/6523

Differential Revision: https://phabricator.services.mozilla.com/D122199
2021-08-21 23:40:44 +00:00
Masayuki Nakano 368e3f0587 Bug 1726064 - part 13: Make `AutoEmptyBlockAncestorDeleter::ScanEmptyBlockInclusiveAncestor()` use `HTMLEditUtils::Get(Inclusive)AncestorElement()` r=m_kato
Additionally, the given content may be in a nested editing host.  Then, this
method may delete a nested-block editing host if it's empty.  Therefore,
this patch get rid of `aEditingHost` and check same thing with
`HTMLEditUtils::IsRemovableFromParentNode()`.

Depends on D123066

Differential Revision: https://phabricator.services.mozilla.com/D123067
2021-08-21 21:28:52 +00:00
Masayuki Nakano 125fa92a05 Bug 1726064 - part 12: Make `HTMLEditor::CanMoveOrDeleteSomethingInHardLine()` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato
I have no idea how to test this, but I believe that checking non-editable
block element must be correct here because it checks whether the block is
empty or not for merging lines.

Depends on D123029

Differential Revision: https://phabricator.services.mozilla.com/D123066
2021-08-21 21:28:52 +00:00
Alexandru Michis 912ff8d389 Backed out changeset 3e07275028db (bug 1724535) for causing Bug 1726912. 2021-08-21 21:34:00 +03:00
Alexandru Michis 6692fa0e63 Backed out changeset 6aaaf18f2aae (bug 1722567) for causing bc failures in browser_forget_async_closings.js
CLOSED TREE
2021-08-21 21:17:21 +03:00
Andreea Pavel 26554f995c Bug 1706633 - disable browser_storage_fission_local_storage.js on linux debug r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122977
2021-08-21 17:19:30 +00:00
Kashav Madan 6d78b8ad0b Bug 1725107 - Ensure we're throwing whenever we return a null promise, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D122783
2021-08-21 17:13:42 +00:00