Commit Graph

509151 Commits

Author SHA1 Message Date
Florian Quèze
77bac28360 Bug 1334831 - add an eslint rule to report usage of .parentNode.removeChild when .remove() could be used instead, r=jaws. 2017-01-30 08:10:18 +01:00
Florian Quèze
f5038afffa Bug 1334831 - Make the printpreview_bug396024_helper.xul test not depend on the removeChild return value, r=jaws. 2017-01-30 08:10:15 +01:00
Florian Quèze
bb2e204d5d Bug 1327953 - Fix enabling the 'Restore Default Search Engines' button when removing a default engine, r=Standard8. 2017-01-30 08:10:00 +01:00
Andrew Sutherland
8e593b76bd Bug 1319531 - Ensure all streams provided by DatabaseFile can be read without generating NS_BASE_STREAM_WOULD_BLOCK errors. r=janv
IndexedDB database operations are written such that they must execute
synchronously.  For this reason, the add/put operation reads/writes its
Blobs to disk in a synchronous fashion.  However, with the introduction
of SendStream-backed Blobs for large (>1 MiB) blobs whose contents are
streamed to the parent replacing nsStringInputStream-backed Blobs
(whose contents were sent up in a single IPC message that might exceed
the size limit and cause a crash), this has no longer been a safe
assumption.  However, the problems weren't immediately obvious because
most pre-WASM Blobs are smaller than the 1MiB threshold and even when
they exceeded the size, their memory-backed contents could rapidly be
sent to the parent via IPC, making NS_BASE_STREAM_WOULD_BLOCK errors
rare/hard to reproduce.  (rr and its enforced single-threading is a
good way to reproduce, however.  Also, see the testing patch on the
bug that introduces artificial delays into SendStream.)

Included SpecialPowersObserver.jsm minor changes to "CreateFiles":
- appendRelativePath is used instead of appendPath because appendPath
  only allows a single path component to be appended.  In other words,
  file creation is limited to files at the root of the profile
  directory using appendPath, which is needlessly limiting.
- outStream is now closed even if no data is provided.  This is
  essential on windows where file deletion only occurs when all handles
  are closed.  Without this fix, "RemoveFiles" side-effect of deleting
  the created files might not take effect until garbage collection runs
  and collects the outStream.
2017-01-30 01:07:27 -05:00
Mats Palmgren
454b00deaa Bug 1332876 - test. 2017-01-30 04:54:38 +01:00
Mats Palmgren
4673e4df59 Bug 1332876 - Bail out of HTMLEditRules::BeforeEdit if we have no Selection. r=masayuki 2017-01-30 04:54:37 +01:00
Cameron McCormack
35486c881a Bug 1334768 - stylo: More reftest expectation adjustments for 2017-01-29 merge.
MozReview-Commit-ID: 8TT4JzUIBZl
2017-01-30 10:53:58 +08:00
Nicholas Nethercote
dfbacc4a42 Bug 1334466 (part 5) - Remove PlatformData::profiled_pthread_. r=mstange.
It's unused.

--HG--
extra : rebase_source : a755202318cf8abceefd1d29326380f3bc2746b7
2017-01-28 01:07:01 +11:00
Nicholas Nethercote
d1afdf0d74 Bug 1334466 (part 4) - Remove Sampler::profiling_. r=mstange.
Because it's always true.

--HG--
extra : rebase_source : b77cccb79989e6e93f003609baab34ca588e455e
2017-01-28 00:58:55 +11:00
Nicholas Nethercote
9c6ed67ad7 Bug 1334466 (part 3) - Rename GeckoSampler.cpp as Sampler.cpp. r=mstange.
The patch also moves some Sampler methods from platform.cpp to Sampler.cpp. Now
all Sampler methods are in Sampler.cpp except for a small number of
platform-specific ones, which are in platform-*.cpp.

--HG--
rename : tools/profiler/core/GeckoSampler.cpp => tools/profiler/core/Sampler.cpp
extra : rebase_source : a13862dccfcb1c78567cc9eb22e92b8410d2e544
2017-01-28 00:57:52 +11:00
Nicholas Nethercote
b33fc679ac Bug 1334466 (part 2) - Merge Sampler and GeckoSampler. r=mstange.
There's no point having them as separate classes. This removes the need for
some virtual functions, too.

--HG--
extra : rebase_source : b2607ba2431ae043b6e015f4f435b0d660b02d71
2017-01-25 14:34:25 +11:00
Nicholas Nethercote
0a42d0f79c Bug 1334466 (part 1) - Merge Sampler constructors and destructors. r=mstange.
They're defined separately for each platform, but the definitions are almost
identical and can be commoned up.

