Commit Graph

713840 Commits

Author SHA1 Message Date
Mark Hammond
1bb6fb83cf Bug 1644598 - record/extend telemetry about the push state of FxA devices. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D79784
2020-06-18 08:29:09 +00:00
Christoph Kerschbaumer
c5a159437b Bug 1586686: Enable test_triggeringprincipal_iframe_iframe_window_open.html for fission. r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D79995
2020-06-18 08:22:28 +00:00
Gerald Squelart
61581471a7 Bug 1529610 - LRU cache of Windows filenames in WinIOAutoObservation - r=canaltinova,florian
Caching filenames in 32-entry LRU array covers >95% of calls, and makes the average `Filename()` call 5 to 10 times cheaper.

browser_start_content_mainthreadio.js needed to be updated to handle operations that now have a filename thanks to the cache.

Differential Revision: https://phabricator.services.mozilla.com/D79767
2020-06-18 08:26:51 +00:00
Simon Giesecke
c852bfeee1 Bug 1644163 - Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Replace. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78695
2020-06-18 08:03:02 +00:00
Simon Giesecke
b556d0f13b Bug 1644163 - Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Assign. r=froydnj
This also extracts new private member functions AssignOwned and AssignNonDependent.

Furthermore, it fixes an inconsistency for the dependent case: Formerly,
this caused the substring tuple to be materialized into a linear string
infallibly, although the function was a fallible one. It only assigned the
resulting string fallibly, but this would never have failed, since the
allocation already happened before.

Differential Revision: https://phabricator.services.mozilla.com/D78694
2020-06-18 08:03:09 +00:00
Simon Giesecke
cdcb021cc4 Bug 1644163 - Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Append. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78693
2020-06-18 08:02:52 +00:00
Masayuki Nakano
abe7626ff4 Bug 1646296 - part 2: Split WSRunScanner::GetWSNodes() r=m_kato
Despite the name, it stores range of white-space sequence and/or start/end
reason.  Initializing start and end are completely independent.  Therefore,
we can move them into independent methods.

Depends on D79964

Differential Revision: https://phabricator.services.mozilla.com/D79965
2020-06-18 07:20:54 +00:00
Nicolas Chevobbe
e7f3831299 Bug 1641554 - Fix scroll to bottom issue when expanding object in console. r=bomsy.
The issue was that we were having a ResizeObserver only on the console output
node. When the output only has a few node, its height is impacted when an
element is expanded.
We fix this by observing the output parent node, which contains both the input
and the output, which prevents the issue.
In editor mode though, we still need to observe only the output element, as
the editor is on the right side.
So when the console changes from editor mode to inline, or the other way around,
we change the observed element.

A test case is added to make sure the issue is fixed. Sadly, this also means
we have to remove a test case (typing a multiline expression in input mode
won't keep the output scroll to the bottom), but it's a tradeoff I'm willing
to make as the issue isn't as annoying as the one we're fixing here.

Differential Revision: https://phabricator.services.mozilla.com/D79961
2020-06-18 07:49:47 +00:00
Jon Coppeard
e3d69a5d6b Bug 1640844 - Improve nursery size calculation to reduce size changes r=sfink
When running benchmarks the nursery size changes frequently, often at every collection.

This patch uses a moving average of the calculated growth factor.  This takes into account information from previous collections as well when calculating the nursery size and producees much more stable results.

Differential Revision: https://phabricator.services.mozilla.com/D80002
2020-06-17 17:47:59 +00:00
Butkovits Atila
5e6c771725 Backed out changeset 31524d1785a2 (bug 1639095) for mochitest failures on browser_documentChannel.js. CLOSED TREE 2020-06-18 10:23:28 +03:00
Henri Sivonen
a9061bdcce Bug 1646484 - Remove nsIDocShell::forcedCharset. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80072
2020-06-18 01:18:11 +00:00
Masayuki Nakano
a852a50071 Bug 1646296 - part 1: Make WSRunScanner::FindNearestRun() return const WSFragment* instead of WSFragment* r=m_kato
The result should never be modified so that it should return `const`-pointer.

Differential Revision: https://phabricator.services.mozilla.com/D79964
2020-06-18 06:02:47 +00:00
Glenn Watson
a0179d273f Bug 1646619 - Update reftest annotations for android device. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D80145
2020-06-18 06:21:50 +00:00
Dmitry Bezhetskov
92c4648963 Bug 1639153 - Refactor wasm::Frame to reduce number of gnarly casts. r=lth,wingo
Differential Revision: https://phabricator.services.mozilla.com/D79072
2020-06-18 05:33:30 +00:00
Perry Jiang
447856b829 Bug 1602393 - add debugging info to ServiceWorkerRegistrar shutdown blocking r=asuth
As far as I can tell, ServiceWorkerRegistrar shutdown hang could only occur if
writing data to disk stalls or the shutdown message from the main thread to
background thread doesn't complete. (Although I still cannot piece together the
exact possible sequence of events that would lead to these hangs.)

