Commit Graph

522041 Commits

Author SHA1 Message Date
Jeff Walden
fceda02d9b Bug 1287006 - Use |alignas(T) unsigned char mStorage[sizeof(T)]| instead of AlignedStorage2 inside Maybe. r=froydnj
--HG--
extra : rebase_source : 59e8039481b332decacd1acc7cf1cb73ec8b78cf
2017-01-30 15:56:04 -08:00
Jeff Walden
c7aace8b67 Bug 1287006 - Make JsepTrackPair::mBundleLevel size_t instead of Maybe<size_t>, with SIZE_MAX encoding the previous not-size_t state. (mBundleLevel counts things in memory, so SIZE_MAX is excluded from the typical semantics.) r=bwc
--HG--
extra : rebase_source : 580a13b93cbec088c8937172948b30b4881d31ec
2017-02-21 23:57:56 -08:00
Jim Chen
78cdb2292f Bug 1257366 - Try setting designMode again; r=gbrown
If the first set designMode call fails, schedule another call for a
later time.
2017-02-22 23:10:18 -05:00
Jim Chen
371103fac0 Bug 1340960 - Correctly invoke print callbacks; r=sebastian
generatePDF returns a Promise. We shouldn't feed the Promise to the
callback, but rather invoke the callbacks when the Promise is
resolved/rejected.
2017-02-22 23:10:17 -05:00
Jim Chen
f85ea35de2 Bug 1337459 - Update to selected tab when ToolbarDisplayLayout is ready; r=sebastian
We don't update ToolbarDisplayLayout when it's not ready (i.e. when it's
not attached to a window yet), but when it does become ready, we should
update it to the selected tab, if any.
2017-02-22 23:10:16 -05:00
Nicholas Nethercote
33da826017 Bug 1340928 (part 15) - Inline and remove ToJSObject(). r=mstange.
It has a single call site.

--HG--
extra : rebase_source : ac17c229cffc6a25014c6060f99892ecbdda74cf
2017-02-22 13:42:14 +11:00
Nicholas Nethercote
354d0d388f Bug 1340928 (part 14) - Factor out code repeated in both ProfileGatherer::Start() methods. r=mstange.
--HG--
extra : rebase_source : 47deafe39aa208654398cb0795831bd273aa3265
2017-02-22 11:46:28 +11:00
Nicholas Nethercote
aedaf0a73c Bug 1340928 (part 13) - Merge two ProfileGatherer::Start() variants. r=mstange.
The |nsIFile*| one is only called by the |const nsACString&| one, so this patch
combines them.

--HG--
extra : rebase_source : d8338e88cef4799d95e590c056ab343d5a1c546a
2017-02-22 11:35:43 +11:00
Nicholas Nethercote
348841f745 Bug 1340928 (part 12) - Remove profiler_get_gatherer(). r=mstange.
profiler_get_gatherer() exposes ProfileGatherer to the outside world in a way
that makes future changes difficult.

This patch:

- Removes ProfileGatherer.h from the list of headers exported from the
  profiler.

- Removes nsIProfiler.profileGatherer and nsProfiler::GetProfileGatherer().

- Replaces profiler_get_gatherer() with three new functions that provide
  minimal but sufficient access to ProfileGatherer:
  profiler_will_gather_OOP_profile(), profiler_gathered_OOP_profile(), and
  profiler_OOP_exit_profile().

  These functions provide access to the ProfileGatherer in a similar fashion to
  the pre-existing functions profiler_get_profile_jsobject_async() and
  profiler_save_profile_to_file_async()

This significantly reduces the size of the profiler's API surface.

--HG--
rename : tools/profiler/public/ProfileGatherer.h => tools/profiler/gecko/ProfileGatherer.h
extra : rebase_source : d8e06a1133d4098c3a214858d3ff2c4bdcd9f1f2
2017-02-22 10:19:53 +11:00
Nicholas Nethercote
2eced700aa Bug 1340928 (part 11) - Inline and remove ContentParent::InitializeMembers. r=baku.
It looks like it used to be called by multiple constructors, but that's no
longer the case.