--HG--
extra : rebase_source : 67b7f88410db1951a20f03f6c156aa6b35a3ee20
2017-01-28 00:52:57 +11:00
Mats Palmgren
b2ac374a02 Bug 1330962 part 6 - Start this test using MozReftestInvalidate rather than onload.
The test fails when using onload if it's the first test to run in its
reftest chunk.
2017-01-30 00:37:00 +01:00
Mats Palmgren
84fc7f3624 Bug 1330962 part 5 - Reftests for baseline alignment of various form controls. 2017-01-30 00:36:59 +01:00
Mats Palmgren
9fb7c1b523 Bug 1330962 part 4 - Cleanup some #includes and make nsLegendFrame 'final'. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
6e53f8fdf0 Bug 1330962 part 3 - Add baseline methods to nsFieldSetFrame. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
a44216adfb Bug 1330962 part 2 - Add baseline methods to nsHTMLButtonControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Mats Palmgren
4d79cc0b8c Bug 1330962 part 1 - Add baseline methods to nsTextControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Nicholas Nethercote
e584767774 Bug 1333655 - Improve the profiler's Thread class. r=mstange.
It's a clumsy cross-platform abstraction. GetCurrentId() and tid_t are the only
genuinely cross-platform things in it, and the patch keeps those in place.

The remaining methods are not implemented on all platforms (none are
implemented on Linux) and the fields are all used on either Mac or Windows, but
not both. So the patch moves the relevant Thread method implementations and
fields into the existing SamplerThread classes. There is sufficiently little
overlap between the two SamplerThread classes that there is no point sharing a
base class between them. This avoids the need for virtual functions, and
simplifies thread naming on Mac.

The patch also changes some of the existing code to use Gecko style, e.g.
|mFoo| instead of |foo_| for class fields.
2017-01-25 14:34:25 +11:00
Nicholas Nethercote
234a671f05 Bug 1328365 (part 3) - Remove GeckoSampler::sActiveSampler. r=mstange.
This variable is set in GeckoSampler's destructor and cleared in GeckoSampler's
destructor, which means it's just another handle to the GeckoSampler singleton,
which means it duplicates gSampler.

This patch replaces its uses with gSampler uses. This exposes various places
where GeckoSampler is being accessed off the main thread, which I have marked
with XXX comments.

--HG--
extra : rebase_source : 3c2d012b4d38d353022f384c31a528096a462711
2017-01-27 16:25:23 +11:00
Nicholas Nethercote
9fcc3d9c39 Bug 1328365 (part 2) - Rename ProfileGatherer::mTicker as mSampler. r=mstange.
It's a better name, given that the type is |GeckoSampler*|.

--HG--
extra : rebase_source : aaeb9d0c34f8650c2e034e334825c7e8d7c1e832
2017-01-25 16:09:06 +11:00
Nicholas Nethercote
fd25b06c81 Bug 1328365 (part 1) - Replace tlsTicker with gSampler. r=mstange.
There is a single GeckoSampler and it is currently only accessed on the main
thread, so it's silly to use TLS for it; a normal global variable is better.

This patch also adds main thread assertions to a number of the profiler_*()
functions. Even though bug 1330184 may get rid of some of them, right now they
are a useful as both a sanity check and documentation.

