Commit Graph

545990 Commits

Author SHA1 Message Date
Mike Hommey
78a584db8a Bug 1360772 - Make chunk_alloc callers handle zeroing when they need it. r=njn
The current code only allows chunk_calloc() callers to tell whether they
want zeroed memory or not, but some might be okay either way, assuming
they act accordingly afterwards. So move the zeroing out of chunk_alloc.
2017-07-11 13:44:39 +09:00
Mike Hommey
f26f174a0e Bug 1360772 - Store the chunk type in chunk recycling queue. r=njn 2017-07-11 13:44:21 +09:00
Mike Hommey
0380bc7b32 Bug 1360772 - Make pages_purge return whether the pages were purged. r=njn
Many functions in the mozjemalloc codebase like to return the opposite
boolean one would tend to expect. Pages_purge is one of them, and this
reverses the logic to match expectations.

Also make it static.
2017-07-11 13:11:55 +09:00
Makoto Kato
1b41d2ecf8 Bug 943276 - Remove unused nsIPlatfromCharset. r=emk
By bug 1261841, we don't use nsIPlatfromCharset on PluginTags.  So we should remove unused header.

MozReview-Commit-ID: 8Y4YwRzTJuk
2017-07-10 12:37:56 +09:00
Francois Marier
c6cd05d5eb Bug 1376036 - Run data and blob URIs through Application Reputation checks. r=gcp
blob URIs are sent through unfiltered and data URIs are hashed in
the same way as Chrome does.

Also, we used to bail on the first invalid URL we encountered. We now
keep going, checking the other URLs in the chain and eventually doing
the remote lookup.

--HG--
extra : rebase_source : a4ddaae973e931be4e10af46660ea1f7aed11887
2017-07-11 23:02:23 -04:00
Yoshi Huang
9ff74a50f4 Bug 1373513 - Part 3: Revert Bug 1363634. r=ckerschb
Revert what we did in Bug 1363634, from the spec, data:text/css should be same origin.
2017-07-12 11:00:34 +08:00
Yoshi Huang
41473dd86d Bug 1373513 - Part 2: Revert Bug 1364367. r=ckerschb
Revert what we did in Bug1364367, as data URI for -moz-binding should be
same origin.
2017-07-12 11:00:27 +08:00
Yoshi Huang
94d1d69dc1 Bug 1373513 - Part 1: data:image, data:css, and data:fonts should be same origin. r=smaug
For font-face
https://drafts.csswg.org/css-fonts-3/#font-fetching-requirements

