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

558329 Коммитов

Автор SHA1 Сообщение Дата
Corey Farwell 063db35806 servo: Merge #18494 - Implement `size_hint` for more iterators (from frewsxcv:frewsxcv-size-hint); r=jdm
```
implement size hint for
more iterators because why
not we like fast things
```

Source-Repo: https://github.com/servo/servo
Source-Revision: bb2030a49314433c1b31f853e4fa50afa241b596

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : fb164a6e8e51ebba14d97ee7600567b3b517dc30
2017-09-13 19:38:32 -05:00
Chris Peterson 4e26d7c8e5 Bug 1398988 - Add Option+Command+U as an alternate keyboard shortcut for "View Source" on macOS like Safari and Chrome. r=Gijs
MozReview-Commit-ID: Hq6tMmJwARN

--HG--
extra : rebase_source : 3808f596404175b6578eacf13a2b587608c0953b
extra : source : e65a48150f747b782a2f4edb82210175c793a3d2
2017-09-07 22:27:46 -07:00
Mike Hommey 9f3c42a57e Bug 1397101 - Only use a thread local arena for small sizes. r=njn
The bin-unused count in memory reports indicates how much memory is
used by runs of small and sub-page allocations that is not actually
allocated. This is generally thought as an indicator of fragmentation.

While this is generally true, with the use of thread local arenas by
stylo, combined with how stylo allocates memory, it ends up also being
an indicator of wasted memory.

For instance, over the lifetime of an AWSY iteration, there are only a
few allocations that ends up in the bucket for 2048 allocated bytes. In
the "worst" case, there's only one. But the run size for such
allocations is 132KiB. Which means just because we're allocating one
buffer of size between 1024 and 2048 bytes, we end up wasting 130+KiB.
Per thread.

Something similar happens with size classes of 512 and 1024, where the
run size is respectively 32KiB and 64KiB, and where there's at most a
handful of allocations of each class ever happening per thread.

Overall, an allocation log from a full AWSY iteration reveals that there
are only 448 of 860700 allocations happening on the stylo arenas that
involve sizes above (and excluding) 512 bytes, so 0.05%.

While there are improvements that can be done to mozjemalloc so that it
doesn't waste more than one page per sub-page size class, they are
changes that are too low-level to land at this time of the release
cycle. However, considering the numbers above and the fact that the
stylo arenas are only really meant to avoid lock contention during the
heavy parallel work involved, a short term, low risk, strategy is to
just delegate all sub-page (> 512, < 4096) and large (>= 4096) to the
main arena. Technically speaking, only sub-page allocations are causing
this waste, but it's more consistent to just delegate everything above
512 bytes.

This should save 132KiB + 64KiB = 196KiB per stylo thread.

--HG--
extra : rebase_source : c7233d60305365e76aa124045b1c9492068d9415
2017-09-14 07:36:39 +09:00
Mike Hommey 965981b68d Bug 1397101 - Reduce the number of dirty pages we allow to be kept in thread local arenas. r=njn
Until bug 1361258, there was only ever one mozjemalloc arena, and the
number of dirty pages we allow to be kept dirty, fixed to 1MB per arena,
was, in fact, 1MB for an entire process.

With stylo using thread local arenas, we now can have multiple arenas
per process, multiplying that number of dirty pages.

While those dirty pages may be reused later on, when other allocations
end up filling them later on, the fact that a relatively large number of
them is kept around for each stylo thread (in proportion to the amount of
memory ever allocated by stylo), combined with the fact that the memory
use from stylo depends on the workload generated by the pages being
visited, those dirty pages may very well not be used for a rather long
time. This is less of a problem with the main arena, used for most
everything else.

So, for each arena except the main one, we decrease the number of dirty
pages we allow to be kept around to 1/8 of the current value. We do this
by introducing a per-arena configuration of that maximum number.

