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

583339 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 4afe7c70cc Bug 1174003 part 3: [css-flexbox] Make GetMarginSizeInMainAxis() take a LogicalMargin, instead of nsMargin. r=mats
This patch doesn't change behavior. It just makes us use logical axes/types instead of physical ones for this particular API and its caller.

MozReview-Commit-ID: Jt6SECGI9EU

--HG--
extra : rebase_source : 60d7e52ed9a53f0c0d3ebf3103cbdab476606ddb
2018-02-27 15:40:10 -08:00
Daniel Holbert 3dfe09e9e1 Bug 1174003 part 2: [css-flexbox] Reformat code around GetMinimumWidgetSize call slightly. r=mats
This patch doesn't change behavior. It's purely to allow the next patch to be more surgical. Specifically, this patch:
 - splits a subtract-and-clamp operation into two separate operations.
 - splits one a comment into two.
...so that the next patch can swap out these variables for new ones, without
pushing these lines over 80 characters.

MozReview-Commit-ID: 4N5sI755CqF

--HG--
extra : rebase_source : 96af106d739256a6871e75d0d34e9691cfbfb0c2
2018-02-27 11:26:43 -08:00
Daniel Holbert 375dc5dc6e Bug 1174003 part 1: [css-flexbox] Remove unused method nsFlexContainerFrame::IsHorizontal. r=mats
MozReview-Commit-ID: JzvGzJvMhLS

--HG--
extra : rebase_source : 08916cb0fa201f036d69de41f7a3f760a6c081d9
2018-02-27 11:21:22 -08:00
Chris H-C 061d5897a0 bug 1435753 - Resume collection of extended data from Release Candidate builds on beta, too r=froydnj,gfritzsche
Before Firefox 58 we collected extended collection from users on nightly,
aurora, and beta. Then we had to change things (see bug 1406391).

In doing so, we accidentally stopped receiving data from "release candidate"
beta builds. This patch resumes that collection by detecting an RC build as
having a MOZ_UPDATE_CHANNEL of "release", but an app.update.channel of "beta"

MozReview-Commit-ID: 3EzzDtQj8Kw

--HG--
extra : rebase_source : 371d2b804cad4fff3fc6a954621e651940867435
2018-02-27 14:12:43 -05:00
Markus Stange 6e297c8de8 Bug 1429904 - Remove ProfileBuffer::Reset(). r=njn
MozReview-Commit-ID: AzIyYByoesS

--HG--
extra : rebase_source : f7213a1c94a6d2e726229ac7863c9cf46c52d87b
2018-02-15 21:49:05 -05:00
Markus Stange ef1bc5c5f1 Bug 1429904 - Remove unused arguments and return values. r=njn
MozReview-Commit-ID: 9P0TKavkwgA

--HG--
extra : rebase_source : 857bcdeaaab79d3d12165da3ad72a03e114974f2
2018-02-17 19:21:05 -05:00
Markus Stange 21b7613f53 Bug 1429904 - When a JSContext for a thread is about to go away, collect enough information about any JIT entries in the buffer so that the entire buffer can be streamed to JSON. r=njn
This changeset changes behavior.
If the profile is streamed before any JSContext has gone away, we now iterate
over the entire buffer twice (per thread): First, to collect information about
JIT frames, and then again when we build the JSON for the samples. The first
traversal stores small pieces of JSON for JIT fromes in individual strings, and
the second iteration splices those strings into the thread JSON's frame table.

When the JSContext for a thread goes away, we no longer build JSON for samples,
and we don't reset the profiler buffer. We now only build the JSON for JIT
frames. Once the complete profile is requested and we build samples for it, we
iterate over the entire buffer, and look up the cached JIT frame information for
JitReturnAddr entries from the correct range. Different parts of the buffer may
correspond to the life time of different JSContexts: For each JSContext we will
have one range in the JITFrameInfo, and we can look up the correct range based
on the buffer position of the JitReturnAddr entry that we're processing.

This new way of doing things has multiple advantages:
 - We no longer reset the buffer, so we no longer lose information about other
   threads.
 - All threads from a given process now always have sample data for the same
   time range. Before this change, the "partial profile" from a thread that
   lost its JSContext could extend further into the past than the other threads'
   profiles.
 - Requesting profiles multiple times now has more consistent results. Before
   this change, the first requested profile would include the partial profile,
   but then the partial profile was discarded. And the second requested profile
   would not contain any data for the time before the JSContext went away.
 - We now do less work when a thread's JSContext goes away. This should
   decrease the interruption time.

MozReview-Commit-ID: 3KhnPtBijna

