Commit Graph

757001 Commits

Author SHA1 Message Date
Jamie Nicol
ec2d3d2494 Bug 1609191 - Disable webrender on devices affected by Adreno shader compilation crash. r=nical
We encounter frequent crashes in glLinkProgram on some Adreno
devices. This is likely due to a driver bug, but we have been unable
to figure out the exact cause and work around it.

According to the crash data, this bug appears to affect Adreno 505 and
506 devices running Android 9 only. Disable webrender on these devices
in order to avoid the crash.

Depends on D114949

Differential Revision: https://phabricator.services.mozilla.com/D114950
2021-05-12 13:03:51 +00:00
Jamie Nicol
f1a4194b3f Bug 1609191 - Revert previous attempt to work around Adreno shader compilation crash. r=nical
On Adreno 505 and 506 devices we encounter frequent crashes when
compiling shaders. We previously attempted to work around this by
ensuring that the source strings were always unique, as we believed it
may be due to buggy caching internally in the driver. This did not
have any effect, however, so this patch reverts the attempted
workaround.

Differential Revision: https://phabricator.services.mozilla.com/D114949
2021-05-12 13:03:51 +00:00
Dragana Damjanovic
34dc7af64a Bug 1705065 - ConnectionEntry should hold reference to DnsAndConnectSocket-s r=necko-reviewers,valentin
- Remove reference to ConnecionEntry from DnsAndConnectSocket. If ConnecionEntry is needed it is obtain from nsHttpConnectionMgr. It is only needed when a final connection is being set up.
- Put all functions that add and remove a DnsAndConnectSocket from the list in ConnecionEntry into one place (InsertIntoDnsAndConnectSockets, RemoveDnsAndConnectSocket, CloseAllDnsAndConnectSockets). Only these connection should remove/add DnsAndConnectSocket to ensure proper counting.
- Access DnsAndConnectSocket mostly from ConnecionEntry (e.g. refactor TryClaimingDnsAndConnectSocket).
- Remove some dead code (e.g. IsInDnsAndConnectSockets)
- Move some function into ConnecionEntry for a better code factoring (CreateDnsAndConnectSocket, MaybeProcessCoalescingKeys)
- Remove code that sets DNS flags in TransportSetup::SetupStreams because nsISocketTransport is not responsible for DNS lookups any more.

Differential Revision: https://phabricator.services.mozilla.com/D113119
2021-05-12 12:59:58 +00:00
Randell Jesup
1679badc68 Bug 1710671: do SetAcceptLanguages during process preallocation to reduce first-use overhead (especially for process-switch) r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D114901
2021-05-12 12:54:39 +00:00
Makoto Kato
7c255c77bf Bug 1709394 - Use split text data on binder call. r=geckoview-reviewers,agi
When taking focus on <input> element that has large text such as 1MB, we
cannot pass current text to InputConnection.

Since we use binder call to set initial text to InputConnection, large text
causes TransactionTooLargeException exception. So we use small chunked data
(64K length) instead.

Differential Revision: https://phabricator.services.mozilla.com/D114710
2021-05-12 12:45:49 +00:00
Geoff Lankow
a57f5cb1f1 Bug 1707711 follow-up - Delete lazy getter XPCOMUtils._scriptloader before replacing it. r=Standard8
XPCOMUtils._scriptloader is a read-only getter if it's never been called. Assigning a value to it throws an exception and breaks Thunderbird Mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D114802
2021-05-12 10:50:36 +00:00
Emilio Cobos Álvarez
c8d3546157 Bug 1710756 - Expose FocusOptions.preventsFocusRing to error pages. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D114910
2021-05-12 10:47:50 +00:00
Gerald Squelart
93fc93adba Bug 1710607 - If not profiling, make ShutdownProfilerChild dispatch SYNC - r=canaltinova
When not profiling, ShutdownProfilerChild should be quick, so it's safe to run synchronously.
In this case, we don't need to manually shutdown the thread (to wait for the previously-async task).
This removes the risky thread-shutdown with its inner event-handling loop, where all crashes in bug 1613798 happen.

