Commit Graph

579868 Commits

Author SHA1 Message Date
Michael Froman
2cc9c3f7f7 Bug 1414171 - pt 1 - Add componentId field to RTCIceCandidatePairStats. r=smaug
componentId is a moz only field that will allow sorting by componentId
on the about:webrtc page.

MozReview-Commit-ID: HXEQl3JHmO3

--HG--
extra : rebase_source : 1629fc0fc34b4878e398753db933d0f10c83b67b
2018-01-31 10:34:37 -06:00
Andrew McCreight
7073cf07e2 Bug 1434977 - Remove old UniversalXPConnect related stuff from Talos. r=jmaher
MozReview-Commit-ID: GHCPPMsf6N9

--HG--
extra : rebase_source : 1c9481491836b1b2d131455d5bc75aed0d111843
2018-02-01 11:23:55 -08:00
Martin Stransky
fe3d3e4f1e Bug 1435244 - don't call wl_display_roundtrip_queue() with null wl_queue but rather use wl_display_roundtrip(), r=jhorak
MozReview-Commit-ID: BQzAuCFJgBS

--HG--
extra : rebase_source : 1cbcb7e71e56025b35659a7ec3ebe967739bbeec
2018-02-02 14:42:32 +01:00
Tim Nguyen
87d22789cf Bug 1435019 - Consolidate urlbar autocomplete popup styling. r=jaws
MozReview-Commit-ID: Ed1BnNwEpNz

--HG--
rename : browser/themes/shared/icons/synced-tabs.svg => browser/themes/shared/icons/tab.svg
extra : rebase_source : 7d129ac4109923702761f4cefebb00591e44aabd
2018-02-02 15:09:22 +00:00
Mike de Boer
6c99a03a13 Bug 1427007 - Part 2: the SessionFile unit tests dependended on a very specific interaction between wipe() and read(), which changed in part 1. This fixes the tests up by making the dependency a bit more clear and explicit. r=Yoric
MozReview-Commit-ID: KI3qaww77wV

--HG--
extra : rebase_source : 60b6aad41c4c572ea28403f6869eadff500f1be6
2018-02-02 16:21:07 +01:00
Mike de Boer
3e51cd187b Bug 1427007 - Part 1: When a SessionWorker is restarted, we also need to re-initialize it with the correct SessionFile data. r=Yoric
We now know that worker restarts are rather frequent and we've had reports that
are certain to point at us forgetting to properly re-initialize the worker.
This takes care of this by factoring the init flow into its own method and setting
the flag when a failing worker is terminated.

MozReview-Commit-ID: G5jccjxkBsF

--HG--
extra : rebase_source : 8ca25f5771294697d1875b09b671de2660ef79d5
2018-02-02 16:21:03 +01:00
Paul Adenot
1b84dab469 Bug 1434958 - Allow using gstreamer 1.0 and don't hardcode paths when setting up fake devices for webrtc testing. r=pehrsons
MozReview-Commit-ID: 4ogpCqxMojK

--HG--
extra : rebase_source : c712ca3f1cf4c5eb4925338cb6c2b645d9a2010b
2018-02-01 17:41:15 +01:00
Edgar Chen
084a83413d Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; r=smaug
Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value),
we could use nodeInfo->NameAtom() instead.

MozReview-Commit-ID: 4vIBDEM1Nwv

--HG--
extra : rebase_source : 150d5ea982363eb2ef4c5039fae67be1e08884ba
2018-01-17 14:55:13 +08:00
Sylvestre Ledru
d5654e2007 Bug 1435223 - Increase the size of idstring to avoid a warning r=baku
MozReview-Commit-ID: FFOByQdUa0I

