Commit Graph

566339 Commits

Author SHA1 Message Date
Jeff Gilbert
62ca2c9829 Bug 1404536 - Use 3x4 matrices for GLBlitHelper's color matrix. - r=daoshengmu
MozReview-Commit-ID: Z5XTzmY3K7
2017-10-26 18:43:28 -07:00
Jeff Gilbert
1f167472bf Bug 1404536 - Use mat3s to transform tex coords in GLBlitHelper. - r=daoshengmu
MozReview-Commit-ID: 9LxsSJF1ggN
2017-10-26 18:43:24 -07:00
Ben Kelly
6ac7d7cc5b Bug 1411746 Make tests that wait for controller change also wait for SW activation before claim(). r=tt 2017-10-26 21:11:51 -04:00
Ryan VanderMeulen
337e94b88f Bug 1412153 - Update pdf.js to version 1.10.88. r=bdahl 2017-10-26 21:01:32 -04:00
Adam Gashlin
14515d0cb8 Bug 1401400 - Part 5: Test processing all threads for hang. r=gsvelto 2017-10-26 13:35:33 -07:00
J.C. Jones
de44bcbd15 Bug 1411683 - Add foreach and segment utility methods to nsNSSCertList r=keeler
This adds two methods to nsNSSCertList: ForEachCertificateInChain, and
SegmentCertificateChain. The ForEach method calls a supplied function for each
certificate in the chain, one by one.

That method is then used by the Segment method, which (assuming the chain is
ordered) splits it into Root, End Entity, and everything in-between as a list of
Intermediates.

This patch does _not_ try to add these methods to the IDL, as it's not
straightforward to me on how to handle the nsCOMPtr or std::function arguments.

These methods will be first used by Bug 1409259.

MozReview-Commit-ID: 8qjwF3juLTr

--HG--
extra : rebase_source : 39e2e8530ac23c6b96eb73f406bca32a59bcccf5
2017-10-25 13:37:50 -05:00
J.C. Jones
6594c2801b Bug 1411683 - Add "requirements.txt" for pycert.py r=keeler
There are specific versions needed for security/manager/ssl/tests/unit/pycert.py,
so let's give PIP some installation help:

0.1.7 for pyasn1 and 0.0.5 for pyasn1_modules

(recent versions break pycert/pykey/pycms)

MozReview-Commit-ID: Fk98UPd8bJo

--HG--
extra : rebase_source : 79436d4e99cda1dca438015835fdfa83a78c4dc7
2017-10-25 16:03:58 -05:00
Tom Ritter
cc4335e0ce Bug 1411743 Resolve warnings in tests for MinGW: Cast -1 to DWORD, and ignore a result explicitly r=jimm
MozReview-Commit-ID: 82r05lMszXd

--HG--
extra : rebase_source : 628cdfe9b3743f4b107bef2977cb0a833032915c
2017-10-25 15:40:35 -05:00
Jared Wein
6d23a3e261 Bug 1378366 - Change 'var' to 'const' and 'let' in fontBuilder.js. r=timdream
MozReview-Commit-ID: 3QYWdnVzgJs

--HG--
extra : rebase_source : b7d1dfd517eed88df35909c6e2f6785c60bb3301
2017-10-27 06:51:16 -04:00
Jared Wein
f953e19feb Bug 1378366 - If the default font is not found, use 'Default' as the name for an unchanged font preference. Previously this would show up as blank in this case. r=timdream
MozReview-Commit-ID: G1GEwWNtBMi

--HG--
extra : rebase_source : 9c972fd4f2108325fddb9413ad364dd94b99e832
2017-10-26 12:25:12 -04:00
Ray Lin
1959be8b2a Bug 1385788 - Move the ownership of preview value from PresState to HTMLSelectElement. r=bz
MozReview-Commit-ID: 9NC8h6SyWdh

--HG--
extra : rebase_source : 4facdc9cc36c779a2f87d9b3e3f6a3f51b3e9812
2017-10-25 11:57:57 +08:00
Sebastian Hengst
0cd2b5d266 Backed out 2 changesets (bug 1384753) for frequently failing toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_saveAs.html on Android. r=backout on a CLOSED TREE
Backed out changeset 2f0da700e651 (bug 1384753)
Backed out changeset 9801aade9511 (bug 1384753)