Differential Revision: https://phabricator.services.mozilla.com/D78222
2020-06-08 20:56:09 +00:00
Butkovits Atila
40766bf579 Backed out 2 changesets (bug 1643258) for causing Bug 1646625.
Backed out changeset 4c359d743fb2 (bug 1643258)
Backed out changeset 439eee50f354 (bug 1643258)
2020-06-18 08:56:12 +03:00
Paul Bone
67165e64ab Bug 1639095 - Re-remove allowLinkedWebInFileUriProcess r=kmag
Depends on D77764

Differential Revision: https://phabricator.services.mozilla.com/D78457
2020-06-05 17:08:04 +00:00
Jim Porter
c9a16c40ed Bug 1631806 - [part 1] Update perftests to use new API and fix --proxy option; r=tarek
This patch fixes the tests in testing/performance/ that hadn't been updated to
the new API, as well as fixing a couple issues with the `--proxy` option:

 * `policy.json` wasn't being logged correctly, since mozlog was treating the
   data as a format string

 * Proxy prefs weren't being set correctly for the profile

Differential Revision: https://phabricator.services.mozilla.com/D79937
2020-06-18 03:59:54 +00:00
Matthew Gregan
561f0ff278 Bug 1646576 - Vendor Rust. r=chunmin
Depends on D80123

Differential Revision: https://phabricator.services.mozilla.com/D80125
2020-06-18 03:59:11 +00:00
Matthew Gregan
3d04faf512 Bug 1646576 - Update audioipc to c04a660a. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D80123
2020-06-18 03:56:54 +00:00
Jared Wein
c356c753ea Bug 1644625 - Populate Features.toml with an intial set of Experimental Features. r=Gijs,heycam,kvark,jbauman
Differential Revision: https://phabricator.services.mozilla.com/D79026
2020-06-18 01:19:52 +00:00
longsonr
30697d85fe Bug 1645753 - Add color as a mapped attribute for gradient stops r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D79665
2020-06-18 00:34:23 +00:00
Hiroyuki Ikezoe
77bf0111ce Bug 1467765 - Sample off-main-thread animations on the render backend thread in case of WebRender. r=kats
Now CompositorAnimationStorage::GetAnimatedValue() and SetAnimatedValue()s
are called on the sampler thread in case of WebRender, are called on the
compositor thread in case of non WebRender, so we drop assertions of
IsInCompositorThread check there. A mLock.AssertCurrentThreadOwns call in
each function should make sure the function gets called on the
sampler/compositor thread with acquiring the lock.

One caveat in this change is that in case we try to get an animation value via
nsIDOMWindowUtils.getOMTAStyle(), we do sample animations on the _compositor_
thread and we never call UpdateDynamicProperties, which means if it gets called
in testing refresh driver mode, visual results will differ from what the value
returned by the getOMTAStyle should look like. But it should be fine because we
disallow using any chrome priviledge APIs in reftests and also we will never use
the testing refresh driver mode in the reftest harness. Also in mochitests the
visual results' differences might make people confusing if the person can notice
it, but in principal getOMTAStyle() is designed to get computed animating values
so that it doesn't matter what the visual result is.

Differential Revision: https://phabricator.services.mozilla.com/D79982
2020-06-17 23:47:20 +00:00
Hiroyuki Ikezoe
5ac8e30f29 Bug 1467765 - Factor out resetting previous time stamp stuff. r=kats
|mPreviousFrameTimeStamp| will be moved into the sampler for OTMA in the next
commit though.

