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

579633 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 72cdddcc61 Bug 1434686 part 3. Use IgnoreErrors() outside of dom/. r=mystor
I left some IgnoredErrorResults for now where people warn on failure.  We could
consider adding a WarnOnError() thing or something.

MozReview-Commit-ID: L5ttZ9CGKg0
2018-02-01 14:21:14 -05:00
Boris Zbarsky bc7691a8db Bug 1434686 part 2. Use IgnoreErrors() in dom/bindings. r=mystor
MozReview-Commit-ID: G8vxR2s2qUJ
2018-02-01 14:21:14 -05:00
Boris Zbarsky f7f6285330 Bug 1434686 part 1. Introduce a mozilla::IgnoreErrors which can be used as a temporary to pass to an ErrorResult& arg when the error should be ignored. r=mystor
Once bug 1434689 is fixed, we can mark this thing as being required to be a temporary.

MozReview-Commit-ID: 7VX0XSYVOc4
2018-02-01 14:21:14 -05:00
Johan Lorenzo 275f452928 Bug 1421062 - fixup linter issue r=bustage
--HG--
extra : rebase_source : 8dbc855fa6a236421bb85400e151891bf943490c
2018-02-01 19:11:17 +01:00
Csoregi Natalia 486051b718 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-01 20:14:53 +02:00
Csoregi Natalia 5a9ee59e75 Merge inbound to mozilla-central. a=merge 2018-02-01 20:11:41 +02:00
Bas Schouten 103c64cfd4 Bug 1433790: Disable Direct2D on drivers/devices where OMTP causes crashes. r=milan
MozReview-Commit-ID: FmUh2zSnSdd
2018-02-01 19:02:11 +01:00
Johan Lorenzo 6d4bff6f65 Bug 1421062 - Make signing format dependent of scope-prefix r=tomprince
--HG--
extra : rebase_source : 11eef852140160b85ae30121afc53eb0d0927ccd
2018-02-01 18:21:46 +01:00
Andrea Marchesini 0c7e47f8eb Bug 1434934 - Remove dom.workers.enabled pref, r=bkelly 2018-02-01 18:34:08 +01:00
Jon Coppeard 66b53c4f36 Bug 1417380 - Make background sweeping sweep by zone and free empty arenas after each zone r=sfink 2018-02-01 17:18:39 +00:00
Jon Coppeard 043a35996a Bug 1417380 - Avoid calling string finalizers in cases where we know there's no work to do r=jandem 2018-02-01 17:16:24 +00:00
Nika Layzell 785a14270e Bug 1431867 - Part 2: Add move constructors and assignment operators to IPDL unions, r=mccr8
MozReview-Commit-ID: IQVODEfMGi9
2018-02-01 11:30:50 -05:00
Nika Layzell a1e4513e2a Bug 1431867 - Part 1: Remove some unnecessary complexity from generated IPDL structs, r=mccr8
MozReview-Commit-ID: HvX4ZF8t9Eg
2018-02-01 11:30:49 -05:00
Emilio Cobos Álvarez c55a15b2ef Bug 1423331: Tests. r=mats
MozReview-Commit-ID: Ay4tUwSH0Iq
2018-02-01 17:23:51 +01:00
Emilio Cobos Álvarez 5e4f6e89ec Bug 1423331: Prevent selection from leaking from blocks. r=mats
MozReview-Commit-ID: EFLXSQ8Zvze
2018-02-01 17:23:49 +01:00
Emilio Cobos Álvarez f85c8218d8 Bug 1434724: Fix computed value serialization of font-feature-settings. r=dholbert
This should make us agree with other browsers re the serialization of
`"vert" 0`, and with servo after https://github.com/servo/servo/pull/19918

Left try running, may need some test adjustments that I'll send for review if
they're non-trivial.

Differential Revision: https://phabricator.services.mozilla.com/D539

