Commit Graph

579710 Commits

Author SHA1 Message Date
Gijs Kruitbosch
cf5439d414 Bug 1433420 - fix scrollbox width selector for emulated flex to only apply to tabbrowser scrollbox, r=bgrins,dao
MozReview-Commit-ID: 6WPoJKZFCAD

--HG--
extra : rebase_source : b79162f5907bb79e07557012471ed551944913a5
2018-01-31 11:40:03 +00:00
Emilio Cobos Álvarez
609f5f84dc servo: Merge #19918 - style: Refactor font-feature-settings and font-variation-settings (from emilio:font-stuff-is-a-mess); r=nox
This fixes all known issues with serialization and parsing of these two
properties, and in particular calc handling and such:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1434692
  https://bugzilla.mozilla.org/show_bug.cgi?id=1434724

Also does a fair amount of cleanup and all that, which was needed, this code
was a mess.

There are further cleanups that can be done, like renaming the
font-variation-settings animation stuff.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2162eb0164b4a05f33482417996dedf3ff74825d
2018-02-01 06:45:20 -06:00
Anthony Ramine
3c001b1302 servo: Merge #19903 - Derive more Parse implementations (fixes #19827) (from servo:derive-all-the-things); r=emilio
Fixes #19827.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f93a22318ff5d7c3999c299dd9edb08daa132366
2018-02-01 05:52:08 -06:00
Amit Kumar
aa92a7d140 Bug 1431535 Increase timeout for new connection in test_disable_enable_new_connections from timeout 1.0 to 10.0 r=whimboo
MozReview-Commit-ID: KjRu5yMHxFO

--HG--
extra : rebase_source : 81e1dc5d5f6f603f093844e2a5e2c317559a07f1
2018-01-29 18:24:24 +05:30
Mathieu Leplatre
5dccbe9c9c Bug 1399864 - Send If-Modified-Since header when polling for blocklist.xml changes, r=florian
MozReview-Commit-ID: oAM9lDhtlt

--HG--
extra : rebase_source : 22b143db53aaafd155bac825bc74f41f2ae0ed70
2018-01-31 11:45:53 +00:00
Johann Hofmann
7b147bccc2 Bug 1422163 - Part 2 - Make a new test for clearing all site data with the new dialog. r=Gijs
MozReview-Commit-ID: 6Lt3hPZ1YiO

--HG--
rename : browser/components/preferences/in-content/tests/browser_siteData.js => browser/components/preferences/in-content/tests/browser_clearSiteData.js
extra : rebase_source : bc3d209693eaf605f17d03e28cadc833234c4e32
2018-01-10 12:25:04 +01:00
Johann Hofmann
e4a63e7dd2 Bug 1422163 - Part 1 - Make a new confirm dialog for clearing all site data that allows you to clear cache. r=Gijs
MozReview-Commit-ID: G9xQXlfT9Ay

--HG--
extra : rebase_source : 045092865b7ad533174090a05e0282e5c1b30396
2018-01-10 12:24:40 +01:00
Jan Steffens
62442dc97a Bug 1424648 - Provide proper face index to FreeType FontDescriptorOutput; r=lsalzman
OpenType font collections (*.ttc) contain multiple faces in a single file,
identified via index. When creating a font descriptor for a FreeType or
Fontconfig font, we mistakenly set the index to zero, always.

This bug became visible when layout and WebRender would disagree on the face in
use, rendering text with the metrics from the proper face but the outlines of
another. Unless, of course, the selected face was the first (or only) in the
font file.

MozReview-Commit-ID: 73qcPOD0HIr

--HG--
extra : rebase_source : b5784ff547bae99186d646dbb92b31660beb3970
2018-01-31 21:42:18 +01:00
Emilio Cobos Álvarez
9a18395a1d Bug 1434474: There's no need to rebuild font / counter styles / font feature values off a runnable. r=bholley
Everything that needs them up-to-date will call flush appropriately, there
should be no need to do it manually.

This way we coalesce all the stylist updates until the next style flush in the
best case, or until one of the consumers actually needs them.

MozReview-Commit-ID: BVsxXxhtcKL

--HG--
extra : rebase_source : a41c14689fdcdb30935e16bdb0e757e7140e88e7
2018-01-31 11:12:36 +01:00
Brindusan Cristian
1698ad0344 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-01 12:15:12 +02:00
Narcis Beleuzu
eeb7190f9a Merge inbound to mozilla-central. a=merge 2018-02-01 12:05:39 +02: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
Ionut Goldan
ab022664d9 Bug 1434587 - Configure absolute threshold for installer size alerts r=jmaher
MozReview-Commit-ID: Ehrh49ACBC1

--HG--
extra : rebase_source : fbd3fcdc72910840a056044776fd9569d7f08192
2018-01-31 15:31:37 +02:00
Delphine Lebédel
fb4aad3168 Bug 1430957 - [tl] Search engine setup for Firefox Mobile for Tagalog, r=flod
MozReview-Commit-ID: D4iqh0OT6WD

--HG--
extra : rebase_source : aa554dea772a29226df41e9c5cea46e2180addcc
2018-01-31 15:48:17 -08: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