--HG--
extra : rebase_source : ff3d4ad4788da8f2d391b5dc465f635c1970fc0d
extra : intermediate-source : d63b04327077d1ef55f509b365cd2693905b0733
extra : source : f2d8c993aa2c16bc491c55179d545f5a2c727391
2018-02-28 00:17:16 -05:00
Markus Stange d1d0d2a055 Bug 1429904 - Add JITFrameInfo. r=njn
MozReview-Commit-ID: DashxIKyzYZ

--HG--
extra : rebase_source : c129c05e8e001091131812bf89676c5eaa1d7c52
2018-02-28 00:13:51 -05:00
Markus Stange c26b9c509d Bug 1429904 - Put mUniqueStrings into a UniquePtr. r=njn
In an upcoming patch we'll want to initialize mUniqueStrings by stealing
another object's UniqueJSONStrings, but UniqueJSONStrings itself is not
move-constructible. But UniquePtr is.
Making UniqueJSONStrings itself move-constructible would be a bit tricky
because it has a SpliceableChunkedJSONWriter which is not move-constructible;
and making SpliceableChunkedJSONWriter move-constructible is hard because
there's no obvious "empty but valid" state that we could leave a moved-out-of
SpliceableChunkedJSONWriter in; for example, it expects to have a non-null
WriteFunc at all times.

MozReview-Commit-ID: Q6o61HFTiD

--HG--
extra : rebase_source : d18344cab5acc97192a69069a8c338ed112fff6c
2018-02-17 15:50:43 -05:00
Markus Stange 4dcf454f02 Bug 1429904 - Give UniqueJSONStrings a copy constructor. r=njn
MozReview-Commit-ID: tlh6qkYX7A

--HG--
extra : rebase_source : 7bc75754c25f4b0806a6f2e93007ad9f293339c0
2018-02-17 15:39:45 -05:00
Markus Stange 1e5e47be12 Bug 1429904 - Tell the ProfiledThreadData what the buffer position was when the thread received its JSContext. r=njn
This also renames FlushSamplesAndMarkers to NotifyAboutToLoseJSContext.

MozReview-Commit-ID: FWinMi85yDZ

--HG--
extra : rebase_source : f0608488005a4eafa7045ba6c445afbe4352567d
2018-02-17 15:03:30 -05:00
Markus Stange 9a4ca518c3 Bug 1429904 - Use a Variant to split the FrameKey members into two groups. r=njn
This makes it clear which combinations of fields are possible.

MozReview-Commit-ID: C3PriO7nWsJ

--HG--
extra : rebase_source : 6e414c46a3545a8dcc599f4d140aa5e61910b00c
2018-02-27 23:44:02 -05:00
Markus Stange 656f6ab52d Bug 1429904 - Add 'using namespace mozilla;' to ProfileBufferEntry.cpp and remove some mozilla:: prefixes. r=njn
I think this file was picking up such a declaration from a different file
already, through unified builds.

MozReview-Commit-ID: 9xTB2QA86U0

--HG--
extra : rebase_source : ca881f6ea8489dddba48ef0f92baa4ef10d0165e
2018-02-17 12:35:57 -05:00
Markus Stange ab729d657c Bug 1429904 - Remove a comment about std::string. r=njn
nsCString is the idiomatic string class we want to use anyway. There's no need
to think about std::string here.

MozReview-Commit-ID: 1rjZAyqp13d

--HG--
extra : rebase_source : e67e08512927e37a82fd28f035438159717c209a
2018-02-28 00:30:55 -05:00
Markus Stange 65a2f49bfc Bug 1429904 - Make FrameKey members const. r=njn
MozReview-Commit-ID: KTYmCJM9tOH

--HG--
extra : rebase_source : a79087883f4e39a94bd733b45fd63525a25dd7d9
2018-02-27 23:11:34 -05:00
Markus Stange d7b602ad6f Bug 1429904 - Add another constructor to FrameKey which initializes mLine and mCategory, and use it in one place. r=njn
MozReview-Commit-ID: 1LliQMGjfjx

--HG--
extra : rebase_source : 21ae38d0dd9f238193fa462641a7147c0e8fbf14
2018-02-27 23:10:06 -05:00
Markus Stange 36aeb88c58 Bug 1429904 - Let the compiler implement the FrameKey copy constructor for us. r=njn
MozReview-Commit-ID: 9e9rMkEAyeL

--HG--
extra : rebase_source : f803a42699b8daa8cb045db6f4048107f2d2e26e
2018-02-27 23:08:19 -05:00
Markus Stange dfbd63d53c Bug 1429904 - Remove mHash which is now unused. It was only used by FrameKey::operator<. r=njn
MozReview-Commit-ID: 5Jc6EYmoZfS

