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

721954 Коммитов

Автор SHA1 Сообщение Дата
Peter Van der Beken 710fadd5c3 Bug 1658334 - Correctly pass null state data over IPC in SessionHistoryInfo. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D86565
2020-08-11 15:28:37 +00:00
Markus Stange 196229f42d Bug 1629220 - When partially compositing into native layers with BasicCompositor, allow only one invalid rect per layer, and store the invalid rect on the render target instead of pushing a clip to the DrawTarget. r=mattwoodrow
This matches what we do in CompositorOGL.

This avoids having clipping state stored on the render target's DrawTarget.
As a result, we have access to the combined device clip rect in DrawGeometry,
and the video scale fast paths can observe the correct clip even though they
bypass the DrawTarget machinery.

This fixes flickering bugs caused by the video scale fast path in the native
layers configuration, i.e. on macOS only. We probably still have bugs on the
other platforms. It's possible that this bug is less observable on other
platforms due to additional copies of the invalid region, and those copies
ignore the bad content outside the invalid region.

Differential Revision: https://phabricator.services.mozilla.com/D86608
2020-08-11 14:37:56 +00:00
Markus Stange a66383c120 Bug 1658407 - Set correct transforms on the opaqueness tinting layers. r=mattwoodrow
mOpaquenessTintLayer is a sibling layer of mContentCALayer, so the two layers
need the same transform and bounds.

This patch also removes an unnecessary twiddling of the position property.

Differential Revision: https://phabricator.services.mozilla.com/D86610
2020-08-11 14:37:56 +00:00
Nathan Froyd 92a3a92555 Bug 1658424 - add support for grabbing fp on arm64 macOS in DMD; r=mccr8
This code just cribs from the profiler's code and has not been tested.

Differential Revision: https://phabricator.services.mozilla.com/D86647
2020-08-11 14:09:28 +00:00
Nathan Froyd eca436fc65 Bug 1658376 - correctly identify arm64 macOS in FileUtils.cpp; r=mccr8
One more architecture that macOS runs on.

Differential Revision: https://phabricator.services.mozilla.com/D86596
2020-08-11 14:09:28 +00:00
Nathan Froyd 3c32012822 Bug 1658375 - add support for arm64 macOS to profiler sampling and unwinding; r=mstange
The registers referenced in this patch and the assembly have been tested to
compile; the code changes have not been tested to actually work.

Differential Revision: https://phabricator.services.mozilla.com/D86612
2020-08-11 14:09:20 +00:00
Razvan Maries 8df04ff073 Backed out changeset 558dce220fdd (bug 1654388) for perma failures on test_usage_prefs.html. CLOSED TREE 2020-08-11 07:57:38 +03:00
Mike Hommey ffcff8cdcf Bug 1651680 - Support --enable-strip/--enable-install-strip on mingw. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D86649
2020-08-11 02:53:34 +00:00
Mike Hommey c9ae9101aa Bug 1651680 - Replace PKG_SKIP_STRIP with PKG_STRIP. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D86648
2020-08-11 02:44:17 +00:00
Razvan Maries 23ffaf1a19 Backed out changeset 56973e24eb3d (bug 1657771) for build bustages. CLOSED TREE 2020-08-11 07:23:46 +03:00
Matt Woodrow 1808e4e837 Bug 1657771 - Implement scaling and flipping for SwCompositor. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D86500
2020-08-11 03:58:53 +00:00
Gerald Squelart 9aec647e21 Bug 1658230 - Renamed SpliceableChunkedJSONWriter::WriteFunc to ChunkedWriteFunc - r=gregtatum
SpliceableChunkedJSONWriter::WriteFunc was hiding base-class non-virtual JSONWriter::WriteFunc(), which made it less than ideal (for me) to reason with.

Also made a few subclasses final, to help with possible devirtualization.

Differential Revision: https://phabricator.services.mozilla.com/D86505
2020-08-11 03:51:33 +00:00
Gerald Squelart cc6cde66ad Bug 1658230 - Deduplicate ProfileJSONWriter classes - r=gregtatum
The main change is removing ProfileJSONWriter.cpp, making ProfileJSONWriter.h point at BaseProfileJSONWriter.h, and exposing `mozilla::baseprofiler::` classes in the top namespace as expected by users of ProfileJSONWriter.h (to minimize changes).