Differential Revision: https://phabricator.services.mozilla.com/D79981
2020-06-17 23:32:22 +00:00
Hiroyuki Ikezoe
b974ebc500 Bug 1467765 - Factor out clear animation resources stuff. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D79980
2020-06-17 23:32:10 +00:00
Mihai Alexandru Michis
dd5e04a92b Backed out changeset cc9bea1151d3 (bug 1645219) for causing failures in netinet/sctp_usrreq.c
CLOSED TREE
2020-06-18 05:07:54 +03:00
Eric Rahm
ba9b93f039 Bug 1646543 - Replace blacklist with more appropriate names. r=xpcom-reviewers,nika
This removes variants of "blacklist" from the xpcom directory. The preference name "network.file.path_blacklist" is left in place and will need a more thorough plan for removal. Instances of `MOZ_ASAN_BLACKLIST` remain as well and should be replaced in a larger modifcation of the `#define` in the mfbt component.

Differential Revision: https://phabricator.services.mozilla.com/D80098
2020-06-17 23:55:46 +00:00
Glenn Watson
0f92ede9c2 Bug 1646279 - Remove primitive opacity collapse support. r=Bert,kvark
The code to support collapsing a picture with a single primitive
and an opacity filter into a primitive + opacity binding is
no longer an important optimization, due to picture caching.

Removing this old optimization also reduces complexity during
scene building, and slightly simplifies batching and picture
cache dependency tracking.

Differential Revision: https://phabricator.services.mozilla.com/D79975
2020-06-18 00:01:44 +00:00
Brindusan Cristian
8246b23171 Backed out changeset a59280f412c0 (bug 1633737) for crashtest assertion failures at nsGridContainerFrame.cpp. CLOSED TREE 2020-06-18 04:16:09 +03:00
Emilio Cobos Álvarez
011d524740 Bug 1646336 - Don't unnecessarily lose precision in nsComputedDOMStyle. r=hiro
We're converting to nscoord in some places unnecessarily, reducing the
precision of the computed value we return.

This makes some tests unnecessarily fail if we change the base of
nscoord.

Differential Revision: https://phabricator.services.mozilla.com/D79996
2020-06-18 00:42:47 +00:00
Jeff Gilbert
71aeba305c Bug 1635293 - Cherry-pick ANGLE fix: Update tex cache even if new type is InvalidEnum. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D79755
2020-06-15 22:07:44 +00:00
Mike Conley
50337644a0 Bug 1643874. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D79472
2020-06-12 14:30:29 +00:00
Lars T Hansen
71371b98b6 Bug 1644550 - Clean up rematerialization of constants during multi-return shuffle. r=bbouvier,wingo
Differential Revision: https://phabricator.services.mozilla.com/D79102
2020-06-17 13:24:18 +00:00
Andrew Osmond
b33277b10b Bug 1450353. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D79303
2020-06-11 23:13:09 +00:00
Dan Minor
737ca9006d Bug 1639734 - Restore check that sink is registered in AddOrUpdateSink; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D78723
2020-06-08 19:14:06 +00:00
Byron Campen [:bwc]
f0925b9486 Bug 1645219: Repurpose DataChannelShutdown into DataChannelRegistry (which gives us some weak-pointer-like semantics) r=ng
Differential Revision: https://phabricator.services.mozilla.com/D79375
2020-06-16 00:17:10 +00:00
Valentin Gosu
f1f9d94272 Bug 1641303 - Use query and ref lengths if available r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77418
2020-06-17 08:29:21 +00:00
James Teh
02ae717477 Bug 1630208 part 4: Re-enable accessible/tests/browser/hittest/browser_test_zoom_text.js. r=yzen
The intermittent leak has been fixed, so we can now re-enable this.

Differential Revision: https://phabricator.services.mozilla.com/D79782
2020-06-17 18:42:48 +00:00
James Teh
9d61ef8210 Bug 1630208 part 3: Clean up the remote XPC document accessible cache on shutdown. r=yzen
The cache should already be empty by this point unless there's a bug, but we should still clean up regardless.
Also, the hashtable itself was previously never cleaned up even if it was empty.