--HG--
extra : rebase_source : 75eebb175b3746d5ca1c371606cface50ec70f2f
2017-09-14 07:26:30 +09:00
Makoto Kato 17357e00a7 Bug 1397986 - Save to PDF doesn't work with content sandbox. r=haik
Due to content sandbox, NSPrintJobSavingURL will throws an exception on content process.  So we don't use NSPrintJobSavingURL on content process and print.print_via_parent=true.

Also, even if chrome process, SetToFileName should store file name to mToFileName.  Because SetToFileName uses mToFileName.

MozReview-Commit-ID: J7vlOG0gyGP

--HG--
extra : rebase_source : dfda2f625ca9dabefe131e40424609a2b921d430
2017-09-10 17:49:30 +09:00
Daosheng Mu a9f76cd981 Bug 1383907 - Enable WebVR reftests on macOS; r=jgilbert,kip
MozReview-Commit-ID: 2OpA95QWI4d

--HG--
extra : rebase_source : b2457c5690fe8290d407c7fab11f29afdeda159c
2017-08-25 00:30:31 +08:00
Daosheng Mu 6eef084a6c Bug 1398404 - Make current context when updating max draw buffers; r=jgilbert
MozReview-Commit-ID: 1OSjjMwCpBb

--HG--
extra : rebase_source : 24f82404dcc4372f8b05e9778efa1d335ad786ad
2017-09-11 10:30:48 +08:00
Alexis Beingessner 6b38993c8b Bug 1399274 - Block invisible text optimizations when using WebRender. r=jrmuizel
Mostly just threading the TextDrawTarget deeper into the code to use a boolean.
A lot of places are trying to optimize away invisible text!

MozReview-Commit-ID: 89sDAwUv0HA

--HG--
extra : rebase_source : 8d800702232aec6626a33f2d6be893708d0bbfee
2017-09-13 14:05:51 -04:00
suneet cb2f78c1f6 Bug 1394879 - Replaced TouchDelegate usage with TouchDelegateWithReset .r=JanH
MozReview-Commit-ID: 4pTiOXAUkp0

--HG--
extra : rebase_source : c0fda76718f0b2293b7eb9fc88d46a9c2b9faab4
2017-09-14 01:45:19 +05:30
Mark Striemer afefcefd15 Bug 1372996 - Clear the URL bar when on ext newtab r=mixedpuppy
MozReview-Commit-ID: 2NNOK2kRPgl

--HG--
extra : rebase_source : ce37a70b67296d8d5ae86dfa46ce769c4479405e
2017-09-01 09:39:24 -05:00
Mark Striemer 4d92dcaec3 Bug 1354344 - Show extension controlling home page in preferences r=bsilverberg,jaws
MozReview-Commit-ID: 9mU3SvdK91c

--HG--
extra : rebase_source : 703e7248b8200efef8eb0342510c6d7da29016c7
2017-09-07 11:35:06 -05:00
Ryan VanderMeulen fc0fb3cc9a Merge m-c to autoland. a=merge 2017-09-13 20:37:40 -04:00
Ryan VanderMeulen 3fc86b0be1 Backed out 2 changesets (bug 864845) for causing bug 1399649.
Backed out changeset c991b71d3642 (bug 864845)
Backed out changeset 9e6a4d96cf76 (bug 864845)
2017-09-13 19:23:12 -04:00
Emilio Cobos Álvarez 7025f2a9d3 servo: Merge #18486 - style: Move ExtraStyleData into CascadeData (from emilio:extra-data-to-cascade-data); r=SimonSapin
It logically belongs there, and the only reason it wasn't there before we were
working around other stuff. Now it's needed to share UA stylesheets across documents.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ab705b0265cac358c3bebb3fec8cbac089f015d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1e77773a569f810d62dc1f3997817dd86feff377
2017-09-13 17:44:21 -05:00
Sebastian Hengst 006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Sebastian Hengst 4873dd49d1 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cAKMj5aTV5
2017-09-13 23:56:31 +02:00
Sebastian Hengst 18dfe04431 Bug 1399569 - Use full text for bugzilla component 'CSS Parsing and Computation', not an abbreviated version. r=jmaher NPOTB
MozReview-Commit-ID: B6JdvairGOI

