Commit Graph

579581 Commits

Author SHA1 Message Date
Narcis Beleuzu
417fe29a5b Backed out changeset a4458bb78bb4 (bug 1432479) due to wrong bug number
--HG--
extra : rebase_source : 5bd7265a1823c6f8dc7d5e1ed6d5d95a9c5b6ae9
2018-02-01 14:39:58 +02:00
Jon Coppeard
afbde53835 Bug 1434622 - Use a separate lock to protect the shared script data table r=sfink 2018-02-01 12:45:43 +00:00
sotaro
ae34263b07 Bug 1419293 - Create SwapChain with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL if possible in ANGLE r=jgilbert 2018-02-01 21:39:31 +09:00
Franziskus Kiefer
7c3c6a5ff9 Bug 1258647 - Content-Signature telemetry, r=keeler,francois
Differential Revision: https://phabricator.services.mozilla.com/D427

--HG--
extra : rebase_source : fb7f05afdc9b718a804190b1f4718ec2ae2d93cb
2018-01-22 15:28:32 +01:00
Dragan Mladjenovic
1fc86397cb Bug 1434835 : Port changes from Bug 1432479; r=nbp. 2018-02-01 00:00:00 +02:00
yuyin
5504a4c66c Bug 1432479 - MIPS64: Use XOR for Value unboxing on 64-bit to mitigate certain Spectre attacks. r=draganmladjenovic 2018-01-31 17:32:00 +02:00
Chia-Hung Duan
e86055999a Bug 1417388 - Simplify incremental sweeping on the main thread r=jonco 2017-12-07 17:31:28 +08:00
Brindusan Cristian
7b43ef6086 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-01 12:19:39 +02:00
Narcis Beleuzu
eeb7190f9a Merge inbound to mozilla-central. a=merge 2018-02-01 12:05:39 +02:00
sotaro
a5acc968ad Bug 1434524 - Add more check to D3D11Checks::DoesNV12Work() r=mattwoodrow 2018-02-01 18:00:09 +09:00
Jon Coppeard
e3171b2eb5 Bug 1434224 - Remove excess helper threads now ion compilations no longer pause each other r=lth r=luke 2018-02-01 08:26:24 +00:00
Nicholas Nethercote
a9860dbcb8 Bug 1423840 - Temporarily disable a small part of the prefs parser gtest due to failures on Windows. r=me 2018-02-01 19:14:30 +11:00
Nicholas Nethercote
eeb14c6c69 Bug 1423840 (attempt 2) - Rewrite the prefs parser. r=glandium,Manishearth
The prefs parser has two significant problems.

- It doesn't separate tokenizing from parsing.

- It is implemented as a loop around a big switch on a "current state"
  variable.

As a result, it is hard to understand and modify, slower than it could be, and
in obscure cases (involving comments and whitespace) it fails to parse what
should be valid input.

This patch replaces it with a recursive descent parser (albeit one without any
recursion!) that has separate tokenization. The new parser is easier to
understand and modify, more correct, and has better error messages. It doesn't
do error recovery, but that would be much easier to add than in the old parser.