--HG--
rename : toolkit/components/reputationservice/ApplicationReputation.cpp => toolkit/components/downloads/ApplicationReputation.cpp
rename : toolkit/components/reputationservice/ApplicationReputation.h => toolkit/components/downloads/ApplicationReputation.h
rename : toolkit/components/reputationservice/chromium/LICENSE => toolkit/components/downloads/chromium/LICENSE
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.cc
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.h
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.proto => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.proto
rename : toolkit/components/reputationservice/nsIApplicationReputation.idl => toolkit/components/downloads/nsIApplicationReputation.idl
rename : toolkit/components/reputationservice/test/unit/.eslintrc.js => toolkit/components/downloads/test/unit/.eslintrc.js
rename : toolkit/components/reputationservice/test/unit/data/block_digest.chunk => toolkit/components/downloads/test/unit/data/block_digest.chunk
rename : toolkit/components/reputationservice/test/unit/data/digest.chunk => toolkit/components/downloads/test/unit/data/digest.chunk
rename : toolkit/components/reputationservice/test/unit/data/signed_win.exe => toolkit/components/downloads/test/unit/data/signed_win.exe
rename : toolkit/components/reputationservice/test/unit/head_download_manager.js => toolkit/components/downloads/test/unit/head_download_manager.js
rename : toolkit/components/reputationservice/test/unit/xpcshell.ini => toolkit/components/downloads/test/unit/xpcshell.ini
2017-10-27 18:36:30 +02:00
Kartikaya Gupta
a8f3618eb0 Bug 1410777 - Remove unnecessary code. r=nical
As per the TODO, a size change on an image is supported now, so there should be
no need to delete and re-create the image key when the window overlay image
changes size. And since the cleanup function is not invoked from anywhere else
it can also be removed.

MozReview-Commit-ID: JSmK5YmXjlX

--HG--
extra : rebase_source : 0078ccfed9a381c82bcb906a87bdf58d8e9c78e1
2017-10-26 14:17:19 -04:00
Kartikaya Gupta
b7e231bc45 Bug 1410777 - Force a full transaction for WR when the window overlay changes. r=mstange
The window buttons are drawn as part of the AddWindowOverlayWebRenderCommands
function which is invoked in the full-transaction codepath. It should be possible
to have the empty transaction codepath simply update the image (without building
a full WR display list) and do a recomposite. That would be more performant but
it requires some plumbing to build and ship across a IpcResourceUpdateQueue on
empty transactions.

MozReview-Commit-ID: 2Mrb0wELD6E

--HG--
extra : rebase_source : 9a94c32f94403050835bf3445176f4fe2c1579fa
2017-10-26 14:17:19 -04:00
Kartikaya Gupta
75717cb048 Bug 1410777 - Remove unused function and dead code left over from the layers-full WR days. r=mstange
This is functionally unrelated to the bug but I noticed it while fiddling with
the code, and the lines affected are kind of intertwined with the next patch so
I'm just doing the code removal as part of this bug.

MozReview-Commit-ID: CwmluhyCdbR

--HG--
extra : rebase_source : 0a86ba7299f63587b77c44fadc804e34ada5a474
2017-10-26 14:17:18 -04:00
Sylvestre Ledru
9ede85b90b servo: Merge #19039 - Support multi lines declarations in the parsing of the Fx header files (from sylvestre:master); r=emilio
For example, in dom/base/nsGkAtomList.h, we currently have:

`GK_ATOM(mouseWheel, "mouseWheel")  // For discrete wheel events (e.g. not OSX magic mouse)`

but if we change to
```
GK_ATOM(mouseWheel,
        "mouseWheel")  // For discrete wheel events (e.g. not OSX magic mouse)
```
The parser didn't handle the declaration

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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: d0213b21113dbb0abeb9e121d16985256167ec62

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6a54f6c056ab20a022640cf6345e4573f63a0e67
2017-10-27 10:16:03 -05:00
Thom Chiovoloni
4ee948935f Bug 1408176 - Use trace logs when logging PII in sync passwords engine r=kitcambridge
MozReview-Commit-ID: KueHgdTH02Z

--HG--
extra : rebase_source : a8f5814c5d9baf8e6c370c65da8472f9c7c6213e
2017-10-27 11:32:22 -04:00
Zibi Braniecki
c46d36dffb Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,mshal,Pike,ted
MozReview-Commit-ID: 80ldQPhNyi7

--HG--
extra : rebase_source : d6a1c6fcc36ba7fb49df25fa4c73f4aa564db613
2017-10-23 08:04:24 -07:00
Rob Wood
9c5217776e Bug 1410206 - Remove non-e10s support from talos; r=jmaher
MozReview-Commit-ID: 2iCM35XAXJM