Differential Revision: https://phabricator.services.mozilla.com/D114845
2021-05-12 10:44:33 +00:00
Henri Sivonen
742e92634a Bug 1710790 - Adjust WPT to expect bogo XML decl longer than a kilobyte to be honored. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D114937
2021-05-12 10:26:29 +00:00
Gerald Squelart
8b96edfb80 Bug 1710757 - Fix baseprofiler native-frame output - r=florian
SprintfLiteral doesn't support "%#llx" anymore.
So this patch switches to an explicit "0x%llx" to output addresses as the symbolicator expects.

Differential Revision: https://phabricator.services.mozilla.com/D114914
2021-05-12 10:22:55 +00:00
Emilio Cobos Álvarez
efbee87994 Bug 1709415 - Support -webkit-image-set as a parse-time alias to image-set(). r=karlcow,twisniewski
The webkit syntax is an strict subset of the modern one, so this should
be doable, and is the simplest.

If my reading of the WebKit code is correct it should also be the way
WebKit deals with this (except they restrict -webkit-image-set() syntax
artificially).

 * https://github.com/w3c/csswg-drafts/issues/6285
 * https://github.com/whatwg/compat/issues/144

Differential Revision: https://phabricator.services.mozilla.com/D114912
2021-05-12 10:15:37 +00:00
Nicolas Chevobbe
c7e36d6e02 Bug 1710417 - [devtools] Update pretty-fast to 0.2.6. r=ladybenko.
This fixes an issue we had with pretty printing scripts
containing private fields.
A test case is added in browser_dbg-pretty-print.js to
ensure it stays this way.

Differential Revision: https://phabricator.services.mozilla.com/D114816
2021-05-12 09:40:15 +00:00
Andrei Oprea
16db20bb0e Bug 1709360 - Turn off timer syncing for updating Nimbus experiments r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D114466
2021-05-12 09:20:07 +00:00
Jan de Mooij
6f3447697d Bug 1710627 - Optimize BaseShape tracing in TraceCycleCollectorChildren. r=jonco
Most of the time, all shapes in the shape lineage will have the same BaseShape,
so we only need to trace its children once.

Differential Revision: https://phabricator.services.mozilla.com/D114851
2021-05-12 08:46:51 +00:00
Tooru Fujisawa
0d43848d7a Bug 1702948 - Part 2: Do not expose ghost functions to debugger. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D110921
2021-05-12 07:09:17 +00:00
Tooru Fujisawa
fdcabb7590 Bug 1702948 - Part 1: Delazify function in DebuggerScript#parameterNames getter. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D110801
2021-05-12 07:09:17 +00:00
Paul Bone
1aec99356d Bug 1629064 - pt 10. Add telemetry r=smaug
We'd like to know if there are any problems with starving content processes
of cleaning up memory in a timely way.  Add some telemetry to get a sense of
this.

Differential Revision: https://phabricator.services.mozilla.com/D113275
2021-05-12 06:46:11 +00:00
Paul Bone
831e9abe44 Bug 1629064 - pt 9. Use the current idle slice to start the GC if we can r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110378
2021-05-12 06:46:11 +00:00
Paul Bone
e301ee240c Bug 1629064 - pt 8. Add a test for JS initiated GCs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109855
2021-05-12 06:46:10 +00:00
Paul Bone
b5e6d9ccd6 Bug 1629064 - pt 7. Check that aborts do not confuse GC scheduler r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109854
2021-05-12 06:46:10 +00:00
Paul Bone
b3d03fb2a6 Bug 1629064 - pt 6. Add a basic GC scheduling test r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105421
2021-05-12 06:46:10 +00:00
Paul Bone
ca8f5e7a0d Bug 1629064 - pt 5. Expose PokeGC from DOMWindowUtils r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109853
2021-05-12 06:46:09 +00:00
Paul Bone
883b7bec01 Bug 1629064 - pt 4. Add a pref for the maximum number of concurrent GCs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105957
2021-05-12 06:46:09 +00:00
Paul Bone
ca5b034b04 Bug 1629064 - pt 3. Notify the observer service of GCs for testing r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105419
2021-05-12 06:46:08 +00:00
Paul Bone
0bada500f1 Bug 1629064 - pt 2. nsJSEnvironment will ask the parent if it can GC r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100858
2021-05-12 06:46:08 +00:00
Paul Bone
689964900f Bug 1629064 - pt 1. Add IdleScheduler messages for GC r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100857
2021-05-12 06:46:08 +00:00
stransky
bf7556782e Bug 1710176 [Wayland] Don't release callback surface if wl_container->surface is null, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D114657
2021-05-12 06:45:03 +00:00
Ting-Yu Lin
e3c34d34cc Bug 1709491 Part 3 - Fix Subgrid::mMarginBorderPadding when the subgrid is a scroll frame. r=dholbert
When `aGridFrame.mFrame` is a scroll frame, the inner scrolled frame
`subgridFrame` only has padding, but no margin nor border. We should add
margin and border from the outer scroll frame to `mMarginBorderPadding`
so that the grid area of the subgrid is computed correctly.