Differential Revision: https://phabricator.services.mozilla.com/D79781
2020-06-17 18:42:30 +00:00
James Teh
6a5821c667 Bug 1630208 part 2: Drop events for DocAccessibleParents which are already shut down. r=yzen
We can receive IPC events after a DocAccessibleParent is shut down if the BrowserParent is in the process of being destroyed (probably the tab closed) but there are still events in the IPC queue.
Most Recv*Event methods in BrowserParent check mShutdown, but a few don't.
For the events that don't, if the event is for a document, we'll successfully fire the platform event, and then successfully get and cache an xpcAccessibleDocument.
However, that xpcAccessibleDocument will never be removed from the cache because it's already shut down, so NotifyOfRemoteDocShutdown (which would normally remove it from the XPC cache) won't get called.
This results in a leaked object.
Thus, it's important that all Recv*Event methods drop the event if mShutdown is true.
This patch adds that check to the methods which didn't have it already.

Differential Revision: https://phabricator.services.mozilla.com/D79780
2020-06-17 18:40:42 +00:00
James Teh
dffc53d36b Bug 1630208 part 1: Assert that we don't add a shut down DocAccessibleParent to the remote XPC cache in DocManager::GetXPCDocument. r=yzen
We really want to know about this because the document will never be removed from the cache, since NotifyOfRemoteDocShutdown (which would normally remove it from the XPC cache) won't get called.

Differential Revision: https://phabricator.services.mozilla.com/D79779
2020-06-17 18:37:58 +00:00
Brindusan Cristian
f93d2c823e Backed out changeset 2011f0091ccf (bug 1646336) for dt failures at browser_accessibility_print_to_json.js. CLOSED TREE 2020-06-18 03:17:34 +03:00
Emilio Cobos Álvarez
28c68306b3 Bug 1646546 - Port the style crate to rust 2018. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D80101
2020-06-17 23:40:30 +00:00
Emilio Cobos Álvarez
7b1b460d78 Bug 1646546 - Fix some manual occurrences of try(). r=boris
Depends on D80099

Differential Revision: https://phabricator.services.mozilla.com/D80100
2020-06-17 22:27:45 +00:00
Emilio Cobos Álvarez
b774002cf9 Bug 1646546 - Switch all callsites of try() to try_parse() in the style crate. r=boris
Fully automated via:

  $ rg -l '\.try\(' | xargs sed -i 's/\.try(/.try_parse(/g'
  $ cd servo/components/style && cargo +nightly fmt

Differential Revision: https://phabricator.services.mozilla.com/D80099
2020-06-17 22:27:37 +00:00
Sebastian Hengst
3e467664b3 Bug 1645562 - correct parenthesis in cross-origin-opener-policy/access-reporting tests. DONTBUILD 2020-06-18 01:25:08 +02:00
Emily McDonough
4b9ef7886e Bug 1633737 - Fix asserts and array accesses for oversized grid tracks with repeat-auto r=emilio
Handle grid track lists that are too large in CalculateRepeatFillCount. Check
for repeat tracks that begin or end past the maximum track limit in
InitRepeatTracks, and handle the possible size mismatch in nsComputedDOMStyle.

This may result in there being fewer than the maximum number of tracks again
after removing empty tracks in a repeat(auto-fit), but only limiting the track
count after removing empty tracks would leave the number of repeat tracks
unbounded (or require a separate limit on just the repeat track count).

Differential Revision: https://phabricator.services.mozilla.com/D76191
2020-06-17 23:25:14 +00:00
Dale Harvey
06c7cbc976 Bug 1631898 - Handle Normandy installed system search extensions. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D74489
2020-06-17 23:07:39 +00:00
Mitchell Hentges
bfb8185ee4 Bug 1645445: Perform case-insensitive path-patching in Sentry r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D80113
2020-06-17 23:03:33 +00:00
Logan Smyth
c155b4c86d Bug 1646017 - Promise.any errors should not assume async stack data is available. r=jorendorff,anba
This test assumed that AggregateError stack traces would include frames from
across the asynchronous boundary, which is not guaranteed to be the case. This
test originally passed because Promise.any was only enabled on Nightly and
the Nightly release had the "javascript.options.asyncstack" pref enabled by
default, which guaranteed that async frames were guaranteed to be captured.

Now that bug 1601179 has landed, this is no longer the case because the realm
is required to be a debuggee before async frames will be included in the trace.

Differential Revision: https://phabricator.services.mozilla.com/D79936
2020-06-17 21:27:38 +00:00