--HG--
extra : rebase_source : 831728acfff84ee49297f906a20dad98ca054ca5
2017-10-26 15:16:40 -04:00
Daniel Holbert
680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Daniel Holbert
a7f82bed77 Bug 1412346 part 4: Update stale MPL license boilerplate on a few files in layout. r=jfkthame
We have a fair number of files that have a particular stale version of the MPL
boilerplate.  (It was probably originally correct, and then the official
boilerplate changed, and the stale MPL boilerplate continued to propagate via
copypasting from neighboring files into newly-added files.)

This patch updates this stale MPL text (and *only* the MPL text) to the latest
version, which can be found at https://www.mozilla.org/en-US/MPL/headers/ and
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

MozReview-Commit-ID: 8WeBb8b0uRo

--HG--
extra : rebase_source : 2c3aa8d07ba23714501c9e26ad03625aeab36a7a
2017-10-27 10:09:35 -07:00
Daniel Holbert
0c951f3583 Bug 1412346 part 3: Move a misplaced "IWYU pragma" comment down a few lines to match our convention and so mode line can be first. r=jfkthame
MozReview-Commit-ID: IEp7T0D1VUh

--HG--
extra : rebase_source : 913702636de3b379351dc13c8aab14222498c969
2017-10-27 10:08:27 -07:00
Daniel Holbert
600885496e Bug 1412346 part 2: Split mode line into its own C++ comment & own line, in a few files within layout. r=jfkthame
(This brings these lines into conformance with our standard style for mode
lines, and it's required in order for the modeline.py script to be able to
process these files.)

MozReview-Commit-ID: KqppMKF1jHv

--HG--
extra : rebase_source : 831b29574d66b66b8104f29b5b5c538241e95eba
2017-10-27 10:08:24 -07:00
Daniel Holbert
5581e7e5de Bug 1412346 part 1: Add standard mode line & MPL boilerplate to a few layout C++ files that are missing it entirely. r=jfkthame
Note that I'm intentionally *not* leaving a blank line between the license
block and the "IWYU pragma" line, in nsDisplayItemTypesList.h. This matches the
prevailing style that I found in other files that have "IWYU pragma" lines.

I copied the boilerplate comment directly from the Coding Style MDN page:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

MozReview-Commit-ID: ACoHkDFe8Z3

--HG--
extra : rebase_source : 374d28fea72cfb76043bde724120877b15092d01
2017-10-27 10:07:35 -07:00
btian
97ddc2ae3b Bug 1384661 - Part 4: Test for invalidation of cached child array. r=smaug
--HG--
extra : rebase_source : 51172d828c3e44ab89bc187ae0bf9cd3779ed3c2
2017-10-23 10:12:09 +08:00
btian
f8653ddd95 Bug 1384661 - Part 3: Invalidate cached child array when list of children changes. r=smaug
--HG--
extra : rebase_source : 6538742f178b2eb184fc9653b8322931f5a029c5
2017-10-23 15:04:14 +08:00
Markus Stange
015854956a Bug 1406715 - Use the RenderFrameParent's content rect as the bounds of the webrender iframe display item. r=kats
It was using the visible rect of the display item before, which can be larger
than the frame for various reasons. But the bounds we pass for the webrender
iframe item determines the iframe's position, so it needs to be informed by the
layout position of the frame, not by circumstances of the paint.

MozReview-Commit-ID: JSmFGLmAm0h

--HG--
extra : rebase_source : ba85778fe1fe509dd593afaac9bf7a4ff9952b49
2017-10-22 00:48:01 -04:00
Andi-Bogdan Postelnicu
6c8d00b5a4 Bug 1411584 - avoid using memset on a non-trivial type object. r=kip
MozReview-Commit-ID: CW1OChvGoE9

--HG--
extra : rebase_source : 0b13b004433dfa9e704d09871368e63aaebc7e91
2017-10-26 11:41:22 +03:00
JW Wang
48defae102 Bug 1411805 - Update() needs to read some prefs off the main thread. r=gerald
MediaPrefs is our friend.

MozReview-Commit-ID: 3lz5oqUR9R9