--HG--
extra : rebase_source : c9876742df020c9f97e4f68694605c72ecba8fc1
2018-02-27 23:06:31 -05:00
Markus Stange 9cd2c5d435 Bug 1429904 - Remove unused operator< from StackKey and FrameKey. r=njn
nsGenericHashKey never calls this operator, as far as I can tell.

MozReview-Commit-ID: NDybMI8DOA

--HG--
extra : rebase_source : 5a8182a5e1f2af57533ddff8848d7a772bf7eeb2
2018-02-27 22:41:35 -05:00
Ursula Sarracini 12bbfa710e Bug 1441931 - Use open_url provided by Pocket for 'saved to pocket' items in highlights r=Mardak
MozReview-Commit-ID: 5St8NablevZ

--HG--
extra : rebase_source : d58ee8389060632616818c012a4d6b61eae9c1e1
2018-02-28 14:16:46 -05:00
Cosmin Sabou 824a92ea41 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : amend_source : ae39c2ce2fb0fad1c95a399dc8f70acd4e73b89a
2018-02-28 23:51:42 +02:00
Cosmin Sabou a97105ec0d Merge inbound to mozilla-central. a=merge 2018-02-28 23:48:29 +02:00
Cosmin Sabou 4d5798c0a5 Merge autoland to mozilla-central. a=merge 2018-02-28 23:47:09 +02:00
ffxbld 08a7733d6d No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-02-28 12:02:20 -08:00
ffxbld 0799f9b06e No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-02-28 12:02:16 -08:00
Geoff Brown 9af214a4a5 Bug 1441869 - Specify DIGCF_DEVICEINTERFACE when calling SetupDiGetClassDevsW; r=milan 2018-02-28 11:49:09 -07:00
Geoff Brown 828cdfd870 Bug 1431125 - Increase max-run-time of test-verify and test-verify-wpt; r=jmaher
These tasks are expected to run quickly (5 - 30 minutes) normally, but there can be a wide range of run times.
2018-02-28 11:49:07 -07:00
Ben Hearsum 8b71e3533a bug 1432219: fix linting errors. r=me 2018-02-28 13:43:37 -05:00
Andrew Osmond fefdf99992 Bug 523950 - Part 10. Add mochitest for when we discard frames from an animated image. r=tnikkel
With the previous parts, for large animated images, we will now discard
previous frames after we reach the threshold. This mochitest configures
a very low threshold, such that it will trigger on a small animated
image. It then verifies that we are already to loop the animation a
couple of times.
2018-02-28 13:34:53 -05:00
Andrew Osmond 39b30d06d4 Bug 523950 - Part 9. Integrate AnimationSurfaceProvider with AnimationFrameBuffer. r=tnikkel 2018-02-28 13:34:53 -05:00
Andrew Osmond 01f0dbdb83 Bug 523950 - Part 8. Add gtests for AnimationFrameBuffer. r=tnikkel 2018-02-28 13:34:52 -05:00
Andrew Osmond 984f23cd9c Bug 523950 - Part 7. Add AnimatedFrameBuffer to manage storage and decoding of frames in an animation. r=tnikkel 2018-02-28 13:34:52 -05:00
Andrew Osmond 97d3a61a18 Bug 523950 - Part 6. Add DecoderFactory::CloneAnimationDecoder to clone an existing image decoder. r=tnikkel
Used later in the patch series, this API allows one to get an identical
decoder to the one given, but decodes from the beginning.
2018-02-28 13:34:52 -05:00
Andrew Osmond 54898d5d6c Bug 523950 - Part 5. Pass the currently displayed frame of an animation to its decoder. r=tnikkel
When we need to recreate an animated image decoder because it was
discarded, the animation may have progressed beyond the first frame.
Given that later in the patch series we need FrameAnimator to be driving
the decoding more actively, it simplifies its role by making it assume
the initial state of the decoder matches its initial state. Passing in
the currently displayed frame allows the decoder to advance its frame
buffer (and potentially discard unnecessary frames), such that when the
animation actually wants to advance as it normally would, the decoder
state matches what it would have been if it had never been discarded.
2018-02-28 13:34:52 -05:00
Andrew Osmond 646219b1e7 Bug 523950 - Part 4. Expose new surface provider APIs that will help drive animation decoding. r=tnikkel
Note that AnimationSurfaceProvider will override these methods to give a
proper implementation in a later patch in this series. For now, they are
mostly stubbed, using the default implementation from ISurfaceProvider.