--HG--
extra : rebase_source : 7613eb3cc8089b31180365f6463c81f4556c7b66
2017-01-25 16:00:47 +11:00
Kris Maglione
22bea68112 Bug 1334893: Don't reset theme styling when non-theme extension shuts down. r=aswan
MozReview-Commit-ID: 19I0GDxvDcb
2017-01-29 12:23:50 -08:00
Andrew McCreight
f31f538622 Backed out changeset a0d8fb1244c5 (bug 1313864) for causing bug 1334904. 2017-01-29 10:29:27 -08:00
Phil Ringnalda
a481c3b57d Merge m-i to m-c, a=merge 2017-01-29 09:02:20 -08:00
ffxbld
2e014b99f8 No bug, Automated HPKP preload list update from host bld-linux64-spot-132 - a=hpkp-update 2017-01-29 08:10:01 -08:00
ffxbld
b60ce9ada6 No bug, Automated HSTS preload list update from host bld-linux64-spot-132 - a=hsts-update 2017-01-29 08:09:59 -08:00
Joel Maher
3d044d99d0 Bug 1334541 - add BUG_COMPONENT to dom/animation/* files. r=hiro
MozReview-Commit-ID: Bnyj9mWOYms
2017-01-29 06:51:47 -05:00
Joel Maher
a0b005583d bug 1302854 - disable jetpack/test-context-menu.js subtest for frequent failures. r=kmag
MozReview-Commit-ID: 74CpzkiFVja
2017-01-29 06:51:43 -05:00
Joel Maher
15ba3d260d Bug 1334529 - add BUG_COMPONENT to testing/web-platform/tests/media*/* files. r=mreavy
MozReview-Commit-ID: Jor1IPG1loQ
2017-01-29 06:51:39 -05:00
Joel Maher
8c153d5857 Bug 1334551 - add BUG_COMPONENT to dom/archivereader/* and dom/asmjscache/* files. r=overholt
MozReview-Commit-ID: IKPWxOsadTa
2017-01-29 06:51:35 -05:00
Cameron McCormack
7805d4716e Bug 1334768 - stylo: Test expectation adjustments for 2017-01-29 merge.
MozReview-Commit-ID: FFmvs6SHIwW
2017-01-29 15:31:56 +08:00
Hiroyuki Ikezoe
5e33af310e Bug 1328787 - Part 13: Call nsAnimationManager.UpdateAnimations(). r=heycam
MozReview-Commit-ID: CcA3dJaxuYY
2017-01-29 12:59:00 +09:00
Hiroyuki Ikezoe
fc6d8f711b Bug 1328787 - Part 12: Fill Gecko's Keyframe. r=heycam
MozReview-Commit-ID: 5QdUtFj9lK9
2017-01-29 12:58:51 +09:00
Hiroyuki Ikezoe
e4b48af5ae Bug 1328787 - Part 4: Add Gecko_AnimationAppendKeyframe. r=heycam
This is a function which is called in Servo_StyleSet_FillKeyframesForName to
append a Gecko's Keyframe into nsTArray<Keyframe>.

Without this function we need to end up exposing ComputedTimingFunction class
and Maybe<> as FFI.

MozReview-Commit-ID: 2EpltR4rMVh
2017-01-29 12:58:39 +09:00
Hiroyuki Ikezoe
8d8004331b Bug 1328787 - Part 3: Add functions for filling each servo's animation keyframes into nsTArray<Keyframe>. r=heycam
The argument, ServoComputedValues*, will be used the case where keyframe is not specified.

MozReview-Commit-ID: HqqEXuYajCi
2017-01-29 12:58:28 +09:00
Hiroyuki Ikezoe
b760727ba4 Bug 1328787 - Part 2: Don't pass nsCSSKeyframesRule* to CSSAnimationBuild::Build. r=heycam
Because, in case of stylo, we don't have nsCSSKeyframesRule.

MozReview-Commit-ID: uWlrFihjbx
2017-01-29 12:58:25 +09:00
Hiroyuki Ikezoe
9ce5c619b0 Bug 1328787 - Part 1: Factor out Keyframe and PropertyValuePair into Keyframe.h. r=heycam
KeyframeEffectReadOnly.h has lots of unnecesarry stuff for stylo for now, so
is split stuff which needs for stylo into Keyframe.h.
2017-01-29 12:58:23 +09:00
Mats Palmgren
c44a2704e5 Bug 1334403 - Some <caption> size tests for table flex items. 2017-01-29 04:02:59 +01:00
Mats Palmgren
0d8685f315 Bug 1334403 - Make <caption> inline size stretch again for table flex items. r=dholbert 2017-01-29 04:02:59 +01:00
Gabriel Luong
7b223594ba Bug 1333561 - Part 5: Replace the inspector and computed view tests with the correct box model selectors. r=me 2017-01-28 17:38:58 -05:00
Gabriel Luong
b0eccb57d9 Bug 1333561 - Part 4: Rename box-model.js to deprecated-box-model.js. r=jdescottes
--HG--
rename : devtools/client/inspector/components/box-model.js => devtools/client/inspector/components/deprecated-box-model.js
2017-01-28 17:11:24 -05:00
Gabriel Luong
37d7b4c160 Bug 1333561 - Part 3: Implements the box model panel in the layout view. r=jdescottes 2017-01-28 17:11:04 -05:00
Gabriel Luong
53e3e0bfa2 Bug 1333561 - Part 2: Refactor EditingSession to a separate utils module. r=jdescottes
--HG--
rename : devtools/client/inspector/components/box-model.js => devtools/client/inspector/layout/utils/editing-session.js
2017-01-28 17:10:55 -05:00
Gabriel Luong
e3c40de999 Bug 1333561 - Part 1: Add an "old" prefix to the current box model's markup and css. r=jdescottes
--HG--
rename : devtools/client/themes/boxmodel.css => devtools/client/themes/deprecated-boxmodel.css
2017-01-28 17:10:46 -05:00
Phil Ringnalda
b6c9ea587d Merge m-c to m-i 2017-01-28 13:12:17 -08:00
Phil Ringnalda
5d4072a82c Merge m-i to m-c, a=merge 2017-01-28 13:09:00 -08:00
Phil Ringnalda
1b25397681 Merge autoland to m-c, a=merge 2017-01-28 13:07:19 -08:00
Tom Schuster
48ee845dbd Bug 1333073 - Enable DataView Xray. r=bz 2017-01-28 21:52:45 +01:00
Tom Schuster
958ad51296 Bug 1333073 - Use ClassSpec for DataView. r=arai 2017-01-28 21:36:05 +01:00