The new parser also runs about 1.9x faster than the existing parser. (As
measured by parsing greprefs.js's contents from memory 1000 times in
succession, omitting the prefs hash table construction. If the table
construction is included, it's about 1.6x faster.)

The new parser is slightly stricter than the old parser in a few ways.

- Disconcertingly, the old parser allowed arbitrary junk between prefs
  (including at the start and end of the prefs file) so long as that junk
  didn't include any of the following chars: '/', '#', 'u', 's', 'p'. I.e.
  lines like these:

    !foo@bar&pref("prefname", true);
    ticky_pref("prefname", true);       // missing 's' at start
    User_pref("prefname", true);        // should be 'u' at start

  would all be treated the same as this:

    pref("prefname", true);

  The new parser disallows such junk because it isn't necessary and seems like
  an unintentional botch by the old parser.

- The old parser allowed character 0x1a (SUB) between tokens and treated it
  like '\n'.

  The new parser does not allow this character. SUB was used to indicate
  end-of-file (*not* end-of-line) in some old operating systems such as MS-DOS,
  but this doesn't seem necessary today.

- The old parser tolerated (with a warning) invalid escape sequences within
  string literals -- such as "\q" (not a valid escape) and "\x1" and "\u12"
  (both of which have insufficient hex digits) -- accepting them literally.

  The new parser does not tolerate invalid escape sequences because it doesn't
  seem necessary and would complicate things.

- The old parser tolerated character 0x00 (NUL) within string literals; this is
  dangerous because C++ code that manipulates string values with embedded NULs
  will almost certainly consider those chars as end-of-string markers.

  The new parser treats NUL chars as end-of-file, to avoid this danger and
  because it facilitates a significant optimization (described within the
  code).

- The old parser allowed integer literals to overflow, silently wrapping them.

  The new parser treats integer overflow as a parse error. This seems better,
  and it caught existing overflows of places.database.lastMaintenance, in
  testing/profiles/prefs_general.js (bug 1424030) and
  testing/talos/talos/config.py (bug 1434813).

The first of these changes meant that a couple of existing prefs with ";;" at
the end had to be changed (done in the preceding patch).

The minor increase in strictness shouldn't be a problem for default pref files
such as greprefs.js within the application (which we can modify), nor for
app-written prefs files such as prefs.js. It could affect user-written prefs
files such as user.js; the experience above suggests that integer overflow and
";;" are the most likely problems in practice. In my opinion, the risk here is
acceptable.

The new parser also does a better job of tracking line numbers because it (a)
treats "\r\n" sequences as a single end-of-line marker, and (a) pays attention
to end-of-line sequences within string literals.

Finally, the patch adds thorough tests of both valid and invalid syntax.

MozReview-Commit-ID: JD3beOQl4AJ
2018-02-01 16:21:47 +11:00
Nicholas Nethercote
88664febda Bug 1423840 (attempt 2) - Remove extraneous semicolons in all.js. r=glandium
MozReview-Commit-ID: 2BMfVOoEtQ2
2018-02-01 15:44:29 +11:00
Nicholas Nethercote
7b9969bae5 Bug 1434813 - Fix integer overflow of places.database.lastMaintenance in testing/profiles/prefs_general.js. r=glandium.
Bug 1383896 added this constant to testing/talos/talos/config.py:

> FAR_IN_FUTURE = 7258114800

which is used as the value for the "places.database.lastMaintenance" pref.
(7258114800 seconds after 1970 is the start of the year 2200.)

 libpref stores integers prefs as int32_t and the current parser doesn't detect
overflow. So this overflows to -1331819792. (I detected this with the new prefs
parser from bug 1423840, which does detect integer overflow.) As a result the
condition testing this pref in
toolkit/components/places/PlacesCategoriesStarter.js ends up always succeeding
in tests, which is the exact opposite of what was intended. This patch changes
it to 2147483647 (the year 2038), the maximum int32_t value.

(Note: this is much the same as bug 1424030, which was fixed recently.)

MozReview-Commit-ID: AQw4b8tmE9u
2018-02-01 15:40:32 +11:00
Liam Hodgins
19eedbc5e6 Bug 1403334 - Make sure the property value overflow is indented. r=gl 2018-01-31 22:50:51 -05:00
Tom Tromey
3b8e63c66a Bug 1255369 - fix getCSSValuesForProperty for line-style-type; r=xidorn
This fixes InspectorUtils::getCSSValuesForProperty to return the
correct values for line-style-type.

MozReview-Commit-ID: 72Tes6y15j8

--HG--
extra : rebase_source : fa893f59cafc433f554353cf42d0f9495cdd5b23
2018-01-31 08:50:27 -07:00
Mike Hommey
355ab37a8f Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : d1fe8a299203a29c0906ff99054c326acd135000
2018-02-01 10:40:59 +09:00
Adrian Wielgosik
639df9d521 Bug 1353329 - Remove remains of SecureElement API. r=bz
MozReview-Commit-ID: 5D1VriUJ8UP

--HG--
extra : rebase_source : 894a6e151142726e9cc9f6d417bec36831aa1129
2018-01-31 22:07:30 +01:00
Servo VCS Sync
47d56b8748 No bug - Revendor rust dependencies 2018-02-01 04:40:14 +00:00
Emilio Cobos Álvarez
9cd350ab4e servo: Merge #19912 - style: Temporarily use OrderMap on Gecko (from emilio:ordermap); r=Manishearth
This will allow us to discard std hash map as a source of crashes.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3b5a6c2c7cd694eeeebc9c068a0add45545f0642
2018-01-31 21:33:36 -06:00
Kit Cambridge
5d06c194b0 Bug 1434800 - Don't treat children moved out of a deleted synced folder as orphans. r=markh
MozReview-Commit-ID: GAQMYNCvyDj

--HG--
extra : rebase_source : ffe065a6489400b30407bd75eddbec033eaaeccb
2018-01-31 18:58:27 -08:00
Cameron McCormack
2cea1ba7c1 Bug 1430014 - Part 6: #ifdef out a bit more animation-related code. r=hiro
MozReview-Commit-ID: B9TaVJFak26

--HG--
extra : source : 820eed2682b6a6cda892d091ee037ff1eeacd69f
2018-02-01 15:04:04 +11:00
Cameron McCormack
d02e54b79b Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl

--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Cameron McCormack
cc7db5c40c Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
MozReview-Commit-ID: 1FZ9VzjcPzN

--HG--
extra : source : de22d220635f8c059834b76f769d5215ab1a8b5b
2018-02-01 15:04:04 +11:00
Cameron McCormack
98b3e38412 Bug 1430014 - Part 3: Skip failing/unnecessary tests when the old style system is not present. r=xidorn
MozReview-Commit-ID: 9xuJXkI4W7E

--HG--
extra : source : 82af008f38f4316357c323c9c5e2ea1fc4ee8e80
2018-02-01 15:04:04 +11:00
Cameron McCormack
eab4d90b3d Bug 1430014 - Part 2: Adjust test assertion expectations. r=xidorn
We no longer assert here when stylo-chrome is enabled.

MozReview-Commit-ID: CbVItBV2Q5V

--HG--
extra : source : 62d4361658b91c2825fae256913016495a9289f6
2018-02-01 15:04:04 +11:00
Cameron McCormack
24cbcff6fa Bug 1430014 - Part 1: Add --enable-stylo=only configure option and MOZ_OLD_STYLE define. r=glandium,xidorn
MozReview-Commit-ID: FsypJFV1sxS

--HG--
extra : source : 3043d52e91a1768dddf603a8a6fd992a8fc89ebf
2018-02-01 15:04:04 +11:00
Alexis Beingessner
291824030e Bug 1432309 - ensure the GL context is current when updating wr. r=sotaro
To avoid future issues, this is done by combining the Render and Update methods
into a single call. As a minor side-effect, timing in the parent method now
includes the time to run update.

MozReview-Commit-ID: GJ0l049eFRj

--HG--
extra : rebase_source : f9b4ee6f34bc45d87b3df40e5a25f3bfb2ec8068
2018-01-31 21:34:43 -05:00
Jonathan Kingston
3cbbdda385 Bug 1434626 - Enable degraded padlock for HTTP pages in Private Browsing mode for Nightly build only r=johannh
MozReview-Commit-ID: G3F39BB2jhO

--HG--
extra : rebase_source : f3a3757942d3e3860012706210a9b362e6b83507
2018-01-31 15:45:52 +00:00
Chris Pearce
b37bd17a56 Bug 1433344 - Convert encrypted AAC to ADTS before decryption. r=jya
MozReview-Commit-ID: IGmBfJtYsCi

--HG--
extra : rebase_source : d066644e848f8fb379607d0168960132881d7df8
2018-01-30 14:39:09 +13:00
Cosmin Sabou
97ef7010af Backed out 7 changesets (bug 1434429) for build bustages on regress-618572.js and TokenStream.h on a CLOSED TREE
Backed out changeset 1e0faca62e86 (bug 1434429)
Backed out changeset b190c5a3dab2 (bug 1434429)
Backed out changeset 95e07a79f4b2 (bug 1434429)
Backed out changeset 21c79fd76133 (bug 1434429)
Backed out changeset 45c9102825ab (bug 1434429)
Backed out changeset 112eaf00632c (bug 1434429)
Backed out changeset 024f70aeba70 (bug 1434429)
2018-02-01 03:31:45 +02:00
Cosmin Sabou
b35f58da34 Backed out changeset 1fea6030657b (bug 1433344) for mda failures on EMEDecoderModule.cpp on a CLOSED TREE 2018-02-01 03:05:53 +02:00
Cosmin Sabou
9efa17a39e Backed out 2 changesets (bug 1423840) for mass Talos failures due to forbidden connections. CLOSED TREE
Backed out changeset e8b798a5205a (bug 1423840)
Backed out changeset e500592d3551 (bug 1423840)
2018-02-01 03:05:08 +02:00
Jeff Walden
97ce3ebeb2 Bug 1434429 - Comment out an assertion whose condition is disliked by certain versions of gcc for entirely mysterious reasons, to be debugged later. r=bustage in a still-CLOSED TREE 2018-01-31 16:53:44 -08:00
Jeff Walden
cc18bb0ca7 Bug 1434429 - Followup bustage fix (?) for gcc (and maybe other?) compiler bustage. Worked in recent clang... r=boogstage in a CLOSED TREE 2018-01-31 16:22:24 -08:00
Botond Ballo
32bac742dd Bug 1434747 - Add a reftest for async-scrolling of fixed content inside a CSS filter. r=kats
The test only passes with WebRender enabled. Passing without WebRender
would require implementing CSS filters in the Gecko compositor.

MozReview-Commit-ID: HPgxxuj5iJl

--HG--
extra : rebase_source : 8afbc717d8e086f7a407eb5f0090f30d62d9638b
2018-01-29 18:23:14 -05:00
Emilio Cobos Álvarez
3935d1f0d4 Bug 1207734: followup: Temporarily avoid some tests for this bug. r=me
On a CLOSED TREE, since Android is barfing at the prefs key in the manifest:

  runByManifest mode must be enabled to set the `prefs` key

MozReview-Commit-ID: 2oK3CG69s9E
2018-02-01 04:06:45 +01:00
Jeff Walden
b3ac36a8a8 Bug 1434429 - Implement TokenStreamChars::matchMultiUnitCodePoint as a better nailing-down of behavior when processing a multi-code unit code point. r=arai
--HG--
extra : rebase_source : a3de66ce2abb1b5399b725961e67771ef374a58d
2018-01-18 11:34:27 -08:00
Jeff Walden
fb577bbcc0 Bug 1434429 - Implement a TokenStreamChars::ungetCodePointIgnoreEOL and use it to report errors at precise locations, rather than blindly at the beginning of the token (which happens to be the same thing, just not nearly as clear about it). r=arai
--HG--
extra : rebase_source : 2402cd48df9d1a554756b1242a706d103f519901
2018-01-18 11:34:27 -08:00
Jeff Walden
806b664104 Bug 1434429 - Move TokenStreamSpecific::ungetCharIgnoreEOL into TokenStreamCharsBase. r=arai
--HG--
extra : rebase_source : 15c6b209b8a8509ed957f6b74ee0139714ecb68a
2018-01-18 11:34:27 -08:00
Jeff Walden
de083b3ca7 Bug 1434429 - Move TokenStreamSpecific::ungetChar into a new GeneralTokenStreamChars<CharT, AnyCharsAccess> inserted between TokenStreamCharsBase<CharT> and TokenStreamChars<CharT, AnyCharsAccess> in the token stream inheritance hierarchy. r=arai
--HG--
extra : rebase_source : a5ed08ccd92c29476b1219f5966aa3d63de539d2
2018-01-18 11:34:27 -08:00
Jeff Walden
9771f077e9 Bug 1434429 - Use MakeScopeExit to handle resetting userbuf offset in TokenStreamSpecific::putIdentInTokenbuf. r=arai
--HG--
extra : rebase_source : 16e63b41fc4ed043ea6328aad03596f2344f8e36
2018-01-29 12:08:05 -08:00
David Parks
1dd54ad783 Bug 1433856 - Block PluginModuleChromeParent::CleanupFromTimeout from recursing. r=jimm
CleanupFromTimeout is (transitively) recursing in calls to Close(), as that now leads to shutting down the plugin broker thread and CleanupFromTimeout was being rerun since nsThread::Shutdown runs tasks..
2018-01-29 18:15:18 -08:00
David Parks
c6dc5f3406 Bug 1433855 - Make sure plugin function broker's PostToDispatchThread is Waiting before Notifying it. r=jimm
The Monitor's condition variable could be notified before the calling thread had begun to Wait for it.  This caused the Notify to be missed, leading to hangs.  By grabbing the Monitor in PostToDispatchHelper, we know Wait has been called because, otherwise, the calling thread would still hold the Monitor.
2018-01-30 17:32:27 -08:00
Jed Davis
8b8051496a Bug 1213998 - Apply chroot() to sandboxed content processes on Linux. r=gcp
MozReview-Commit-ID: DGepECmw3pq

--HG--
extra : rebase_source : c8fe74c8fa8ea91379499f1cbfd5424dc5e9be2c
2018-01-16 19:10:51 -07:00
Brian Birtles
60a2ffc2a6 Bug 1207734 - Part 9.i. Replace tabs with spaces in bug_1112014.html. r=dholbert
MozReview-Commit-ID: 8k9qD9A3BS0

--HG--
extra : rebase_source : 9b5b22a495e111a1f9f3057deb19813ffb8dbdc1
extra : source : 7047a154549089c85acedc75cd764d110bf95776
2018-01-30 14:02:32 -05:00
cku
bed94c4056 Bug 1207734 - Part 9.h. Update animation wpt for individual transform. r=birtles
MozReview-Commit-ID: EoKXT7CcYLA

--HG--
extra : rebase_source : 29606f6bf5a2641f99ad8d43414f54141c9bad5b
extra : source : 07266c831c84f123087823e518f52b281a697116
2018-01-05 15:41:20 +08:00
cku
396f818e80 Bug 1207734 - Part 9.g. Implement testAnimationSampleRotate3d. r=birtles
testAnimationSamples is not enough for comparing the computed value of rotate
property so we need this new function.

MozReview-Commit-ID: J77e89BbjLx

--HG--
extra : rebase_source : 053f8bd5ae99d9f70e797508ca8761c3ff4083b3
extra : source : 6e8b1c53fe95e0ea21c2e93fee54288356f7945b
2018-01-15 14:18:59 +08:00
cku
a3c66ee73c Bug 1207734 - Part 9.f. Add specified value serialization test cases for individual transform. r=emilio
MozReview-Commit-ID: 56DTIuTXs95

--HG--
extra : rebase_source : 81d01af0ec3d2e05e24e1f583e4f539a177b9fb0
extra : source : 4b19a5c39c37863ad0682bf2efe7aaa80dc6f484
2018-01-10 15:04:00 +08:00