MozReview-Commit-ID: LgIPfn4lfrF
2018-02-01 15:48:46 +01:00
Marco Castelluccio a306e990c6 Bug 1434782 - Mark updater tests as passing on Windows coverage builds. r=jmaher
--HG--
extra : rebase_source : da2723bd6023c7281b34057e680fdfb3abb0ba20
2018-02-01 01:18:19 +01:00
Marco Castelluccio 4c242df620 Bug 1417497 - Enable signing for the Windows code coverage build. r=aki
--HG--
extra : rebase_source : 998f9f13cb820b1c6e21ae01e733c45774cdd8c4
2018-01-31 22:39:20 +01:00
Jonathan Kew c4f709831b Bug 1434697 - patch 2 - Implement variation font support in the Android (gfxFT2Fonts) backend. r=lsalzman 2018-01-31 17:07:49 +00:00
Jonathan Kew 8a9e00e955 Bug 1434697 - patch 1 - Cherry-pick commit 994eb2b34934bc5face9f83b2d3b12cf7a9262ab (fix for FreeType bug https://savannah.nongnu.org/bugs/index.php?52955) from upstream to our in-tree copy, pending a new FreeType release. r=lsalzman 2018-01-31 18:06:18 +00:00
Jonathan Kew 5b9b689254 Bug 1434699 - Don't use dlsym() to look up FreeType functions when building with MOZ_TREE_FREETYPE. r=lsalzman 2018-02-01 15:28:09 +00:00
Ryan Hunt 43118373ed Enable parallel painting on OSX and cap the amount of paint workers to 4. (bug 1430793, r=milan)
--HG--
extra : rebase_source : 9d5c853f84b160819540cc062fb84f4bea8fcb02
2018-01-25 14:12:39 -06:00
Gabriel Luong a87c1eea8d Bug 1434295 - Update CodeMirror to 5.34.0. r=bgrins 2018-02-01 10:19:28 -05:00
Nathan Froyd 38a5bb5c84 Bug 1412006 - part 3 - add an Android NDK repackaging task; r=dustin,nalexander; f=glandium
We'd like to install the NDK through the Android SDK manager.  But we
can't pin versions of the NDK with the SDK manager, and so Google
can silently upgrade the NDK on us.  Since that is undesirable, this is
the next best thing.

With the toolchain task in hand, we can make all the relevant tasks
depend on the toolchain task and remove the download of the NDK from
tooltool as well.
2018-02-01 09:59:23 -05:00
Nathan Froyd a65d0b5a21 Bug 1412006 - part 2 - add an --ndk-only option to mozboot/android.py; r=nalexander
This option will be useful for our NDK repackaging task.
2018-02-01 09:59:23 -05:00
Nathan Froyd 900fb3a463 Bug 1412006 - part 1 - have a single point of truth for the NDK version; r=nalexander
...at least in mozboot/android.py.
2018-02-01 09:59:23 -05:00
Jan de Mooij aac278c57c Bug 1434263 - Refactor JSString to have an IsLinear flag instead of IsFlat. r=luke 2018-02-01 15:29:29 +01:00
Gian-Carlo Pascutto ff91a17fb3 Bug 1386404 - Use the full tmpdir finding logic. r=jld
MozReview-Commit-ID: BDBslEZsctJ

--HG--
extra : rebase_source : 6814c3fc5183083b38bfe651f6c7e9d19965f785
extra : histedit_source : fb71245f51fefcc7c221f951316c16583239aefc%2C71d59492798b368e5d09f295f5e74bb32790c75b
2018-01-30 21:31:07 +01:00
Gian-Carlo Pascutto d959ea23b4 Bug 1386404 - Don't try to fetch the content process tmpdir if sandboxing is disabled. r=jld
MozReview-Commit-ID: zaWPy4rt1J

--HG--
extra : rebase_source : 2b4fcf210c986ae9c0f74619df3290e7cd9fbfd0
extra : histedit_source : e2ef0fa68e9a0d544e11ac4475cab4e6e97f74fc
2018-01-09 17:51:55 +01:00
James Graham 3ecd324bdc Bug 1431459 - Update rust_mozrunner to use a Builder API, r=ato
This is a major API revision to replace the Python-like API with
something more idiomatically Rust. In particular you now create a
FirefoxRunner object and then call start() and end up with a
FirefoxProcess. This is pretty similar to the Command builder in std.

MozReview-Commit-ID: DmEfIfKSukA

--HG--
extra : rebase_source : 30fba6b2d9584a8a4128b641747beda1d264f7c5
2017-12-19 18:39:10 +00:00
Narcis Beleuzu 3c03cb8435 Backed out 2 changesets (bug 1422163) for mochitest bc6 failure on /browser_clearSiteData.js. on a CLOSED TREE
Backed out changeset f8a8160484c8 (bug 1422163)
Backed out changeset 60cd03e9c5ac (bug 1422163)
2018-02-01 16:33:52 +02:00
Martin Stransky bdd7d89f6c Bug 1434574 - Build wayland with EGL OpenGL backend, r=glandium
MozReview-Commit-ID: LpGmUVOYqRI

--HG--
extra : rebase_source : f26825fedcf66b6bdb2bcb32093b1d4451fe60e7
2018-01-31 13:13:50 +01:00
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