They focus on the main operations we perform on an animation:

1) Progressing through the animation, e.g. advancing a frame. If we
don't decode the whole animation up front, we need to know at the
decoder level where we are in the display of the animation.

2) Restarting an animation from the beginning. This is a specialized
case of the above, where we want to skip explicitly advancing through
the remaining frames and instead restart at the beginning. The decoder
may have already discarded the earliest frames and must start redecoding
them.

3) Knowing whether or not the decoder is still active, e.g. can we be
missing frames.
2018-02-28 13:34:52 -05:00
Andrew Osmond 2088409e88 Bug 523950 - Part 3. Add preferences to control animated image decoding behaviour. r=tnikkel
image.animated.decode-on-demand.threshold-kb is the maximum size in kB
that the aggregate frames of an animation can use before it starts to
discard already displayed frames, and redecode them as necessary. The
lower it is set to, the less overall memory we will consume at the
expense of execution time for as long as the tab with the animation(s)
above the threshold are kept open.

image.animated.decode-on-demand.batch-size is the minimum number of
frames we want to have buffered ahead of an animation's currently
displayed frame. The decoding will request this number of frames at a
time to maximize use of memory caching. Note that this is related to the
above preference as well; increasing the batch size will in effect raise
what the minimum threshold. This simplifies the logic in patches later
in the series.
2018-02-28 13:34:52 -05:00
Andrew Osmond 28978c4f66 Bug 523950 - Part 2. Expose image decoder type and SourceBuffer to owners. r=tnikkel
Later in the patch series, we use the new APIs to facilitate cloning of
an existing decoder. This is useful when you want to redecode the same
image with the exact same configuration but from the very beginning.
2018-02-28 13:34:52 -05:00
Andrew Osmond 1a18b79e50 Bug 523950 - Part 1. Do some unified build accounting, missing headers and namespaces. r=tnikkel 2018-02-28 13:34:51 -05:00
Ben Kelly 65554b944c Bug 1440565 P2 Add a mochitest that verifies we throw TypeError for fetch() with a view-source URL. r=asuth 2018-02-28 10:34:13 -08:00
Ben Kelly 251a6dfaf4 Bug 1440565 P1 Make sure to clear any existing cache related load flags when setting the default fetch() RequestCache value. r=asuth 2018-02-28 10:34:13 -08:00
Ben Kelly 8c55bc6898 Bug 1440705 P3 Assert that a client and its controlling service worker have a matching principal. r=asuth 2018-02-28 10:32:50 -08:00
Ben Kelly 0dd1174a39 Bug 1440705 P2 Separate ClientMatchPrincipalInfo() into a separate method and header. r=asuth 2018-02-28 10:32:50 -08:00
Ben Kelly 93c381f6bd Bug 1440705 P1 Make SWM clear the reserved client when performing an STS upgrade with child-process interception. r=asuth 2018-02-28 10:32:50 -08:00
Ben Kelly 897d177592 Bug 1441133 P2 Verify inherited frames do not trigger service worker storage assertions. r=asuth 2018-02-28 10:31:29 -08:00
Ben Kelly c6a37e4357 Bug 1441133 P1 Don't assert storage permission on windows that inherit the service worker. r=asuth 2018-02-28 10:31:29 -08:00
Joel Maher 5aedcd4be2 backout Bug 1435844 changes to schedule motionmark and h1 on windows. r=me a=backout CLOSED TREE
--HG--
extra : source : 1bc5d8dfe84ad29bbe0b6248adacec7ac679f401
2018-02-28 11:23:07 -05:00
Joel Maher 7c1bb20a1b backout Bug 1435844 for win10 hardware failures. r=me a=backout CLOSED TREE
--HG--
extra : source : 673b8d253e4db1469c8f752f5358ced4777cd340
2018-02-28 11:17:21 -05:00
Joel Maher e3b9fe0f47 backout Bug 1431161 for win10 hardware failures. r=me a=backout CLOSED TREE
--HG--
extra : source : 5bc49a32f7060ff869116f1ab831394fca14b12c
2018-02-28 11:14:57 -05:00
Florian Quèze 0381f3a8ed Bug 1433175 - Fix xpcshell tests, 'Cc' isn't defined in that scope, so use _Services.tm directly, r=Mossop, a=Aryx on CLOSED TREE 2018-02-28 18:51:35 +01:00
Florian Quèze 8922be9c58 Bug 1433175 - enable the use-cc-etc eslint rule, r=Standard8. 2018-02-28 18:51:35 +01:00