These two headers are now always present in the "mozilla" include directory, independent of MOZ_GECKO_PROFILER settings.

The rest is just needed tweaks to match the above changes.

Differential Revision: https://phabricator.services.mozilla.com/D86504
2020-08-11 03:50:54 +00:00
Gerald Squelart 11bd8d8e4a Bug 1658230 - Make BaseProfileJSONWriter.h header-only - r=gregtatum
Because this header will be used across libraries (mozglue and xul), it is simpler and more efficient to make it fully self-contained instead of using MFBT_API.

It may lead to slightly longer build times, but since it's only used inside the profilers, it won't impact other components.
The compiler can better optimize it in context, and decide what to inline.

Differential Revision: https://phabricator.services.mozilla.com/D86503
2020-08-11 03:49:00 +00:00
Nathan Froyd 7951ffdf2e Bug 1658375 - define platform macros for arm64 macOS in the profiler; r=mstange
This change doesn't resolve some of the issues in profiler code that have
x86-64-isms in them, but this is at least a start.

Differential Revision: https://phabricator.services.mozilla.com/D86595
2020-08-10 22:02:27 +00:00
julianwels 0cbb1af83b Bug 1651197: Added Learn More link to HTTPS-Only Mode error page. r=ckerschb,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D86593
2020-08-11 14:09:59 +00:00
John Lin 9550d9ab87 Bug 1638452 - don't hold lock while waiting player thread. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86658
2020-08-11 13:54:33 +00:00
Christoph Kerschbaumer f372af4995 Bug 1658244: Allow view-background-image to open a data: URI by setting a flag on the loadinfo r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D86592
2020-08-11 13:41:54 +00:00
Mike Conley 5b14269be5 Bug 1657484 - Change default location of the WebRTC global sharing indicator. r=pbz
Per UX, the new default location for the indicator upon opening is the the top
of the content viewport of the most recently used browser window.

Differential Revision: https://phabricator.services.mozilla.com/D86080
2020-08-11 10:03:07 +00:00
Moritz Birghan ca3a2d02cd Bug 1649472 - Add telemetry for PHA in TLS 1.3 r=jcj,keeler
Differential Revision: https://phabricator.services.mozilla.com/D81715
2020-08-11 11:56:07 +00:00
André Bargull a45fe8b3b9 Bug 1657820 - Part 12: Optimise Atomics.isLockFree in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86310
2020-08-11 11:22:06 +00:00
André Bargull 16d6b2abe2 Bug 1657820 - Part 11: Move isLockFree into the MacroAssembler. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86309
2020-08-11 06:55:15 +00:00
André Bargull e71bccf63f Bug 1657820 - Part 10: Optimise Atomics.store in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86308
2020-08-11 07:01:02 +00:00
André Bargull c9e2a15588 Bug 1657820 - Part 9: Optimise Atomics.load in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86307
2020-08-11 06:53:48 +00:00
André Bargull 679be27288 Bug 1657820 - Part 8: Optimise Atomics.xor in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86306
2020-08-11 06:51:53 +00:00
André Bargull f305eca878 Bug 1657820 - Part 7: Optimise Atomics.or in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86304
2020-08-11 06:50:14 +00:00
André Bargull 42caef15cf Bug 1657820 - Part 6: Optimise Atomics.and in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86303
2020-08-11 06:48:35 +00:00
André Bargull 36d1746553 Bug 1657820 - Part 5: Optimise Atomics.sub in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86302
2020-08-11 06:47:42 +00:00
André Bargull 2e53b617c0 Bug 1657820 - Part 4: Optimise Atomics.add in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86301
2020-08-11 06:45:17 +00:00
André Bargull 7dbb7c6eae Bug 1657820 - Part 3: Optimise Atomics.exchange in CacheIR and Warp. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D86300
2020-08-11 06:43:40 +00:00
André Bargull f47ccee416 Bug 1657820 - Part 2: Optimise Atomics.compareExchange in CacheIR and Warp. r=jandem
Uint32 isn't yet supported, because it may return a Double, which is difficult
to represent in CacheIR. Bug 1077305 proposes to unconditionally use Double
for Uint32 Atomics, which will make this easier to implement in CacheIR.

