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

568388 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey f3daece337 Bug 1414168 - Avoid padding near the beginning of arena_run_t. r=njn
This makes the run header larger than necessary, which happens to make
the current arena_bin_run_calc_size pick 8KiB runs for size class 96
when MOZ_DIAGNOSTIC_ASSERT_ENABLED is set. This change makes it pick
4KiB runs, making MOZ_DIAGNOSTIC_ASSERT_ENABLED builds use the same set
of run sizes as non-MOZ_DIAGNOSTIC_ASSERT_ENABLED builds.

--HG--
extra : rebase_source : fd7ef2d58ec601186647799e9dcf8146e723241c
2017-11-08 09:56:08 +09:00
Mike Hommey 87faa92489 Bug 1414168 - Change and move the relaxed calculation rule for small size classes. r=njn
First and foremost, the code and corresponding comment weren't in
agreement on what's going on.

The code checks:
  RUN_MAX_OVRHD * (bin->mSizeClass << 3) <= RUN_MAX_OVRHD_RELAX
which is equivalent to:
  (bin->mSizeClass << 3) <= RUN_MAX_OVRHD_RELAX / RUN_MAX_OVRHD
replacing constants:
  (bin->mSizeClass << 3) <= 0x1800 / 0x3d

The left hand side is just bin->mSizeClass * 8, and the right hand side
is about 100, so this can be roughly summarized as:
  bin->mSizeClass <= 12

The comment says the overhead constraint is relaxed for runs with a
per-region overhead greater than RUN_MAX_OVRHD / (mSizeClass << (3+RUN_BFP)).
Which, on itself, doesn't make sense, because it translates to
61 / (mSizeClass * 32768), which, even for a size class of 1 would mean
less than 0.2%, and this value would be even smaller for bigger classes.
The comment would make more sense with RUN_MAX_OVRHD_RELAX, but would
still not match what the code was doing.

So we change how the relaxed rule works, as per the comment in the new
code, and make it happen after the standard run overhead constraint has
been checked.

--HG--
extra : rebase_source : cec35b5bfec416761fbfbcffdc2b39f0098af849
2017-11-07 14:36:07 +09:00
Mike Hommey 1117bc02f4 Bug 1414168 - Demystify the last test in the main arena_bin_run_size_calc loop. r=njn
The description above the RUN_* constant definitions talks about binary
fixed point math, which is one way to look at the problem, but a clearer
one is to look at it as comparing ratios in a way that doesn't use
divisions.

So, starting from the current expression:
  (try_reg0_offset << RUN_BFP) <= RUN_MAX_OVRHD * try_run_size

This can be rewritten as
  try_reg0_offset * (1 << RUN_BFP) <= RUN_MAX_OVRHD * try_run_size

Dividing both sides with ((1 << RUN_BFP) * try_run_size), and
simplifying, gives us:
  try_reg0_offset / try_run_size <= RUN_MAX_OVRHD / (1 << RUN_BFP)

Replacing the constants:
  try_reg0_offset / try_run_size <= 0x3d / (1 << 12)
or
  try_reg0_offset / try_run_size <= 61 / 4096

61 / 4096 is roughly 1.5%.

So what the check really intends to do is check that the overhead is
below 1.5%.

So we introduce a helper class and a user-defined literal that makes the
test more self-descriptive, while producing identical machine code.

This is a lot of code to add, but I think it's one of those cases where
abstraction can help make the code clearer.

--HG--
extra : rebase_source : 3d4a94f524a60e40ba75859c4f761f59d689e81a
2017-11-07 08:55:37 +09:00
Mike Hommey 1329eac959 Bug 1414168 - Split the condition for the main arena_bin_run_size_calc loop into pieces. r=njn
This is, practically speaking, a no-op, and will hopefully help make the
following changes clearer.

--HG--
extra : rebase_source : b704bdf2ae46c2408e0061363822b9744ef449cb
2017-11-07 07:42:21 +09:00
Edouard Oger 1acd495e05 Bug 1415707 - Remove about:accounts redirector. r=markh
MozReview-Commit-ID: JslMt32G1AS