Differential Revision: https://phabricator.services.mozilla.com/D114546
2021-05-12 06:32:41 +00:00
Ting-Yu Lin
47126fa98d Bug 1709491 Part 2 - Simplify Subgrid::mMarginBorderPadding computation. r=dholbert
SizeComputationInput's logical margin and border&padding getters accept
arbitrary writing mode, so we can operate on `cbWM` directly without
using physical coordinates.

This patch is a preparation of the next part, and it shouldn't change
the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D114545
2021-05-12 06:32:40 +00:00
Ting-Yu Lin
91b3a53395 Bug 1709491 Part 1 - Add SizeComputationInput::ComputedLogicalBorder(), and adapt callers. r=dholbert
The helper is going to be used in a later part.

I don't add the physical version ComputedPhysicalBorder() deliberately
because I don't want to promote the usage of physical coordinate.

Differential Revision: https://phabricator.services.mozilla.com/D114544
2021-05-12 06:32:40 +00:00
Jan de Mooij
fcba0b6914 Bug 1682504 part 3 - Shrink ICEntry and ICFallbackStub. r=iain
This moves the pcOffset field from ICEntry to ICFallbackStub, and removes the
ICEntry* pointer from ICFallbackStub. Both of these classes are now one word smaller.

Because ICEntry and ICFallbackStubs are now both stored as ICScript arrays, we can
go from one to the other with some pointer arithmetic. This is pretty fast and
only has to happen on slower paths.

Another option would be to merge ICEntry and ICFallbackStub, but that complicates
the Baseline Interpreter code, especially on 32-bit platforms where the combined
size is not a nice power-of-two. With this patch we can use BaseIndex there.

Differential Revision: https://phabricator.services.mozilla.com/D114723
2021-05-12 05:33:15 +00:00
Jan de Mooij
6b47f74c17 Bug 1682504 part 2 - Remove ICStubIterator and ICStubConstIterator. r=iain
These iterators are fairly complicated (the patch deletes > 130 lines of code) and
they were only used in a few places.

This simplifies the next patch a bit.

Depends on D114721

Differential Revision: https://phabricator.services.mozilla.com/D114722
2021-05-12 05:33:14 +00:00
Jan de Mooij
b88dab62ca Bug 1682504 part 1 - Remove maybeICEntryFromPCOffset. r=iain
There was just one caller left, the CacheIR health report code, and it can be
changed to iterate over the JitScript's ICEntries instead.

Differential Revision: https://phabricator.services.mozilla.com/D114721
2021-05-12 05:33:14 +00:00
Sean Feng
f575b80072 Bug 1708488 - Initialize NSS earlier in preallocated processes for fisson r=jesup,keeler
Differential Revision: https://phabricator.services.mozilla.com/D114907
2021-05-12 03:13:11 +00:00
Jan Varga
cd7cdb6548 Bug 1710646 - LSNG: UpdateUsageFile should flush the stream before closing it; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D114858
2021-05-12 03:02:23 +00:00
Iain Ireland
4a1575f61a Bug 1710089: Add ensureBallast in walkEnvironmentChain r=mgaudet
We need the x_n variables in the testcase so that there are enough hops.