--HG--
extra : rebase_source : 2aba63c0786ddd0ce355ed80569cad62810393ad
2017-02-22 10:19:49 +11:00
Nicholas Nethercote
352554c8f6 Bug 1340928 (part 10) - Remove nested calls to profiler_{init,shutdown}(). r=mstange.
The profiler can currently handle nested calls to profiler_{init,shutdown}() --
only the first call to profiler_init() and the last call to profiler_shutdown()
do anything. And sure enough, we have the following.

- Outer init/shutdown pairs in XRE_main()/XRE_InitChildProcess() (via
  GeckoProfilerInitRAII).

- Inner init/shutdown pairs in NS_InitXPCOM2()/NS_InitMinimalXPCOM() (both shut
  down in ShutdownXPCOM()).

This is a bit silly, so the patch removes the inner pairs, and adds a
now-needed pair in XRE_XPCShellMain. This will allow gInitCount -- which tracks
the nesting depth -- to be removed in a future patch.

--HG--
extra : rebase_source : 7e8dc6ce81ce10269d2db6a7bf32852c396dba0e
2017-02-15 17:08:38 +11:00
Nicholas Nethercote
883fc3f925 Bug 1340928 (part 9) - Remove MOZ_PROFILER_STACK_SCAN env var. r=mstange.
It's used to set gUnwindStackScan, which is never used.

--HG--
extra : rebase_source : 3993df4cba27eb7eec39a40125df9a3190fe25a6
2017-02-21 13:53:19 +11:00
Nicholas Nethercote
d60b476a02 Bug 1340928 (part 8) - Pass gStartTime to DuplicateLastSample(). r=mstange.
This removes the one use of gStartTime outside of platform*.cpp, which lets us
restrict its visibility to just that compilation unit.

--HG--
extra : rebase_source : bf7207572cba5c1a31b544ea73e783ecd559978a
2017-02-21 10:18:51 +11:00
Nicholas Nethercote
45a8d3ea6a Bug 1340928 (part 7) - Factor out gIsActive handling in platform-*.cpp. r=mstange.
PlatformStart() and PlatformStop() are currently responsible for setting and
clearing gIsActive, but it's better if we do it in profiler_{start,stop}().

The patch also does the following.

- Adds some missing emacs/vim modelines.

- Makes Platform{Start,Stop}() crash if they have failures. I'm not at all
  confident that ignoring the errors as is currently done will result in
  sensible behaviour, so brittleness is better.

--HG--
extra : rebase_source : b9ab8437f5b92f6a8993ba7677ecb74a321ce219
2017-02-16 15:08:07 +11:00
John Lin
d3b1eacd8b Bug 1340582 - fix exception logging. r=jchen
MozReview-Commit-ID: 2PnTCeFAW4e
2017-02-23 11:16:28 +08:00
David Major
31d1777634 Bug 1341490: Remove bitrotting disabled layer gtest. r=nical
MozReview-Commit-ID: 9vZ4lZWgxi0

--HG--
extra : rebase_source : 47ce860c39d61939c55a74952cc94b84a27398df
2017-02-23 15:29:57 +13:00
David Major
529e7a8a12 Bug 1341490: Remove bitrotting disabled fonts gtests. r=jfkthame
MozReview-Commit-ID: 4TQv5nSclyj

--HG--
extra : rebase_source : fe2cf5a131d860f3d6dfb1d865446c8480e56d42
2017-02-23 15:29:53 +13:00
David Major
17f71c7f9f Bug 1341490: Unified-build bustage fixes.
MozReview-Commit-ID: CTBa12qhMai

--HG--
extra : rebase_source : e48409d3dcd38b95e567c823050a5633e89ed643
2017-02-23 15:29:46 +13:00
Andrea Marchesini
43fa40bb63 Bug 1341536 - Get rid of duplicate functions in fileutils.js, r=qdot 2017-02-23 03:24:54 +01:00
Andrea Marchesini
68feb209f4 Bug 1341327 - Add assertions to be sure that FileBlobImpls are created on the parent process only, r=smaug 2017-02-23 03:23:51 +01:00
David Parks
4d5f8afdc0 Bug 1328996 - Add tests that run the intercepted DLL methods, in order to test their harness. r=aklotz
Adding this has exposed harness failures in CreateFileA. Additionally, we haven't added a test for ImmSetCandidateWindow as it is not easily tested.