--HG--
extra : rebase_source : 31efaf14c29182b00451705b189772aac23acd34
extra : source : 7e9c68fd5fa241fc1d015b352935c2efd0daa1e8
2017-10-24 10:13:30 +08:00
Glenn Watson
68933a49dc servo: Merge #19032 - Update WR (improved blur filter, color emoji blending) (from glennw:update-wr-blur); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: cce9a24202f3040ea53f22e76861b42290fd7736

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 60f65dcfd4f25242d0913c5a7fd5046432ac784e
2017-10-26 21:11:32 -05:00
Kyle Machulis
df8270946f Bug 792059 - Add NeedsWindowsUndef extended attribute for constants; r=bz
When defining WebIDL constants in C++, we may need to undefine some
constant names that conflict with windows.h preprocessor defines.
Doing this in the binding header is far easier than tracking down the
include orders that may cause conflicts.

MozReview-Commit-ID: A0UoYezIQs5

--HG--
extra : rebase_source : d9100af2ccdb5c6e6468542ac68f74b2e4f9050c
2017-10-23 17:34:28 -07:00
Brad Werth
0a013b1963 Bug 1403690 Part 6: UIKit change nsLookAndFeel::NativeGetColor to use cached colors. r=ted
MozReview-Commit-ID: Jai4OLrNe6Y

--HG--
extra : rebase_source : b50937000424c6ffe30027d84106d43cf862af7c
2017-10-10 13:50:58 -07:00
Brad Werth
78c75cba79 Bug 1403690 Part 5: Android change pref and color caching to match approach used in gtk, macOS, and Windows. r=snorp
MozReview-Commit-ID: DoffjB9QMmH

--HG--
extra : rebase_source : affb42e8d97da20d6625463af1ca44ca2cd4b45e
2017-10-10 13:12:28 -07:00
Brad Werth
a2d5d923ea Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt
MozReview-Commit-ID: ERsI916e7zf

--HG--
extra : rebase_source : 970c4b7b482dd4bac9fed51e81f34c370671be3d
2017-10-10 14:12:47 -07:00
Kyle Machulis
b0922aec43 Bug 792059 - Codegen generation of WebIDL constants in C++; r=bz
Generate C++ const definitions for WebIDL interface members with
primitive types.

MozReview-Commit-ID: 4fLtteWZUWA

--HG--
extra : rebase_source : bf45427c6b0e4acfa32ed3431a3cf385972950a0
2017-10-09 19:59:36 -07:00
Mike Hommey
5289738fd4 Bug 1412168 - Replace CHUNK_ADDR2{BASE,OFFSET} with functions. r=njn
--HG--
extra : rebase_source : a7ded5dc74eabd802a30a9266b56cd3343fa5def
2017-10-26 10:34:37 +09:00
JW Wang
994024afbb Bug 1411504. P8 - return an error for RecreateChannel() when the decoder is shutting down. r=gerald
Otherwise Seek() will continue to call OpenChannel() and hit null-deref for
mChannel is null.

MozReview-Commit-ID: 4nhbF9lUOSR

--HG--
extra : rebase_source : cb58448ddd9e68314b07e6160354d7be9ea2809a
extra : source : 4d50e2d60a4f9a5ababaaa5100b170dd64c73dbc
2017-10-25 09:45:14 +08:00
JW Wang
8715833c55 Bug 1411504. P7 - don't change mChannelOffset in MediaCache::Update(). r=gerald
This is a fix to P3.

Since seek is performed asynchronously by CacheClientSeek(), it is possible
for OnStopRequest() to come before Seek(). Changing mChannelOffset will
cause MediaCacheStream::NotifyDataEnded() to update mStreamLength incorrectly.

mChannelOffset should only be changed in response to channel activities such
as NotifyDataStarted() and NotifyDataReceived().

However, if MediaCache::Update() calls CacheClientSeek() without updating
mChannelOffset, next Update() might make a wrong decision and call CacheClientSeek()
again which is bad. So we add a member mSeekTarget to track if there is a pending
seek on which the stream reading decisions will be made.

MozReview-Commit-ID: VWP0vdlEYM

--HG--
extra : rebase_source : ea0d85bcbcc5d14f1554ebff3d10981a5b17e18a
extra : source : 339b9323b583849ac88e39da19670f6b26772877
2017-10-25 09:37:58 +08:00
JW Wang
8bd1a52d6a Bug 1411504. P6 - acquire the lock for the entire scope of Update(). r=gerald
For it is not safe to access mStreams without the lock off the main thread.

MozReview-Commit-ID: DjVlhxgjVj5