--HG--
extra : rebase_source : 59a2d59cdea94252e72c6a3efe3a3666d95e61c6
2017-11-08 18:23:55 -05:00
Kartikaya Gupta 8a6d61d886 Bug 1415225 - Add a couple of mochitests for event-regions overrides. r=botond
These two tests exercise the codepaths where an event regions override
is set on (a) the root layer of a layer tree and (b) on an in-process
subdocument. I verified that case (b) was failing with webrender enabled
without the patchset and passes now.

MozReview-Commit-ID: GMwk5iQstj

--HG--
extra : rebase_source : c80c4a890ac37ed691310e541ac1347deb21090f
2017-11-08 20:47:19 -05:00
Kartikaya Gupta be01b429eb Bug 1415225 - Small early-exit optimization. r=botond
MozReview-Commit-ID: 8h1kYevQUtT

--HG--
extra : rebase_source : 8d529c1f48d6655e2b90d12ddb9e8c7845bded6f
2017-11-08 20:47:19 -05:00
Kartikaya Gupta f07bd076ed Bug 1415225 - Move the EventRegionsOverride field to be on RefLayers only. r=botond
We now set EventRegionsOverride flags on ref layers only, so
there's no need to have the APIs to set it on container layers in
general.

MozReview-Commit-ID: EX57VvaZv8A

--HG--
extra : rebase_source : 7ea4c8bb2716821bf7069158fdf9729fb6137a35
2017-11-08 20:47:19 -05:00
Kartikaya Gupta 536af04afe Bug 1415225 - Stop setting the EventRegionsOverride flag on root layers. r=botond,mattwoodrow
As with the previous patch, instead of setting the override on the root
layer, we set the flag on the nsDisplayListBuilder before building the
display list, and the flag automatically forces all event regions
display items to use their dispatch-to-content region instead of any
other regions.

Both the WebRender and non-WebRender codepaths were setting the override
flag on their root layers and don't need to any more.

MozReview-Commit-ID: KQV3w2nvlgs

--HG--
extra : rebase_source : 5be30af2d928117519296ec238eac91139986531
2017-11-08 20:47:18 -05:00
Kartikaya Gupta 0e18ce302a Bug 1415225 - Stop setting the EventRegionsOverride flag on in-process subdocument layers. r=botond
The mechanics of this change is fairly straightforward - instead of setting the
override on the layer corresponding to the in-process subdocument, we just set
the flag on the display list builder; that flag is already checked when building
the layer event regions for descendant nsIFrames.

As a side-effect, we also don't need to force a layer for in-process subdocuments
just because they have document-level APZ-aware listeners. One of reasons we were
doing so before was so that we would have a layer to stash the override flags on
but now we don't need that any more.

Note that out-of-process subdocuments are not affected; for those cases
the nsSubDocumentFrame delegates BuildDisplayList to
RenderFrameParent/nsDisplayRemote, which will still set the overrides on
the RefLayer that is created.

MozReview-Commit-ID: GTy9BmVVZ9q

--HG--
extra : rebase_source : be321091d6b5fe4b66738f2deeffbcfa6af0b521
2017-11-08 20:47:18 -05:00
Kartikaya Gupta 7b31712d93 Bug 1415225 - Remove dead code. r=jrmuizel
This code has been unused since the removal of layers-full WR codepaths.

MozReview-Commit-ID: EAhRrZXLKKr

--HG--
extra : rebase_source : c33f915461c724c61b11804a9cecb960728fd6df
2017-11-08 20:47:18 -05:00
James Cheng 66e09cf477 Bug 1413480 - Check mCDM in ChromiumCDMChild::RecvXXX before dereferencing it. r=cpearce,kikuo
MozReview-Commit-ID: Dp4FOtZ8Yok