--HG--
extra : rebase_source : db84ecbc09a19e7644c551957ba7787e36358eb1
2017-02-16 23:50:47 -08:00
David Parks
10b12f1194 Bug 1328996 - Enable tiptsf.dll's ProcessCaretEvents DLL Interceptor test on 64-bit Windows. r=aklotz
--HG--
extra : rebase_source : 73ec0cc52ba524cb24a915923298472adddbecef
2017-02-03 12:00:56 -08:00
David Parks
d884f8d253 Bug 1328996 - Add ability for 64-bit MOV instructions (those with REX.W bit set) to be patched in the DLL interceptor harness. r=aklotz
Also adds some ASSERTs to catch failures in the DLL interceptor.

--HG--
extra : rebase_source : 1de8f5f73ca8b802fd5338fa87f33cc742a63e47
2017-02-03 11:58:20 -08:00
Timothy Nikkel
442d47eb2c Bug 1341881. Don't do sync decode for SVG <image> elements images. r=aosmond
SVG <image> elements have approximately the same level of visibility tracking as regular html <img>s so we shouldn't need to do sync decode. It shows up in some profiles.

The comment being removed was written a long time ago, before image visibility tracking for one.

We could even go a step further and ask for no sync decoding at all, but one step at a time to make sure this doesn't cause any regressions.
2017-02-22 18:58:42 -06:00
Wander Lairson Costa
90611046e2 Bug 1339038 - Replicate BB environment variables. r=dustin
There are some environment variables necessary to run test jobs in BB
which are also necessary for taskcluster-worker. They were copied from
[1].

Additionally, native-engine was broken by bug 1325701. We fix it in this
commit.

[1] https://github.com/mozilla-releng/build-buildbotcustom/blob/master/env.py#L89-L96
2017-02-22 14:47:00 -05:00
André Bargull
af0bb93cff Bug 1339986 - Handle export* when checking for duplicate export. r=jonco 2017-02-22 06:58:29 -08:00
Emanuel Hoogeveen
8867f10c5a Bug 1338574 - Assertions.cpp can't use MOZ_CRASH_ANNOTATE, so set the crash reason directly. r=froydnj 2017-02-22 15:42:00 -05:00
Julian Descottes
596f377474 Bug 1339783 - use theme-toolbar-hover for accordion header background on hover;r=gl
Move toolbar only variable toolbar-tab-hover to variables.css and reuse it in
accordion.

MozReview-Commit-ID: KgBLlYIYlrr
2017-02-22 16:55:05 +01:00
Aki Sasaki
580bb7d424 bug 1340609 - adjust beetmover+balrog scopes until we're ready. r=mtabara 2017-02-22 16:04:42 -08:00
Sebastian Hengst
016a385444 Backed out changeset 651dbded7f74 (bug 1341490) for build bustage. r=backout on a CLOSED TREE 2017-02-23 00:49:21 +01:00
Sebastian Hengst
20815686f2 Backed out changeset 665bcbc87862 (bug 1341490) 2017-02-23 00:47:26 +01:00
Blake Kaplan
7b481c1193 Bug 1335801 - Actually wait for the right href to load. r=Felipe
MozReview-Commit-ID: GVkWzNoTSQ7
2017-02-22 15:39:18 -08:00
Julian Descottes
b2d80aa1d4 Bug 1341680 - wait for layoutInspector to be initialized before attaching events;r=gl
MozReview-Commit-ID: IPC0VFOBPOx
2017-02-22 18:14:32 +01:00
Jeff Walden
d73ce21741 Bug 1287006 - Adjust media/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=jw_wang, r=rjesup
--HG--
extra : rebase_source : 176a2afde5772bbdf43f0f6dc8082201acadcf4f
2017-02-13 09:07:40 -08:00
Jeff Walden
8529eb5317 Bug 1338374 - Shrink Vector from (usually) four pointers in size to three when no inline storage is used. r=froydnj
--HG--
extra : rebase_source : bc2c7f706305d04954162720b011029c8095229f
2017-01-30 15:56:05 -08:00
Jeff Walden
d5deea2a4f Bug 1338374 - Make Vector not use AlignedStorage for its inline element storage. r=froydnj, r=keeler
--HG--
extra : rebase_source : 81eb5278404b4843ed5a59819f6000f74200aa41
2017-01-30 15:56:05 -08:00
Jeff Walden
a80694a3cb Bug 1339652 - Delete UnionMember's copy constructor, because it can't safely be used in the C++ object model. r=bz
--HG--
extra : rebase_source : fff9dc6738c4929f8e6f32c866f68778875ddab8
2017-02-14 11:23:40 -08:00
Jeff Walden
8f8272ae04 Bug 1339555 - Make various operator-news into a known-non-null pointer use a ::operator new overload that odesn't null-check. r=froydnj
--HG--
extra : rebase_source : cad3ffa778db607bb2ccee2ac42671e60d3c8160
2017-02-14 11:23:18 -08:00
David Major
a23c031c73 Bug 1341490: Remove bitrotting disabled layer gtest. r=nical
MozReview-Commit-ID: 7lITofQmYrS