--HG--
extra : rebase_source : b5cabb21ac76cbef2ea3d228d5bde2df17b82477
2017-09-13 20:03:52 +02:00
Ben Kelly 10e7aa67d1 Bug 1398942 P2 Convert nsPipe3.cpp NS_ASSERTION() calls to hard assertions. r=froydnj 2017-09-13 10:36:18 -07:00
Ben Kelly db6fe1b9f4 Bug 1398942 P1 Convert existing nsPipe3.cpp MOZ_ASSERT's to use MOZ_DIAGNOSTIC_ASSERT. r=froydnj 2017-09-13 10:36:15 -07:00
Alexander Surkov 368e47efdb Bug 1360210 - crash in mozilla::a11y::FocusManager::IsFocused const, r=davidb 2017-09-13 12:45:11 -04:00
Ryan VanderMeulen ce7231a8d6 Backed out changeset a3b2778fa597 (bug 1389470) for leaks. a=oops
MozReview-Commit-ID: 3kkJTmUXdrX

--HG--
extra : source : d9a39e5210d07b16cedf7f6b3afc9a850927b631
2017-09-13 12:36:18 -04:00
Wes Kocher ad92e51651 Merge autoland to central, a=merge
MozReview-Commit-ID: 8ysO7Q1zYcs
2017-09-13 14:20:49 -07:00
ffxbld 6326724982 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-09-13 10:23:19 -07:00
ffxbld 72ed6c99a5 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-09-13 10:23:16 -07:00
Sebastian Hengst e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Peter Moore 678aa7fce2 Bug 1382204 - enable coalescing on macOS/win10-gpu tests and disable on linux builds,r=dustin 2017-09-13 12:30:07 +02:00
Christoph Kerschbaumer d52e12418d Bug 1399468 - Update remaining tests within dom/browser-element to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-13 16:07:19 +02:00
Michael Layzell 44f1d8fa25 Bug 1396976 - Flush IME document changes when entering nested Document Update, r=masayuki 2017-09-13 11:45:49 -04:00
Michael Layzell 6e8114439a Bug 1389235 - Submit the bhr ping at least once a day, r=froydnj 2017-09-13 11:45:48 -04:00
Michael Layzell 5dff36164d Bug 1398883 - Disable the DataTransfer::Protected state for Firefox 57, r=baku
This isn't a super essential feature, and is just a change to try to bring us in
line with chromium and the spec. As this has apparent web compat issues, and
DataTransfer is a hard to test area, this patch moves the changes behind a pref,
which we can come back to turning on after we ship 57.
2017-09-13 11:45:48 -04:00
Michael Layzell c24551af0d Bug 1398471 - Read data from DataTransfer before yielding, r=gijs
Previously the code looped and yielded between each loop. This caused the
DataTransfer to be cleared before the read completed.

This splits the loop into 2 sections such that we read all important data from
the DataTransfer before it is cleared.
2017-09-13 11:45:48 -04:00
Andrew Osmond cf998634b8 Backed out changeset e66c8d65d0f1 (bug 1389021) because it did not reduce the crash volume. 2017-09-13 11:19:06 -04:00
Sebastian Hengst 1fbe7771e8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
Sebastian Hengst dd669d05e1 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JWKcdNfAFqk
2017-09-13 11:25:59 +02:00
Grigory Kruglov 91f275f5c3 Bug 1399039 - Don't initialize GlobalPageMetadata more than once r=sebastian
MozReview-Commit-ID: 6VqkvDrEc5K