--HG--
extra : rebase_source : d22a854a9b883d008357ba6bbe5337f8eaf9fe8b
2017-11-08 15:44:34 +08:00
Masayuki Nakano 806668b21a Bug 1415062 - part 2: Editor should use Selection::Collapse(const RawRangeBoundary&) as far as possible r=m_kato
In some places, editor computes index from child node for collapsing selection
at the child node.  However, it's expensive.  Therefore, editor should use
Selection::Collapse(const RawRangeBoundary&) as far as possible.

MozReview-Commit-ID: LF2MwASuXzZ

--HG--
extra : rebase_source : b7afc35c0d9d88845391b6f18de57cbff1935ae4
2017-11-07 19:50:25 +09:00
Masayuki Nakano 898bbb3137 Bug 1415062 - part 1: Selection should have Collapse(const RawRangeBoundary&) and Collapse(const RawRangeBoundary&, ErrorResult&) for avoiding computing offset of child node in container r=smaug
Selection should have Collapse() methods which take RawRangeBoundary instead of
a set of container and offset in it.  Then, if caller know only child node but
doesn't know offset in the container, neither callers, Selections nor nsRange
needs to compute offset.  This makes them avoid calling expensive method,
nsINode::IndexOf().

MozReview-Commit-ID: 79IRajLe1FE

--HG--
extra : rebase_source : a8ce52ff1654974461d5ecfed98b73d9cca34133
2017-11-07 15:29:15 +09:00
Miko Mynttinen 845735af56 Bug 1395476 - Do not call mStoredList.RecomputeVisibility for 3d transforms r=mattwoodrow
MozReview-Commit-ID: 1pnYL2RtFi6

--HG--
extra : rebase_source : 85699125c4b547b99ce2bf8580e0cd40720a285b
2017-11-08 02:54:10 +01:00
Mike Hommey afcd9e5c5b Bug 1415686 - Ensure both configure and old-configure agree on what MOZ_DEBUG means. r=chmanchester
--HG--
extra : rebase_source : e85bb916016ed767e2c1e6960b32d0224c6f092e
2017-11-09 07:41:21 +09:00
Ralph Giles 7138888244 Bug 1415446 - Update to libogg 1.3.3. r=kinetik
Update our in-tree copy of libogg to the latest upstream release.

This fixes an issue handling corrupt streams when packets are
continued between framing pages, along with some minor portability
fixes.

MozReview-Commit-ID: 3Vixrru4gLV

--HG--
extra : rebase_source : be30a403c32ec777c57ca95fcc642abf875188ae
2017-11-08 08:49:05 -08:00
Sebastian Hengst ad5f08ae5a merge mozilla-central to autoland. r=merge a=merge 2017-11-09 00:52:17 +01:00
James Graham a89b2e2c7f Bug 1415674 - Allow skipping web-paltform-tests that timeout, r=ato
For local runs it can be helpful to skip tests are expected to time
out. This adds a --skip-timeout flag that will skip tests that are
expected to time out on the current platform.

It doesn't solve the problem that the metadata might be over-specific
in the case that the expectation data isn't universal across all platforms.

MozReview-Commit-ID: 7S4EsVKv33P

--HG--
extra : rebase_source : 7e18bbcefc7350465bae799c27454a13da64a32e
2017-11-08 13:07:09 -08:00
Geoff Brown 8a01aef232 Bug 1415245 - Follow-up: work around intermittent psutil import error, on a CLOSED TREE
MozReview-Commit-ID: KSGe1iYQpYw