--HG--
extra : rebase_source : fd29634504a696d9737430f829f27eb51e44f66f
2017-02-23 12:17:20 +13:00
David Major
5d3b260d16 Bug 1341490: Remove bitrotting disabled fonts gtests. r=jfkthame
MozReview-Commit-ID: 8kkuZ1e2wQS

--HG--
extra : rebase_source : 2e173319a9df88faf3ec5b9df7e7d4ec6e545ac6
2017-02-23 12:16:59 +13:00
Daniel Holbert
a7bc3e8898 Bug 1340441: Try to make crashtest 1338772-1.html more reliable. (no review, test-only)
This crashtest removes "reftest-wait" in a resize handler. Right now, that
resize handler isn't always being reliably triggered on TreeHerder. I suspect
this is because we handle the resize before we've ever done layout on the thing
being resized (the contentWindow inside of "inner"). So this patch establishes
an explicit size & explicitly triggers a reflow (via "offsetTop") on
inner.contentWindow, before we perform the resize tweak. This should make the
resize handler be triggered more reliably (100% reliably, I expect).

MozReview-Commit-ID: LX0SR8H6jW3
2017-02-22 15:09:57 -08:00
Jonathan Kew
8bf1b380d5 Bug 1318539 - Correct the bounds of the buffer used for drawing colored text with opacity when the run direction is RTL. r=jrmuizel 2017-02-22 23:10:29 +00:00
Jonathan Kew
38d2c7f0e9 Bug 1318539 - Reftests for RTL rendering of color glyph with partial opacity (currently failing). r=jrmuizel 2017-02-22 23:09:52 +00:00
Wes Kocher
29443ed98c Merge m-c to inbound, a=merge
MozReview-Commit-ID: HDHJC8X9xWG
2017-02-22 15:06:46 -08:00
Wes Kocher
b7294d3167 Merge inbound to central, a=merge
MozReview-Commit-ID: 2R3yE5OIznC
2017-02-22 15:01:04 -08:00
Jeff Gilbert
c90805dae5 Bug 1341459 - Remove MOZ_WEBGL_CONFORMANT. - r=jrmuizel
MozReview-Commit-ID: 32wxGM4ZbGA
2017-02-22 14:55:34 -08:00
Wes Kocher
5a7f5284cd Merge autoland to central, a=merge
MozReview-Commit-ID: 5l8P3DzMNXz
2017-02-22 14:55:21 -08:00
Aki Sasaki
13a088f827 bug 1340609 - promotable beta linux builds on push. r=dustin a=release
MozReview-Commit-ID: JAqifpgD3vW

--HG--
extra : rebase_source : 4570e7a304ac9fc208a0c2267e352e6cf4e1c80a
2017-02-22 10:24:58 -08:00
Aki Sasaki
344d405df7 bug 1340609 - toggle nightly scopes on-demand. r=dustin a=release
MozReview-Commit-ID: JiBpEWfGefh

--HG--
extra : rebase_source : f78b4bf97a90890d941141cd147f6ab8541ae0ef
2017-02-22 10:50:38 -08:00
Tom Schuster
20d9359561 Bug 1341692 - Enable passing %TypedArray%.prototype.set tests. r=anba 2017-02-22 18:10:29 +01:00