OOM handling delenda est.

Differential Revision: https://phabricator.services.mozilla.com/D114883
2021-05-12 02:02:40 +00:00
Iain Ireland
6df666df46 Bug 1709216: Add copyToScratchValueRegister to fix x86 r=jandem
`useFixedValueRegister` was unused (since bug 1673553 part 94, I think), so I cannibalized it for spare parts.

Differential Revision: https://phabricator.services.mozilla.com/D114769
2021-05-12 01:54:40 +00:00
Iain Ireland
8ea2e29ac0 Bug 1709216: Transpile SameValueResult r=jandem
Depends on D114258

Differential Revision: https://phabricator.services.mozilla.com/D114259
2021-05-12 01:54:39 +00:00
Iain Ireland
6430272bab Bug 1709216: Rename SameValue MIR op r=jandem
Rename this to make room for the next patch to use that name when transpiling SameValueResult.

Depends on D114257

Differential Revision: https://phabricator.services.mozilla.com/D114258
2021-05-12 01:54:39 +00:00
Iain Ireland
69e3be7a1c Bug 1709216: Optimize polymorphic Object.is in CacheIR r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D114257
2021-05-12 01:54:38 +00:00
James Teh
5dda669781 Bug 1705542: Don't assume an OuterDoc RemoteAccessible has a child document. r=eeejay
An OuterDoc RemoteAccessible can have no child document for a short time if the embedded doc is changed.
As part of this, get rid of the mOuterDoc variable, since it is now redundant and somewhat misleading.
Instead, use IsOuterDoc(), since RemoteAccessible now has acc types.

Differential Revision: https://phabricator.services.mozilla.com/D114431
2021-05-11 23:17:08 +00:00
Sandor Molnar
8839b94d54 Backed out changeset e7187a1150ae (bug 1710671) for causing build bustages in nsHttpHandler. CLOSED TREE 2021-05-12 01:10:23 +03:00
Gerald Squelart
5cbf88670f Bug 1710145 - Deduction guide RefPtr(already_AddRefed<T>) -> RefPtr<T> - r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D114809
2021-05-11 21:55:21 +00:00
Randell Jesup
e726c98cf2 Bug 1710671: do SetAcceptLanguages during process preallocation to reduce first-use overhead (especially for process-switch) r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D114901
2021-05-11 21:52:49 +00:00
Kate Hudson
51b2badf01 Bug 1710227 - Show UI feedback on about:studies for opt-in r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D114754
2021-05-11 21:47:57 +00:00
Eitan Isaacson
f28492c2cc Bug 1706814 - Allow adding relation providers before dependend content created. r=Jamie
I entirely removed the acceptable child check because that is done later
when the aria-owns is processed.

Differential Revision: https://phabricator.services.mozilla.com/D114779
2021-05-11 21:42:23 +00:00
anshukaira
54ba07893f Bug 1706308 Fix alignment of numbers on Import Summary Page. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D114628
2021-05-11 21:06:30 +00:00
Hector Zhao
45323cda45 Bug 1710193 - Return correct dir from PathUtils.getLocalProfileDir. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D114677
2021-05-11 20:59:38 +00:00
Markus Stange
d6591ed5d6 Bug 1710507 - Make native menus respect the XUL element's directionality. r=emilio
This affects both native context menus and menubar menus.

Doing a flush here is fine, the nsMenuX constructor already flushes via SetupIcon()
(which also uses nsComputedDOMStyle, in nsMenuItemIconX::GetIconURI).

Differential Revision: https://phabricator.services.mozilla.com/D114785
2021-05-11 20:34:17 +00:00
Florian Quèze
9891045721 Bug 1710478 - only provide the fluent arguments that will be used when displaying tab rows in about:processes, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D114764
2021-05-11 20:17:28 +00:00