--HG--
extra : rebase_source : 7e6b89920d5b85b4ba137e325e0a05bb96268575
2018-02-02 13:21:49 +01:00
Jonathan Kingston
53c9c480b7 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 9a600559a9d61c42baf9e3e5fde6e35d5adeaf90
2018-01-12 19:09:30 +00:00
Gurzau Raul
bb16936244 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-02 00:25:44 +02:00
Gurzau Raul
1315ffda06 Merge inbound to mozilla-central. a=merge 2018-02-02 00:22:39 +02:00
Johann Hofmann
013b06d761 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 : 95afde93b99de1b25afd6bd132e006f98089dc2e
2018-01-10 12:25:04 +01:00
Johann Hofmann
1dd2560f1b 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
Luca Greco
a0ff3ed908 Bug 1429425 - contentScripts.register runAt option should be set to document_idle when missing. r=mixedpuppy,zombie
MozReview-Commit-ID: 1D1J8zmVWqC

--HG--
extra : rebase_source : f17dbf6ec0cab40edee472933fd901c5b44e683f
2018-01-31 20:55:39 +01:00
Alessio Placitelli
f585ffad30 Bug 1425909 - Mention the support for scalars in artifact and build-faster workflows. r=chutten
MozReview-Commit-ID: 4sJlNiEVLv7

--HG--
extra : rebase_source : 5766e141968c1f0073b43b592a2303ea9f78f9ad
2018-01-30 18:19:19 +01:00
Alessio Placitelli
e39fc7c8b3 Bug 1425909 - Enable adding scalars in artifact builds without rebuilding Firefox. r=chutten,froydnj
This patch enables generating a JSON file that mirrors the scalar definitions
in Scalars.yaml. On local developer builds, this file is loaded when Firefox
starts to register all the scalars. If some change was introduced in the
definition files, the new scalar will be dynamically added.
The JSON definition file will be regenerated every time an artifact build
is performed or the build faster command is invoked.

MozReview-Commit-ID: Do3WjE38aIK

--HG--
extra : rebase_source : 2d9701d77abeb6ce8de096674349b6d071c4b102
2018-01-18 18:25:01 +01:00
Jonas Reinwald
65b1fa2979 servo: Merge #19529 - style: moved css longhand counter-reset out of mako (from DonatJR:counter-reset-out-of-mako); r=emilio
<!-- Please describe your changes on the following line: -->
This is a sub-PR of #19015
Code does not yet compile with `build-geckolib`.
r? emilio

---
<!-- 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 #19387

<!-- Either: -->
- [x] These changes do not require tests

<!-- 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: 38ef515463338d1c562381fd650b80272f552dfb

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 544c775ece36dbd68987a435e2df56c462cd64dc
2018-02-01 09:42:40 -06:00
Munro Mengjue Chiang
4197e56037 Bug 1423582 - use UniquePtr to wrap frame. r=pehrsons
MozReview-Commit-ID: 2T7RC1tBbOA

--HG--
extra : rebase_source : e964a73844edb7f10fb94442cc855f7922bb886d
2018-02-01 11:42:28 +01:00
Bogdan Pozderca
646676bc6f Bug 1412591 - Implement Google Chrome frame_inactive property. r=jaws
MozReview-Commit-ID: Dd204fZV7Yh

--HG--
extra : rebase_source : 0084d3b4954d22d6490fbf524f598ebbd558b411
2018-01-23 21:33:57 -05:00
Mauricio Collares
71c435d53d servo: Merge #19924 - style: Move border-image-repeat outside of mako (from emilio:bim); r=emilio
style: Move border-image-repeat outside of mako.

This is a rebased / nitpick-addressed / bug-fixed version of #19021, and with a commit from #19668 renaming the two `RepeatKeyword`s to different names.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : dea163128c251d09872f2e929249a01f4c233666
2018-02-01 08:24:12 -06:00
Jan Odvarko
da4956859b Bug 1174091 - Output 'load' and 'DOMContentLoaded' event to HAR; r=ochameau
MozReview-Commit-ID: 9bWXf9At2DC

--HG--
extra : rebase_source : a87efc202c76dbe4e7bb307a524ae39ab691038c
2018-02-01 16:37:06 +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
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