--HG--
extra : rebase_source : b584fe59712430acd4528e6b6cd01ae86dc5761f
extra : source : d7fd550934bfe6967638e42acb076882611792dd
2017-10-24 09:04:06 +08:00
JW Wang
a1a46cc301 Bug 1411504. P5 - handle CacheClientNotifySuspendedStatusChanged/QueueSuspendedStatusUpdate off the main thread. r=gerald
MozReview-Commit-ID: 7Wc1tvd3S6x

--HG--
extra : rebase_source : ac9c1da29b4b395c75ced50efc3210f90add4710
extra : source : f4c901cfc7a7510f4ff161406e35d60229e86b98
2017-10-24 10:00:23 +08:00
JW Wang
1196be8421 Bug 1411504. P4 - handle CacheClientResume/CacheClientSuspend off the main thread. r=gerald
MozReview-Commit-ID: GRbcNo7KtKH

--HG--
extra : rebase_source : 030c8808c7702dc8792b22250e3d414154014615
extra : source : 60d50a2829cde9ff2879270f983e23092ca9f426
2017-10-24 09:38:34 +08:00
JW Wang
7a1b18c3ec Bug 1411504. P3 - handle CacheClientSeek off the main thread for we will run Update() off the main thread. r=gerald
MozReview-Commit-ID: 7eavgwkTXx0

--HG--
extra : rebase_source : 26c5c1675281612e2753549839acb73f735b7bc8
extra : source : 42efd7bd8db58c5c42cc266d90100a7ec250ac15
2017-10-24 09:23:12 +08:00
JW Wang
c4b8566c71 Bug 1411504. P2 - merge NotifyDataStarted() and SetTransportSeekable(). r=gerald
SetTransportSeekable() is always called after NotifyDataStarted().
This is slightly more efficient for we don't acquire the lock twice.

MozReview-Commit-ID: 9myolomriIQ

--HG--
extra : rebase_source : f33c3be978edacf45d8144af43f45c8ad5e7b53e
extra : source : 2cefaeb1adae7238b77d5e2d1287ae0d96d9f671
2017-10-23 17:00:57 +08:00
JW Wang
1efcf7c612 Bug 1411504. P1 - always require MediaCache to have a thread to run Update() loops. r=gerald
MozReview-Commit-ID: AYVWuN9CU55

--HG--
extra : rebase_source : 0149e330533b96426bdc7817586df8bd85ec1d03
extra : source : c191b4aa350672a4b3c614a2ea5494cdcca71faf
2017-10-23 16:51:17 +08:00
Emilio Cobos Álvarez
a46ee955ef servo: Merge #19027 - selectors: Be consistent about how we get a parent element for selector matching (from emilio:svg-use-bug); r=upsuper
This fixes bug 1412011.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7480db65e12b712853c9fa820671b81cd5f23dbe
2017-10-26 19:54:09 -05:00
Jed Davis
76b1bdf7de Bug 1408497 - Disallow inotify in sandboxed content processes. r=gcp
MozReview-Commit-ID: nKyIvMNQAt

--HG--
extra : rebase_source : 5347e8da745d6f4a0cd4e81e76fe6b94d94eac30
2017-10-25 13:35:47 -06:00
Jed Davis
5f10d1f416 Bug 1409900 - Handle sandboxed statfs() by replacing it with open+fstatfs. r=gcp
MozReview-Commit-ID: 4Q0XMWcxaAc

--HG--
extra : rebase_source : 6bd36df3155fc5cdda67720e313028a68e2f0901
2017-10-25 13:08:26 -06:00
Jed Davis
fce1017953 Bug 1409900 - Disallow quotactl in sandboxed content processes. r=gcp
MozReview-Commit-ID: 3svUgLLTZKL

--HG--
extra : rebase_source : 54623b48c65a1319905cab5aa520928681ec0023
2017-10-25 12:43:13 -06:00
Jed Davis
160e1dcfe0 Bug 1410191 - Correctly handle errors when using syscalls in sandbox trap handlers. r=gcp
MozReview-Commit-ID: JX81xpNBMIm

--HG--
extra : rebase_source : c7334f3e0b61b4fb4e0305cc6fc5d3173d08c032
2017-10-25 16:38:20 -06:00
Jed Davis
b8aa6b6de9 Bug 1410241 - Don't call destructors on objects we use in the SIGSYS handler. r=gcp
MozReview-Commit-ID: LAgORUSvDh9

--HG--
extra : rebase_source : b39836ebb7405202c60b075b30b48966ac644e71
2017-10-25 17:58:22 -06:00