Differential Revision: https://phabricator.services.mozilla.com/D86299
2020-08-11 06:41:46 +00:00
André Bargull e8c9163853 Bug 1657820 - Part 1: Add support for ArgumentKind::Arg3. r=jandem
The next patch requires to have support for four arguments.

Differential Revision: https://phabricator.services.mozilla.com/D86298
2020-08-11 06:40:06 +00:00
Miko Mynttinen 3c0a965bd5 Bug 1658113 - Set the surface format based on YCbCrDescriptor color depth r=jya
Differential Revision: https://phabricator.services.mozilla.com/D86600
2020-08-11 01:13:30 +00:00
Frederik Braun 6c85c74f16 Bug 1655716 - Introduce TYPE_INTERNAL_FETCH_PRELOAD and use in HTMLLinkElement::AsValueToContentPolicy() - r=emilio,mayhemer,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D85980
2020-08-11 12:33:14 +00:00
Jan Varga c35198fb73 Bug 1658504 - Support declaration of variables in QM_TRY_VAR; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86685
2020-08-11 11:17:56 +00:00
Csoregi Natalia cc057fb442 Backed out 4 changesets (bug 1652894) for texture related crashes. CLOSED TREE
Backed out changeset 714ad1b01cb2 (bug 1652894)
Backed out changeset e3b4753fd09c (bug 1652894)
Backed out changeset 8abaf47071d8 (bug 1652894)
Backed out changeset 175df7659c3f (bug 1652894)
2020-08-11 15:50:07 +03:00
Noemi Erli 56b4ff381b Backed out changeset 9040cdaddc7c (bug 1658323) for causing multiple failures actors/webconsole related CLOSED TREE 2020-08-11 14:45:36 +03:00
Christoph Kerschbaumer 2372c28caf Bug 1658283: HTTPS-Only: Simplify ShouldUpgradeWebSocket. r=JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D86539
2020-08-11 11:19:28 +00:00
julianwels 3e427e5423 Bug 1656027 - Added cached property 'isSecureContext' as an additional condition when the security UI should be updated. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D85327
2020-08-11 10:57:40 +00:00
Christoph Kerschbaumer 2022b48393 Bug 1658325: HTTPS-Only Mode: Have HOM entry in about:preferences link to sumo page r=JulianWels,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D86561
2020-08-11 11:07:26 +00:00
Itiel c10ed056a5 Bug 1655020 - Fix the popup-subitem icon to have the same fill-opacity as the other icons in the same section r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D84802
2020-08-11 10:38:18 +00:00
Emilio Cobos Álvarez d276a931b8 Bug 1658525- Remove layout.css.comparison-functions.enabled. r=xidorn
Shipped since FF75 (bug 1519519).

Differential Revision: https://phabricator.services.mozilla.com/D86693
2020-08-11 10:27:42 +00:00
Dan Minor 3f683f4b28 Bug 1653219 - Remove old crashtest for tab sharing; r=ng
The window opened by the crashtests does not show up in the list
maintained by BrowserWindowTracker, so we never end up with any tabs to
share, causing the test to hang. I don't like to remove a test, but this
was written for the old version of tab sharing which has been completely
removed, and there doesn't seem to be a clear path ahead which would
make this test pass without adding special case code in tab sharing that
would work with crashtests.

Depends on D84593

Differential Revision: https://phabricator.services.mozilla.com/D86564
2020-08-10 22:06:53 +00:00
Timothy Nikkel c2b4a6f166 Bug 1658168. Make SmoothScrollAnimation pass float CSS pixels to AxisPhysicsMSDModel instead of app units. r=kats
This avoids a problem where apz side smooth scroll animations end immediately because the inaccuracy of converting to (integer) app units and back wrongly tells us that we have overscroll the non-moving axis if that axis is at the end of its range.