--HG--
extra : transplant_source : %24F%87%98%C7%A6%BD%80%E63Q%CF%0C%88B%CD%A4%AC%E7%E3
2017-11-08 10:55:29 -07:00
L10n Bumper Bot f945fe7970 no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
ach -> default
bs -> default
ia -> default
ltg -> default
oc -> default
2017-11-08 14:40:48 -08:00
Sebastian Hengst a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Sebastian Hengst 458d9b067b merge autoland to mozilla-central. r=merge a=merge 2017-11-08 23:57:11 +02:00
ffxbld 186dc0eef5 No bug, Automated blocklist update from host bld-linux64-spot-034 - a=blocklist-update 2017-11-08 11:49:22 -08:00
ffxbld f9ad119371 No bug, Automated HPKP preload list update from host bld-linux64-spot-034 - a=hpkp-update 2017-11-08 11:49:18 -08:00
ffxbld d3a0bf4332 No bug, Automated HSTS preload list update from host bld-linux64-spot-034 - a=hsts-update 2017-11-08 11:49:15 -08:00
ffxbld 5a7c2c5964 No bug, Automated HPKP preload list update from host bld-linux64-spot-035 - a=hpkp-update 2017-11-08 10:47:08 -08:00
ffxbld ac31e8cfe6 No bug, Automated HSTS preload list update from host bld-linux64-spot-035 - a=hsts-update 2017-11-08 10:47:05 -08:00
Sebastian Hengst c99d035f00 Backed out changeset 3e95c596ad5b (bug 1415397) because backed out (bug 1412737 depended on it. a=backout on a CLOSED TREE 2017-11-08 19:31:20 +02:00
Narcis Beleuzu b3eba51148 Backed out 4 changesets (bug 1412737)for frequent Windows talos-g4 timeouts. a=RyanVM
Backed out changeset 13b3569d56c4 (bug 1412737)
Backed out changeset b8ae4f1e89c9 (bug 1412737)
Backed out changeset dd35b8813ca1 (bug 1412737)
Backed out changeset 29e511fbcd62 (bug 1412737)
2017-11-08 18:52:15 +02:00
Geoff Brown 9d31648570 Bug 1415245 - Create system-info.log artifact for desktop unit tests; r=jmaher 2017-11-08 09:32:11 -07:00
Geoff Brown 74ddbdda93 Bug 1414960 - Improve formatting of |mach test-info| output; r=jmaher 2017-11-08 09:32:09 -07:00
Boris Zbarsky 272cbb590b Bug 1415176. Move getElementsByName from HTMLDocument to Document. r=mccr8
MozReview-Commit-ID: CRfrXC2x97S
2017-11-08 11:13:33 -05:00
Narcis Beleuzu 57d9eb5fb1 Backed out 1 changesets (bug 1414096) for dt1 failures "devtools/client/commandline/test/browser_cmd_pref3.js" r=backout on a CLOSED TREE
Backed out changeset e843de356b7e (bug 1414096)
2017-11-08 18:04:01 +02:00
Jeff Hemphill a29af12056 Bug 1104647 - IonMonkey: Implement MathFunction(Floor) recover instruction r=nbp 2017-11-08 15:42:57 +00:00
Narcis Beleuzu 218e1676cb Merge inbound to mozilla-central r=merge a=merge 2017-11-08 12:51:09 +02:00
Bob Owen 009df3d87d Bug 1415250 Part 2: Make level 4 the default for the Windows content process sandbox. r=jimm 2017-11-08 08:06:15 +00:00
Bob Owen cd430d0c58 Bug 1415250 Part 1: Block prntm64.dll and guard32.dll in sandboxed child processes. r=jimm 2017-11-08 08:06:14 +00:00
Cervantes Yu 6129f0777e Bug 1414714 - Part 3: Remove more unused prefs defined in gfxPrefs. r=nical
This removes non-"gfx.*" prefs defined in gfxPrefs.h, but the generated gfxPrefs
properties are not accessed anywhere in the code base:
* apz.overscroll.spring_friction
* apz.overscroll.stop_velocity_threshold
* apz.overscroll.stretch_factor
* dom.w3c_touch_events.enabled - this pref is accessed in other places, but not through
gfxPrefs::TouchEventsEnabled().
* general.smoothScroll.lines
* general.smoothScroll.pixels
* layers.composer2d.enabled
* layers.stereo-video.enabled

MozReview-Commit-ID: 5OByjpnFthJ
2017-11-08 15:27:06 +08:00
Cervantes Yu c6bc943ace Bug 1414714 - Part 2: Remove unused gfx.* prefs. r=nical
The following prefs are removed because they are defined in gfxPrefs, but the
resulting gfxPrefs property is used at all.
* gfx.SurfaceTexture.detach.enabled
* gfx.touch.resample.*
* gfx.screen-mirroring.enabled

MozReview-Commit-ID: CyI3JN4TTu5
2017-11-08 15:26:50 +08:00
Cervantes Yu d9dd8249c1 Bug 1414714 - Part 1: Remove unused telemetry environment pref "gfx.direct2d.use1_1". r=chutten
MozReview-Commit-ID: 5zbW8UTm8Wa
2017-11-08 15:26:34 +08:00
Andrea Marchesini f863b85f64 Bug 1410106 - Better check about privateBrowsing for IDB, r=asuth 2017-11-08 06:43:50 +01:00
Boris Zbarsky d9bcae2dfb Bug 1415182. Make the External interface [NoInterfaceObject], per spec. r=qdot
MozReview-Commit-ID: DCX4uxAFPAu
2017-11-08 00:25:55 -05:00
Boris Zbarsky 97828fce1d Bug 1415389. Make ChromeUtils a WebIDL namespace. Remove ThreadSafeChromeUtils. r=kmag
MozReview-Commit-ID: 9ysAeaBMNVt
2017-11-08 00:25:33 -05:00
Zibi Braniecki 9d0b169191 Bug 1414975 - Add locale information to about:support. r=mkelly
MozReview-Commit-ID: Dwy3pEPJgeN

--HG--
extra : rebase_source : 633d41590138524135c7d8fc45b6dc02b3c34f8b
2017-11-06 15:42:32 -08:00
Markus Stange 62e25a4903 Bug 1414926 - Make -moz-font-smoothing-background-color changes only cause repaints, not reflows. r=emilio
This case is hit by hovering over menu items, so the optimization is somewhat worthwhile.
As a side-effect, not causing reflows also avoids a XUL <select> popup positioning bug.

MozReview-Commit-ID: AOrijytoHHL

--HG--
extra : rebase_source : c2156eb24171f6d0b0e5476c4a7dbc641a0b5301
2017-11-07 23:01:29 -05:00
Sebastian Hengst 91932e97bd Backed out 2 changesets (bug 1415298) for orphaned pattern 'assets/**' in mobile/android/app/moz.build. r=backout on a CLOSED TREE
Backed out changeset e046373e0dca (bug 1415298)
Backed out changeset 160586d66bcb (bug 1415298)

--HG--
rename : mobile/android/app/src/main/assets/example_asset.txt => mobile/android/app/assets/example_asset.txt
rename : mobile/android/app/src/main/assets/parental_controls_theme.png => mobile/android/app/assets/parental_controls_theme.png
rename : mobile/android/app/src/main/assets/publicsuffixlist => mobile/android/app/assets/publicsuffixlist
2017-11-08 20:11:03 +02:00
Dale Harvey 3a35c9f7b3 Bug 1384582 - Ensure browser_urlbar_search_reflows.js test runs are isolated. r=mconley
When running these tests with --verify the places results from
previous test runs can effect tests so give each test run a unique
search term to ensure that they do not.

MozReview-Commit-ID: Lp9YCoUdul5

--HG--
extra : rebase_source : 10178da06863a421ca752970a3f926a61f9c9f43
2017-11-07 12:33:50 +00:00
Sebastian Hengst 1ed684601e merge mozilla-central to autoland. a=backout on a CLOSED TREE 2017-11-08 19:33:00 +02:00
Nick Alexander 7094a99a6c Bug 1415298 - Fix finding assets/ in |mach android test| locally. r=maliu
Upgrading to the Android-Gradle plugin 3.0+ broke |mach android test|
locally.  This addresses the issue.

MozReview-Commit-ID: 3vV47ET7d19

--HG--
extra : rebase_source : aaf7a550f8b2776a41d55fdce2c43c0c8c473331
2017-11-07 12:43:40 -08:00