/* data url's with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");

For image
https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data
Step 12
 Fetch request. Let this instance of the fetching algorithm be
associated with image request.

This will go to Fetch spec then.

For <link rel="stylesheet" href="data:text/css" ...>
https://html.spec.whatwg.org/multipage/semantics.html#obtaining-a-resource-from-a-link-element
Step 10
Fetch request.

This will also go to Fetch spec then.

[Fetch] specification,
https://fetch.spec.whatwg.org/#main-fetch, step 12,
request’s current url’s scheme is "data"
1. Set request’s response tainting to "basic".

And from
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#terminology-3
A response whose type is "basic", "cors", or "default" is
CORS-same-origin.

For subresource loading using data: URI, it should be treated as same
origin.
2017-07-12 11:00:13 +08:00
Yoshi Huang
71b8c7686e Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug
When we turn on the pref security.data_uri.unique_opaque_origin to make
data URI is unique origin, the following tests will fail because now
data document is treated as cross origin, so we replace data URIs with
seperate files, hence it will still in the same origin.
2017-07-12 10:35:54 +08:00
Bryce Van Dyk
1b35f7626e Bug 1378826 - Remove direct track listeners for video tracks if MediaRecorder is notified of their removal. r=jesup
--HG--
extra : rebase_source : cdd2f7070fab1ad1491d272819e0be524d9583fd
2017-07-11 09:14:28 +12:00
Mike Hommey
bf7a9e79f6 Bug 1379139 - Instead of not recycling huge chunks, zero them. r=njn
It turns out that not recycling some kinds of chunk can lead to the
recycle queue being starved in some scenarios. When that happens, we end
up mmap()ing new memory, but that turns out to be significantly slower.

So instead of not recycling huge chunks, we force-clean them, before
madvising so that the pages can still be reclaimed in case of memory
pressure.

--HG--
extra : rebase_source : 2dbd028daca92c9cd7c8079eb3dc5a0cfa06495b
2017-07-10 06:41:17 +09:00
Emilio Cobos Álvarez
b141be45cd Bug 1379696: Reftest. r=bholley
MozReview-Commit-ID: 2F4wlganOT

--HG--
extra : rebase_source : 9f03288f6b461034e84338819612a74fade4eade
2017-07-11 05:37:19 +02:00
Cameron McCormack
8bd2257ed4 Bug 1379864 - Followup fix. r=me 2017-07-11 11:33:34 +08:00
cku
8aeea96caf Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush. r=mattwoodrow
~AzureState is expensive, especially in GlyphBufferAzure::Flush, which is a high
fan-in function.

MozReview-Commit-ID: 4JfjMje0Kgs

--HG--
extra : rebase_source : bbc2f06871d9bde9130ddb95d053d16a3f2a091d
2017-07-09 00:49:24 +08:00
cku
e9501d8277 Bug 1379404 - Part 3. Prevent using gfxContext::Save/Restore in gfxTextRun. r=mattwoodrow
MozReview-Commit-ID: 5p7vAYHGhdy

--HG--
extra : rebase_source : 76a1d48d67670f43ef7339422340e21034b34a3c
2017-07-09 00:33:54 +08:00
cku
a647b78685 Bug 1379404 - Part 2. Prevent using gfxContext::Save/Restore in gfxFont. r=mattwoodrow
MozReview-Commit-ID: 7uIQDfK8gG2

--HG--
extra : rebase_source : 338a48b0c137d6b70101c5c72231d14a5100e183
2017-07-09 00:24:37 +08:00
cku
6f5fc6f921 Bug 1379404 - Part 1. Prevent using gfxContext::Save/Restore in nsTextFrame. r=mattwoodrow
MozReview-Commit-ID: Aob1J2pXNk1

--HG--
extra : rebase_source : 1e60f60167f54728ee5b604a8923fee7baab00f0
2017-07-08 23:52:00 +08:00
Cameron McCormack
d6733c3803 Bug 1379864 - stylo: Remove <style scoped> warning. r=xidorn
MozReview-Commit-ID: 6hUcdLAeaxs

--HG--
extra : rebase_source : c2a38ca757a1864b060fbbb112881dd9806ac46d
2017-07-11 10:35:54 +08:00
Emilio Cobos Álvarez
150dcfe2d6 servo: Merge #17658 - selectors: Avoid looking at MatchingMode if the selector isn't the topmost (from emilio:nesting-level); r=bholley
Also, switch the hover quirk to the same mechanism.

Bug: 1379696
Reviewed-By: bholley
MozReview-Commit-ID: KrmNqNyASf6
Source-Repo: https://github.com/servo/servo
Source-Revision: 8fa2a262dc8f2dcab884aead38439ba8756518dc

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c68725c4b5f088cc4ae280059486b62f6b02c43e
2017-07-10 19:16:35 -07:00
Cameron McCormack
81de43d854 Bug 1376406 - Make ::before and ::after the only pseudos that do parent display-based style fixup. r=dbaron
MozReview-Commit-ID: Hxq8v1NSYvc

--HG--
extra : rebase_source : c5998f82446f078dcead1c6aa49d6b38296929ce
2017-07-11 10:38:23 +08:00
Kartikaya Gupta
e65dbb6e13 Bug 1378355 - Update GetMaxDisplayPortSize to respect the gfx.max-texture-size pref. r=tnikkel
MozReview-Commit-ID: D6wF4QrnGSw

--HG--
extra : rebase_source : 355cc3170a45444c29683b054769326c70672391
2017-07-10 10:15:25 -04:00
Kartikaya Gupta
aa30c63e60 Bug 1378355 - Move the safe-maximum displayport fallback code into the GetMaxDisplayPortSize function. r=tnikkel
MozReview-Commit-ID: LdHQuuunl3E

--HG--
extra : rebase_source : 2db1703245694539b924d8330ddc7bedc1a88216
2017-07-10 10:15:24 -04:00
Kartikaya Gupta
78bfd54626 Bug 1378355 - Extract gfxPlatform wrappers for MaxAllocSize and MaxTextureSize. r=bas
This allows us to reuse the minimum bound guards on the pref values in other
places that want to use the prefs.

MozReview-Commit-ID: 7XKuM5u1GB8

--HG--
extra : rebase_source : 9cf85c7cbe2e8511ad2db59e7bf7ba6e8db79883
2017-07-10 10:15:24 -04:00
Kartikaya Gupta
1fd7214235 Bug 1378355 - Remove unused function. r=bas
MozReview-Commit-ID: H051LFrFMgD

--HG--
extra : rebase_source : 2dca4cfb41a94de9e8fce847b985c9193eadc094
2017-07-10 10:15:23 -04:00
Shih-Chiang Chien
3ef9e80ef0 Bug 1379325 - only send DocumentChannelCleanup message if HTTPChannelChild is still opened. r=mayhemer
PHttpChannel might already be closed while processing OnStopRequestEvent. Need to check mIPCOpen flag
before sending DocumentChannelCleanup message.

MozReview-Commit-ID: 1EHgAAaRNKN

--HG--
extra : rebase_source : 1d9062c3af7379b07673e8a69fdd259cbf1281a4
2017-07-08 12:33:28 +08:00
Timothy Guan-tin Chien
405d342580 Bug 1378136 - Redirect user to the general pane for search settings on old preferences page. r=jaws
MozReview-Commit-ID: Akb4yDPhWTF

--HG--
extra : rebase_source : a3b0341c9996c9480023c294a1383ace7b531532
2017-07-10 17:01:41 +08:00
Alan Jeffrey
f26be9e89a servo: Merge #17364 - Implement paint worklet properties (from asajeffrey:script-paint-worklets-properties); r=jdm
<!-- Please describe your changes on the following line: -->

This is the final PR to get basic paint worklet support. It adds support for paint worklet properties (https://drafts.css-houdini.org/css-paint-api/#paint-definition-input-properties). When a paint worklet is registered, it specifies a list of CSS properties, and is provided with their computed values when it is invoked.

This is a dependent PR:
* "Implemented paint worklets invoking worklet scripts" is #17239.
* "Implemented paint worklets rendering contexts" is #17326.

There should be tests added for this, hopefully the existing wpt houdini tests.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16839
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2d52084aebd9989aa6d2f6e6c2edab7a99d90017
2017-07-11 16:24:18 -07:00
Sebastian Hengst
25032dc7ed Backed out changeset 3977404931e5 for failing mochitest layout/style/test/test_value_computation.html. r=backout 2017-07-12 00:11:58 +02:00
Sebastian Hengst
534b714ff2 Backed out changeset a5f2d33a9de3 (bug 1355380) for failing mochitest layout/style/test/test_value_computation.html. r=backout 2017-07-12 00:10:32 +02:00
Sebastian Hengst
313b7a8917 Backed out changeset f2836ff575eb (bug 1355380) 2017-07-12 00:09:56 +02:00
Rob Thijssen
873efb9b5f Bug 1379603 - enable windows hardware tests on try; r=dustin
MozReview-Commit-ID: 2yXsMEFOa00

--HG--
extra : rebase_source : 6deb0bb05232750c88ddab0de743973f4f3a4e02
2017-07-10 13:15:33 +03:00
gasolin
345a2f81da Bug 1375775 - test cases for reusable tourset;r=mossop
MozReview-Commit-ID: IlxgYRuFpCc

--HG--
extra : rebase_source : 5fb443a6181e909e6e7dad276e0e5b60ba983936
2017-07-07 11:52:33 +08:00
Bob Owen
8cde474060 Bug 1365601 Part 1: Send number of pages on printPreviewUpdate event instead of requesting from parent. r=mconley
This also makes sure that we don't call nsIWebBrowserPrint::PrintPreview while we're still in a previous call.
2017-07-05 18:12:36 +01:00
Carsten "Tomcat" Book
c8613bdc02 Backed out changeset aea5888a82ed (bug 1371890) for xpcshell failures
--HG--
extra : rebase_source : 2e813e1ab07dd18c3b26dee1f3827b4d6c834350
2017-07-11 08:25:28 +02:00
Nicholas Nethercote
4325ae218a Bug 1371397 - Use FramePointerStackWalk() in DMD on Mac. r=erahm.
This avoids MozStackWalk(), which has become unusably slow on Mac due to
changes in libunwind, and gets us back to decent speed.

The code for getting the frame pointer and stack end was copied from the Gecko
Profiler, which also uses FramePointerStackWalk() on Mac.

--HG--
extra : rebase_source : 58c32c2df8716c7c8123a4a8fb692182d066caca
2017-07-07 07:08:08 +10:00
Xidorn Quan
e324732c9f Bug 1324647 - Upgrade back "Need to flush before destroying!" assertion.
MozReview-Commit-ID: LATviqCtWjk

--HG--
extra : source : 13e67cdf9f65359d2e19b2e767fbc5861f363158
2017-07-11 14:46:16 +10:00
Bevis Tseng
f051ae4a45 Bug 1341540 - Label runnables in dom/html/HTMLMediaElement.cpp. r=jwwang
MozReview-Commit-ID: 7i0MhGWoNPb

--HG--
extra : rebase_source : 577a231ac5ed3658311eacd19cd3fe912fdee0b0
2017-07-07 10:36:13 +08:00
David Anderson
77b5b91a68 Rebuild configuration info when a device reset occurs. (bug 1377866 part 4, r=kechen) 2017-07-10 19:30:58 -07:00
David Anderson
dd94534a4f Disable Advanced Layers when the sanity test fails. (bug 1377866 part 3, r=mchang) 2017-07-10 19:30:52 -07:00
Perry Jiang
211a8becfd Bug 1377251 - Expose TIME_TO_NON_BLANK_PAINT as Performance Entry behind pref. r=qDot 2017-07-05 16:51:50 -07:00
David Anderson
1b64928d17 Don't draw diagnostic overlays during drawWindow. (bug 1379828, r=mattwoodrow) 2017-07-10 19:09:34 -07:00
Wes Kocher
868f84f2d8 Merge m-c to inbound, a=merge 2017-07-10 18:48:52 -07:00
Wes Kocher
8e3be4c671 Merge inbound to central, a=merge 2017-07-10 18:43:02 -07:00
Michal Novotny
7dd0c75b98 Bug 1371890 - Normalize time returned by ParseFTPList. r=mcmanus 2017-07-10 21:34:11 -04:00
Kris Maglione
3d2f150743 Bug 1370752: Part 3 - Use structured clone rather than JSON to sanitize storage values. r=aswan
This gives us performance wins in sevaral areas:

- Creating a structured clone blob of storage data directly from the source
  compartment allows us to avoid X-ray and JSON serialization overhead when
  storing new values.

- Storing the intermediate StructuredCloneBlob, rather than JSON values,
  in-memory saves us additional JSON and structured clone overhead when
  passing the values to listeners and API callers, and saves us a fair amount
  of memory to boot.

- Serializing storage values before sending them over a message manager allows
  us to deserialize them directly into an extension scope on the other side,
  saving us a lot of additional structured clone overhead and intermediate
  garbage generation.

- Using JSONFile.jsm for storage lets us consolidate multiple storage file
  write operations, rather than performing a separate JSON serialization for
  each individual storage write.

- Additionally, this paves the way for us to transition to IndexedDB as a
  storage backend, with full support for arbitrary structured-clone-compatible
  data structures.

MozReview-Commit-ID: JiRE7EFMYxn

--HG--
extra : rebase_source : caed13b099e7cb05de8d516761e32298a7a81ee5
extra : source : 42d3c1599af53b047d7ccd6b1c92ab08975284d7
2017-07-10 18:24:11 -07:00
Geoff Brown
82199df876 Bug 1314039 - Fix incorrect skip-if for browser_thumbnails_capture.js; r=me,test-only 2017-07-10 17:06:17 -06:00
Boris Zbarsky
d226db3321 Bug 1371259 followup. Fix rooting analysis hazards in UnwrapObjectInternal. r=peterv pending 2017-07-10 18:04:49 -04:00
Wes Kocher
63da779a2d Merge autoland to central, a=merge
MozReview-Commit-ID: Kci93WdqUIO
2017-07-10 14:54:06 -07:00
Wes Kocher
8185294d28 Backed out 2 changesets (bug 1370752) for failures in test_ext_storage.js a=backout
Backed out changeset 42d3c1599af5 (bug 1370752)
Backed out changeset 9c4bf59ab966 (bug 1370752)

MozReview-Commit-ID: 4M6DsJvJ6RI
2017-07-10 14:34:56 -07:00
ffxbld
5dadcbe55b No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-10 09:13:32 -07:00