--HG--
extra : rebase_source : 8cb917de8c7605097abaa69caeca0c39bd50ecf5
2017-09-12 20:28:36 -04:00
Matt Howell 35ff2759a8 Bug 1397902 - Switch on the new stub installer strings and remove the old ones. r=agashlin,flod
MozReview-Commit-ID: 87PmEx0BbHe

--HG--
extra : rebase_source : 75dbd979e1ebec8955ee1233d30520cf4e3af798
extra : source : 20f0e8f7f241c9becb500773f1044eacfd07efc1
2017-09-12 13:10:13 -07:00
Andrew Osmond 85db0466a2 Bug 1399453 - Temporarily annotate crash reports with compositor thread owners. r=dvander
From the crashes associated with bug 1389021, we know that some
compositor thread IPDL owners are not being cleaned up properly. We do
not know which protocols are causing the problem, so we temporarily will
annotate the logs with the ownership status. This should be limited to
under a dozen instances of the protocols.

This change will be backed out after a few builds are produced with it
and we see the first crash reports with the relevant data.
2017-09-13 11:16:05 -04:00
Sebastian Hengst 61569e53a2 Backed out changeset 142c2979af94 (bug 1254688) for failing mochitest dom/tests/mochitest/general/test_resource_timing_unload.html | Only one entry should be found. r=backout on a CLOSED TREE 2017-09-13 16:58:44 +02:00
Sebastian Hengst 49cb3c40cb Backed out changeset 0140b9418003 (bug 1398556) for asserting at dom/file/ipc/IPCBlobInputStream.cpp:555. r=backout on a CLOSED TREE 2017-09-13 16:57:39 +02:00
Sebastian Hengst b3fd3e1e87 Backed out changeset 393e901c47f6 (bug 1399466) so bug 1398556 can be backed out. r=backout on a CLOSED TREE 2017-09-13 16:56:25 +02:00
Geoff Brown 59295bdd27 Bug 1394910 - Return failed status from mochitest harness when one or more tests fail; r=jmaher 2017-09-13 08:27:18 -06:00
Will Wang 1e04e92d6a Bug 1365970 - Move data collector timer in the content process to idle dispatch. r=mikedeboer 2017-09-13 21:06:06 +08:00
Boris Zbarsky 101a69d71a Bug 864845 part 2. Make window.content chromeonly. r=mystor
MozReview-Commit-ID: Q7hTmngEgI
2017-09-12 15:33:10 -04:00
Boris Zbarsky 88e03490ad Bug 864845 part 1. Stop using 'content' in devtools tests. r=ochameau
MozReview-Commit-ID: 5PppAzRx5JG
2017-09-12 15:33:10 -04:00
Jeff Muizelaar d5f9b84940 Bug 1392523. Remove duplicated gfxContext* parameter. r=mattwoodrow
All of the callers are passing in the same value for
both gfxContexts.
2017-09-12 22:17:43 -04:00
Yury Delendik 3614bb831d Bug 1399217 - Disable wasm disassembly for non-binary source. r=jlast
MozReview-Commit-ID: KEyyOjyKXPF
2017-09-12 13:57:31 -05:00
Shawn Huang f86d1e915d Bug 1399038 - Enable Storage API on beta/release. r=janv, baku 2017-09-13 21:46:36 +08:00
Andrea Marchesini 88cc64e1f7 Bug 1399466 - IPCBlobInputStream should not use STS to read from the remote Stream, but DOMFile thread instead, r=smaug 2017-09-13 15:37:49 +02:00
David Anderson 7723f663ea Bypass DecomposeIntoNoRepeatRects when possible. (bug 1396507 part 3, r=mattwoodrow)
--HG--
extra : rebase_source : 7e251cceb9b380b3fbe090090ded085a6b83df50
2017-09-13 09:30:26 -04:00
David Anderson 43bdfcc4d2 Clean up how textured regions are added to draw calls. (bug 1396507 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 671b6887d2772cd9045359f753ab0edb95a85698
2017-09-13 09:29:50 -04:00