When we do a smooth scroll animation on the apzc side we use AxisPhysicsMSDModel. AxisPhysicsMSDModel is also used on the main thread to do smooth scroll animations. AxisPhysicsMSDModel uses doubles to represent all coordinates. On the main thread we pass in appunits, so the output of AxisPhysicsMSDModel is also in appunits. On the apzc side we follow that to.

A problem comes up when we do a smooth scroll animation in one axis, and the other axis is at the end of its range (and not animating). In the non-moving axis we convert the current scroll position (on the frame metrics) to appunits and pass it into AxisPhysicsMSDModel. Then when it comes time to call DoSample for the first time we ask for the position from AxisPhysicsMSDModel (in appunits) and then convert it to CSSPoint. And then we compare it with the current scroll position (on the frame metrics). Especially when we have zoom, the inaccuracy of this computation is enough for the difference between the CSSPoint for the current position from AxisPhysicsMSDModel and the current scroll offset (on the frame metrics) to be bigger than the epsilon that we use here:

https://searchfox.org/mozilla-central/rev/491612fa0be0f809069ea62c6316bf452cacc816/gfx/layers/apz/src/AsyncPanZoomController.cpp#747

and we determine that we have overscrolled the non-moving axis, and therefore the animation must be over.

Since AxisPhysicsMSDModel already operates purely on doubles if we just avoid converting to (integer) app units we avoid this problem. We could have AxisPhysicsMSDModel operate on float appunits, but that's a little inelegant because there aren't functions for converting to float appunits. We could also just have AxisPhysicsMSDModel operate on CSS pixels. That assumes that the physics calculations of AxisPhysicsMSDModel are scale independent, which I don't know for sure but they seem to be visually the same with CSS pixels.

Differential Revision: https://phabricator.services.mozilla.com/D86481
2020-08-10 21:57:46 +00:00
Dan Minor 271809cdc5 Bug 1653219 - Enumerate browser tabs before entire screen; r=ng
A lot of tests assume that the screen will be the last thing enumerated.
It is also the "scariest" option, so having it last makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D84593
2020-08-10 15:58:23 +00:00
Dan Minor 2db7834f68 Bug 1653219 - Use BrowserTabEnumerator to enumerate tabs; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D84592
2020-08-10 15:57:59 +00:00
Dan Minor fd59610aaf Bug 1653219 - Add nsIBrowserWindowTracker and getAllVisibleTabs function; r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D84591
2020-08-10 15:57:46 +00:00
Jonathan Kew e92e6945b1 Bug 1658207 - Set up and use the mCharacterMap in shared Family records more correctly, to accelerate font fallback searches. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D86490
2020-08-10 22:45:51 +00:00
Masayuki Nakano 220db95ff0 Bug 1657269 - part 2: Make `HTMLEditor::HandleDeleteSelectionInternal()` take `AutoRangeArray` instead of referring `Selection` ranges r=m_kato
Now, only when deleting table cell contents, `HandleDeleteSelectionInternal()`
depends on `Selection`.  However, this can be moved to `HandleDeleteSelection()`
because recursive callers expects `Selection` is collapsed by its previous job.

Differential Revision: https://phabricator.services.mozilla.com/D86183
2020-08-11 09:35:42 +00:00
Masayuki Nakano d5ed562a13 Bug 1657269 - part 1: Move `EditorBase::ExtendSelectionForDelete()` into `AutoRangeArray` r=m_kato
This patch moves `EditorBase::ExtendSelectionForDelete()` into `AutoRangeArray`
and make it stop modifying `Selection`.

The method extends anchor-focus range with `nsFrameSelection` and it refers
bidi information in it too.  Therefore, it needs to be called before modifying
anchor-focus range of `Selection`.  Unfortunately, this makes the code messy,
but for now, we should take this.  In the future, we should make the API of
`nsFrameSelection` free from `Selection`.

Differential Revision: https://phabricator.services.mozilla.com/D86182
2020-08-11 06:11:10 +00:00