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

528571 Коммитов

Автор SHA1 Сообщение Дата
Simon Sapin 1cb213c02c servo: Merge #16239 - Remove a memory allocation (`iter.collect::<Vec<_>>()`) in `cascade()` (from servo:cascade-collect); r=emilio
This vector was there to pre-acquire locks and give all declarations the same lifetime (which is necessary for custom properties cascading).

https://github.com/servo/servo/pull/16014 introduce a guard to a shared pre-acquired lock, making this vector unnecessary.

<!-- 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: -->
- [x] `./mach build -d` does not report any errors
- [x] `./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: a5a5abd9f4c8a0a9f0b99f8cefcc12151e537d3e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 561be88a6d42949eaa888ac1293badd2279db565
2017-04-03 05:35:19 -05:00
Jan Henning a4d0b0a000 Bug 1352433 - Part 1 - Don't clear all preferences when all you need to remove is a few keys. r=sebastian
MozReview-Commit-ID: DELmDbTHNLk

--HG--
extra : rebase_source : c01a32a5db5064ffe3bf9ba9e22cb9581e13d998
2017-04-01 23:02:54 +02:00
Jan Henning 715265a62e Bug 1352433 - Part 0 - Change variable name casing for constants. r=sebastian
The shared preferences keys used for storing/retrieving the activity list data are constants, so it is a bit disconcerting to see them named like normal member variables.

MozReview-Commit-ID: GivVloU0pFv

--HG--
extra : rebase_source : e26bcabd1cdf549e8a0ee54f0e6333c76484ca24
2017-04-01 22:51:51 +02:00
Masayuki Nakano 99a1135919 Bug 1351332 gfxDWriteFontList and gfxGDIFontList should ignore italic face of Meiryo for using synthetic italic style r=jfkthame
Meiryo has same glyph for both normal style and italic/oblique style.  Therefore, if we will use it as default Japanese font, italic/oblique style won't be used in Japanese text.  It's too bad for <em>, <i> and backward compatibility with MS PGothic.

This patch makes gfxDWriteFontList and gfxGDIFontList ignore italic style face(s) of Meiryo at creating Meiryo's font face list.

Note that in GDI mode, font names are localized.  Therefore, we need to compare with both English name and Japanese name.  However, in DirectWrite mode, face names are not localized.  Therefore, it's enough to compare only with English face names.

MozReview-Commit-ID: 60tFxB0jcd

--HG--
extra : rebase_source : 45eb61403f97cd765de1b81c290c29632d8174e5
2017-03-29 18:38:41 +09:00
Carsten "Tomcat" Book 2c5e0e8650 Merge mozilla-central to autoland 2017-04-03 12:33:12 +02:00
Emilio Cobos Álvarez 6aaa11721c Bug 1341102: Adjust expectations for servo/servo#16224. r=emilio
MozReview-Commit-ID: Lm6CuzHdhGn
2017-04-03 11:39:27 +02:00
Simon Sapin c0c0f9ba4b servo: Merge #16224 - Make the parser accept @font-face rules without font-family or src (from servo:valid-fontface); r=upsuper
Fix #16165.

Also, it turns out that the CSSFontFaceRule IDL specified in the css-fonts spec is not web-compatible. Instead browsers implement a .style attribute like in CSSStyleRule: https://github.com/w3c/csswg-drafts/issues/825

This in turn requires preserving data about which descriptors were set or not (distinguishing unset from set to a value that happens to be the initial value), so this commit also makes every field `Option<_>`.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 53db8dcde3e41e82100219b37ef20b2bc76b9f6b
2017-04-03 03:53:09 -05:00
k88hudson 14c5e8022b Bug 1349288 - Add Redux and React files to activity-stream extension. r=standard8
MozReview-Commit-ID: 7zWTj5Z4vJa

--HG--
extra : rebase_source : 22575a8fb8a273c9b60e1532d82b7930e026526e
2017-03-24 11:16:35 -04:00
k88hudson a5803e3997 Bug 1349288 - Update license to allow activity-stream to use React, Redux, Reselect, and ReactRedux r=gerv,standard8
MozReview-Commit-ID: FTZ626l2QG2

--HG--
extra : rebase_source : 3493dbb921a1c9eea130ac2fd743d7efa295e07a
2017-03-30 13:30:30 -04:00
Martin Stransky 5141ddceb3 Bug 1158076 - postpone nsLookAndFeel module initialization, r=karlt
MozReview-Commit-ID: JY83xiXT1xf

--HG--
extra : rebase_source : a936ca56024f4e5c75830e492038ac2ca1a218ae
2017-03-30 15:03:50 +02:00
Martin Stransky 55a8aace48 Bug 1158076 - add prefs to enable GTK dark themes in each process, r=karlt
Add two new prefs (widget.chrome.allow-gtk-dark-theme and widget.content.allow-gtk-dark-theme) to enable dark
themes in chrome and content when e10s is enabled.

When e10s is disabled then widget.chrome.allow-gtk-dark-theme controls both chrome and web content settings.

That may be a bit confusing but it's going to be here for two releases only (Firefox 57 is going to have e10s enabled by default) and actually matches recent state when only one ENV pref is used for both chrome and web content.

The existing MOZ_ALLOW_GTK_DARK_THEME environment variable is still considered, but, now is like widget.chrome.allow-gtk-dark-theme, no longer affecting separate content processes.

MozReview-Commit-ID: CCwriA66CNj

--HG--
extra : rebase_source : 93e9a504af3e7570f82ddaf0890e374fe939e919
2017-03-31 10:40:07 +02:00
Daniel Stenberg 267eba61cb Bug 1346419 - Bail out on zero length data. r=valentin
Since we cannot call .First() on it and since it clearly contains
nothing to show anyway!

--HG--
extra : source : ecd714c21c5bd643875d85101dccaaeff18bd350
extra : amend_source : 22307168ed9289c36dade3f33a7c3ded93b5612c
2017-03-22 10:08:47 +01:00
Benjamin Bouvier a13e9d2f73 Bug 1352500: Baldr: Force stack alignment for asm.js atomics callouts on ARM; r=luke
MozReview-Commit-ID: HsROuItxJMX

--HG--
extra : rebase_source : 03a1030f2279da7c41e687455acc9c736cd47be8
extra : histedit_source : 365f49c34984d150bd99a120379cd54fbf674100
2017-03-31 20:10:18 +02:00
Eric Rahm 9afbcd5a22 Bug 1351831 - Build more xpconnect code in unified sources. r=bholley
These files were being excluding because we thought they used plarena.h, but it
turns out they did not. A few tweaks needed to be made to clarify whether we
wanted to use mozilla::UniquePtr or js::UniquePtr.

MozReview-Commit-ID: 1su5dO3rR0T
2017-03-31 11:00:11 -07:00
Eric Rahm 5e28f26c18 Bug 1351820 - Build more more netwerk files in unified mode. r=mcmanus
This updates the unifed sources for a few netwerk build files. In some cases
files were excluded because we thought they used plarena.h, but that turned
to be false.

A few files needed to be updated to add missing imports/exports due to shifting
of compilation units.

MozReview-Commit-ID: 4mh8VApFoe1
2017-03-31 11:00:10 -07:00
Eugen Sawin fd51be56ce Bug 1346542 - [3.0] Change setState to checkAndSetState to avoid updated state override. r=me 2017-03-31 19:27:46 +02:00
Dão Gottwald 1719c11783 Backed out changeset 438624f92fbc 2017-03-31 19:03:42 +02:00
Paul Adenot 26e9175c0d Bug 1351456 - Fix test logging.
MozReview-Commit-ID: KpyHg95FKcv
2017-03-31 18:51:01 +02:00
Kevin Jones 7b230dd9fb Bug 1352183 - Preserve lazy browsers' lazy state when closing the window. r=dao 2017-03-31 18:45:08 +02:00
Sebastian Hengst d4679cd05d Backed out changeset 15e815413234 (bug 1351980) for asserting on Android, e.g. in test_pseudoElement-get-animations.html. r=backout 2017-03-31 18:39:46 +02:00
Paul Adenot 93f23173cb Bug 1351456 - Add some instrumentation to try to understand a test timeout. irc-r=jesup
MozReview-Commit-ID: 935bdFmhwTq

--HG--
extra : rebase_source : 69f29432b714dffbb2eb9c51098d603744e4ceb6
2017-03-31 17:41:31 +02:00
Tim Taubert ff47acdd0e Bug 1352365 - Remove duplicate PrivacyLevel checks in SessionCookies.jsm r=mikedeboer
PrivacyLevel checks currently allow to disable storing secure cookies and any
cookies belonging to an HTTPS host, or completely disable storing cookies. We
call PrivacyLevel.canSave() for every host found in the shistory of a given
window's tabs. We then call it again for every cookie when retrieving all
cookies stored for a given host.

The two different privacy checks exist because in the past an HTTP site could
send a secure cookie too. Since Firefox 52 this isn’t possible anymore, only
HTTPS sites can send secure cookies. So as soon as nsICookie.isSecure=true
we know the site was loaded over TLS.

That means there are the following scenarios:

[PRIVACY_LEVEL=NONE] (default)
We store all cookies.

[PRIVACY_LEVEL=FULL]
We store no cookies at all.

[PRIVACY_LEVEL=ENCRYPTED]
HTTP site sends cookie: Store.
HTTP site sends secure cookie: Can't happen since Fx52
HTTPS site sends cookie: Store. The site is HTTPS but we should store the
cookie anyway because the "Secure" directive is missing. That means the
site wants us to send it for HTTP requests too.
HTTPS site sends secure cookie: Don't store.

This allows us to simplify the code and remove the per-host PrivacyLevel
checks. Checking nsICookie.isSecure is enough to tell whether we want
to keep a cookie or not.
2017-03-31 11:54:18 +02:00
Ehsan Akhgari a3580de587 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 09:54:28 -04:00
Sebastian Hengst e3bcc5dcd8 Backed out 2 changesets (bug 1351980) for asserting in Android tests, e.g. test_hc_noderemovechildnode.html. r=backout
Backed out changeset fbc8e05e5251 (bug 1351980)
Backed out changeset 1c7c92033bb1 (bug 1351980)
2017-03-31 15:38:38 +02:00
Carsten "Tomcat" Book 4ac9c2ffb1 Merge mozilla-central to mozilla-inbound 2017-03-31 14:47:54 +02:00
Sebastian Hengst d722cb70d6 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own: Replace RESPATH with BINPATH to fix mobile builds. r=bustage-fix 2017-03-31 14:22:25 +02:00
Ehsan Akhgari af1cabba18 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 07:37:59 -04:00
Eugen Sawin 4573e30ad0 Bug 1346542 - [2.1] Fix code style. r=jchen 2017-03-31 13:12:21 +02:00
Eugen Sawin 80710c9297 Bug 1346542 - [1.2] Move state holder to GeckoView::Window and set ready state when reattaching to window. r=jchen 2017-03-31 13:12:21 +02:00
Timothy Nikkel b3137a6749 Bug 1348941. r=njn 2017-03-31 06:07:29 -05:00
Peter Van der Beken b8d4cf7f71 Bug 1349717 - Propagate errors from matching in XSLT. r=erahm.
--HG--
extra : rebase_source : 927c0f20e92f5a678a3bd57406da33395d207cba
extra : intermediate-source : c346067e0d8ab204cd3e640fa8390d1728f0161e
extra : source : 5669c2511dec853fecd42dbdc8b1fdfea64c362d
2017-03-22 21:05:11 +01:00
Henri Sivonen c514501f1a Bug 1295611 - Add mozilla::Span. r=froydnj,gerv.
MozReview-Commit-ID: HGNDClVctbE
2017-03-31 13:32:18 +03:00
Jim Porter b484489cfb Bug 1164469 - LoginManagerContent._fillForm should take an options argument; r=MattN
MozReview-Commit-ID: A38fIWbGCaa

--HG--
extra : rebase_source : eff5ccb8f90e7b74b94677b7191198ffda2952bf
2017-03-20 19:13:13 -05:00
Jim Porter 60de42fd09 Bug 1222032 - Improve copy for disambiguating login update r=MattN
MozReview-Commit-ID: Ga3pybr1yGY

--HG--
extra : rebase_source : 860095960026320413a10e556cd3fa7e61889726
2017-03-16 19:14:38 -05:00
Imanol Fernandez 7c55171e04 servo: Merge #16237 - Fix Android issues: update servo-glutin & offscreen_gl_context (from MortimerGoro:update_glutin_offscreen); r=jdm
<!-- Please describe your changes on the following line: -->
See https://github.com/emilio/rust-offscreen-rendering-context/pull/94 and https://github.com/servo/glutin/pull/121

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] 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: f659d43bd403e4ac1305990ba704f23b4a6cd5e6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 76e38ca77cc9227bfaa6f30cc6445cdfcbacf29c
2017-04-03 14:38:48 -05:00
Wes Kocher d11e3dc66d Backed out 7 changesets (bug 1350887) for build bustage on a CLOSED TREE
Backed out changeset d2b395e6c5c0 (bug 1350887)
Backed out changeset 5a6d5c43135f (bug 1350887)
Backed out changeset ec57676ad0d1 (bug 1350887)
Backed out changeset 4a3d1a8767f7 (bug 1350887)
Backed out changeset 40cd9ca1553e (bug 1350887)
Backed out changeset d264991a436d (bug 1350887)
Backed out changeset b915d40a6ba6 (bug 1350887)

--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-03 13:30:35 -07:00
Andreas Tolfsen be2b5e3c07 Bug 1350887 - Warn when non-loopback connections are allowed; r=whimboo
MozReview-Commit-ID: LG8f5q5QbD6

--HG--
extra : rebase_source : 5f97ddcb8ac5598c1a5531982b4962495257311f
2017-03-28 17:06:06 +01:00
Andreas Tolfsen de99d738dd Bug 1350887 - Propagate errors thrown when starting server.TCPListener; r=whimboo
Errors thrown are printed to console and there is no point in having a
custom catch to print it.

This also makes it possible to start Marionette programmatically without
worrying about disappearing errors.

MozReview-Commit-ID: GGhyCyYqJg

--HG--
extra : rebase_source : 4e38a2e10b259bb8b9e3ade09c1f7030cb2e2220
2017-03-28 16:48:20 +01:00
Andreas Tolfsen 0f63b19a1e Bug 1350887 - Bind sacrificial goat to ephemeral port; r=whimboo
Port 666 is in the protected port range and can not normally be bound
to unless the process is running with sudo permissions.

We can instead bind to port 0, which will give us a system-defined port
in the epemeral range.

MozReview-Commit-ID: Ld6BDMhtbck

--HG--
extra : rebase_source : 681fd6c6fb382d629aa1b39ca9079f45deb0f059
2017-03-28 16:46:54 +01:00
Andreas Tolfsen ff23903f87 Bug 1350887 - Fall back to deprecated pref if it exists; r=whimboo
This is a follow-up to address a fallout caused by bug 1344748 whereby
deprecated preferences relevant to Marionette are no longer being
picked up.  This is preventing trace logs from being emitted in CI.

The old logic related to falling back to a deprecated preference is
faulty in that it the preferred, new preference always exists through
the power of testing/marionette/prefs.js.  This patch introduces a new
helper method getPref that first looks at whether the preferred pref
is set, and only falls back to the deprecated if it isn't set and the
deprecation preference exists.

MozReview-Commit-ID: 8DeawLAELyK

--HG--
extra : rebase_source : 42ecec05ff84b353d0eda81891849886900fabb7
2017-03-27 14:28:32 +01:00
Andreas Tolfsen 60d2ed38a3 Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 00b22e2b63cf2f5183c49bdc84bcc172b8a4c3a1
2017-03-29 18:25:55 +01:00
Andreas Tolfsen 194c37a7ac Bug 1350887 - Add general overview documentation to Marionette; r=whimboo
MozReview-Commit-ID: HwMOQVxwIDN

--HG--
extra : rebase_source : 288a88306fd0bc8bda345adde16f26bf66b2d316
2017-04-03 15:00:05 +01:00
Andreas Tolfsen f2e39ffedb Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : d5bf0abf80d20086945d51e05f3e5115880fdc20
2017-03-30 14:52:16 +01:00
Sebastian Hengst 58d0365b43 Backed out changeset 1438936f7cb6 (bug 1350887) for breaking packaging on OSX. r=backout
--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-03 21:40:48 +02:00
Sebastian Hengst 245d1a625b Backed out changeset 1d0e49ed42f9 (bug 1350887) 2017-04-03 21:40:16 +02:00
Sebastian Hengst 59be82dec9 Backed out changeset 69db9d3db655 (bug 1350887) 2017-04-03 21:40:12 +02:00
Sebastian Hengst f5bbb45a5c Backed out changeset f41bca9ebd0b (bug 1350887) 2017-04-03 21:40:08 +02:00
Sebastian Hengst 9b50230d14 Backed out changeset f54dbd3d2e62 (bug 1350887) 2017-04-03 21:40:04 +02:00
Sebastian Hengst 7f0b4f271f Backed out changeset 4bdb7f140370 (bug 1350887) 2017-04-03 21:40:00 +02:00
Sebastian Hengst d11af710d2 Backed out changeset a47faebbd684 (bug 1350887) 2017-04-03 21:39:55 +02:00