Commit Graph

570780 Commits

Author SHA1 Message Date
Nicholas Nethercote
b4b208fe70 Bug 1419648 - Remove and inline PREF_{LockPref,UnlockPref,PrefIsLocked}(). r=glandium
MozReview-Commit-ID: 7HatftTQwHr

--HG--
extra : rebase_source : 686cec1ece58dafb2227819db308c17f6d30cacd
2017-11-16 09:05:43 +11:00
Nicholas Nethercote
1bd63d481b Bug 1419648 - Inline and remove PREF_HasUserPref(). r=glandium
MozReview-Commit-ID: Dz2IgjrfEjQ

--HG--
extra : rebase_source : f0cc02751263b1a04f49b06115e407ab96dc8e69
2017-11-15 17:01:15 +11:00
Nicholas Nethercote
439ed6b332 Bug 1419648 - Inline and remove PREF_ClearUserPref(). r=glandium
MozReview-Commit-ID: EBb9hxtIwPz

--HG--
extra : rebase_source : b7944677bf72e7e891551e81775659dd46b59fab
2017-11-15 17:01:15 +11:00
Nicholas Nethercote
d03b40ebee Bug 1419648 - Inline and remove PREF_ClearAllUserPrefs(). r=glandium
MozReview-Commit-ID: Eud92V7qFS4

--HG--
extra : rebase_source : 9075832b2d0077a73e2268190e0a4a75aa89022c
2017-11-15 17:01:14 +11:00
Bill McCloskey
e00b31adbc Revert "Bug 1418188 - Run Searchfox indexing in TaskCluster on a daily basis (r=dustin,chmanchester)"
This reverts commit ae02e7fc64ac3c3faa991cee297defdf69643101.
2017-11-22 15:17:11 -08:00
Valentin Gosu
e6c466fb06 Bug 1418810 - Use fallible assign to prevent OOM. r=mayhemer
MozReview-Commit-ID: LU1RbkUIBZz
2017-11-21 20:36:01 +01:00
Kris Maglione
bcc7de94bc Bug 1415352: Part 6 - Test triggering principals and CSP subjection for inline <style> nodes. r=bz
MozReview-Commit-ID: J5ZpYKno1pL

--HG--
extra : rebase_source : 62211636c33aa21f7d898535425798a3e190fd89
2017-11-07 15:21:25 -08:00
Kris Maglione
7cdbab4b1e Bug 1415352: Part 5b - Use the last component principal as principal to inherit for data: URLs. r=bz,krizsa
The logic for choosing the principal here was originally written before
loadInfo had a separate principalToInherit field, and we needed to specify it
via the triggeringPrincipal instead. At that point, we had to choose a
component principal with permission to load the URI at the start of the
request.

However, now that we have a separate field for the principal to inherit, it's
only needed after access checks have passed and we know that we have a URI
which inherits a principal. In that case, the current logic causes us to
always inherit the first principal in the whitelist (which is the page
principal) for URIs (such as data: URIs) that always inherit, where we really
want to inherit the last (which is the extension principal).

MozReview-Commit-ID: EPoUNuOCwrH

--HG--
extra : rebase_source : 535083e3dd4598ac4e8ea187d27d61ac2ac48476
2017-11-22 14:20:26 -08:00
Kris Maglione
d81173fce7 Bug 1415352: Part 5a - Allow extension codebase principals to override CSP. r=bz
We currently use plain extension codebase principals for most of the extension
stylesheets that we inject into content pages. Since we want the content
loaded by those stylesheets to be exempt from CSP, and can't safely use
expanded principals for their loads, we need to make plain extension codebase
principals exempt from CSP.

MozReview-Commit-ID: IIAUWU68nor

--HG--
extra : rebase_source : f7447e1d87c8d75b97de580a641fcac6333a9f27
2017-11-07 14:25:59 -08:00
Kris Maglione
1653b08073 Bug 1415352: Part 4c - Use subject principal as the triggering principal for inline <style> nodes. r=bz
This change captures the subject principal when a scripted caller sets the
textContent or innerHTML property of a <style> node, and uses it as the
triggering principal for the resulting stylesheet.

If the node contents are modified in any way other than through textContent or
innerHTML, the triggering principal is forgotten (which is an intentional
design feature).

MozReview-Commit-ID: GacZFIB5BzS

--HG--
extra : rebase_source : 04926f30b8e2831d18d3fb64b850f670f006eb85
2017-11-07 14:25:45 -08:00
Kris Maglione
77ae77c2c9 Bug 1415352: Part 4b - Capture the subject principal in textContent setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 7g1n3bdHVi4

--HG--
extra : rebase_source : eb84775237e662f20112f54b148ef11005746950
2017-11-07 14:01:21 -08:00
Kris Maglione
0af54ad118 Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 9EaD40vRNkH

--HG--
extra : rebase_source : cdd4a730f24dc57783edcf666ae803379c0d6173
2017-11-07 13:48:58 -08:00
Kris Maglione
e57d01c312 Bug 1415352: Part 3b - Add tests for triggering principal and CSP subjection of style attributes. r=bz
MozReview-Commit-ID: 9vNQEihXh9G

--HG--
extra : rebase_source : be1a0a554c447b034cf696e63b95d31be11f455c
2017-11-06 19:01:39 -08:00
Kris Maglione
326ce05075 Bug 1415352: Part 3a - Add preference to increase max length of CSP report source sample. r=ckerschb
This is necessary for tests which need to verify that reports are being sent
for the correct inline sources, where the current sample size is not enough to
completely distinguish them.

MozReview-Commit-ID: 2k2vAhJhIsi

--HG--
extra : rebase_source : 268a53d1450be6666081bf5093aa170352b398e1
2017-11-06 14:01:32 -08:00
Kris Maglione
bd57fba62b Bug 1415352: Part 2 - Exempt inline CSS from extension principals from CSP. r=bz
MozReview-Commit-ID: D0dofgOaLXZ

--HG--
extra : rebase_source : ee649c83191e64f5f0370e61a54b506f4767ac71
2017-11-05 12:19:34 -08:00
Kris Maglione
96722433e6 Bug 1415352: Part 1d - Use correct subject principal in CSS environment when modifying attr declarations. r=bz
MozReview-Commit-ID: AnurVwl65fX

--HG--
extra : rebase_source : 05d3820aab2c86b010728b5d2882a7a2e75e0617
2017-11-05 13:23:49 -08:00
Kris Maglione
58662abbfe Bug 1415352: Part 1c - Store the subject principal when setting Element.style properties. r=bz
This causes the subject principal that was responsible for setting a CSS
property, or the full cssText of an attribute, to be threaded through the call
chain to the point where CSS parsing happens, so that it can be used as the
triggering principal when loading URLs for that property.

Note that this allows for different properties defined in the same style
attribute to have different triggering principals, depending on the caller
which originally set them, as long as the cssText of that attribute is not
modified. Once it is, all properties revert to the principal of the caller
that modified the CSS text.

MozReview-Commit-ID: ISUyxbqAZMX

--HG--
extra : rebase_source : d4173d76d9afed74889269e3bf029abca54a4abb
2017-11-03 21:44:03 -07:00
Kris Maglione
9f27533bfc Bug 1415352: Part 1b - Store the subject principal when parsing style attributes. r=bz
This change stores the subject principal in the URLExtraData when parsing
style attributes, which causes it to be used as the triggering principal for
those loads rather than defaulting to the document principal.

MozReview-Commit-ID: 22tmNRRCgaj

--HG--
extra : rebase_source : d025870431a457a417523ff57bd8eac3b41d65d0
2017-11-02 13:36:14 -07:00
Kris Maglione
1c66345e09 Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.

MozReview-Commit-ID: GIshajQ28la

--HG--
extra : rebase_source : 5dba46f61d70ec647cae16383b62961ac72d2f47
2017-11-01 20:35:52 -07:00
Bill McCloskey
6e72ea5d62 Bug 1418188 - Run Searchfox indexing in TaskCluster on a daily basis (r=dustin,chmanchester)
MozReview-Commit-ID: FKrA8ejwuic
2017-11-22 14:33:50 -08:00
shindli
a2e65c617d Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-23 00:17:19 +02:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
shindli
82254ca1cf Merge inbound to mozilla-central r=merge a=merge 2017-11-22 23:29:44 +02:00
shindli
c21aeef984 Merge autoland to mozilla-central r=merge a=merge 2017-11-22 23:28:18 +02:00
ffxbld
ad970571e9 No bug, Automated HPKP preload list update from host bld-linux64-spot-032 - a=hpkp-update 2017-11-22 11:38:06 -08:00
ffxbld
013da9f3f3 No bug, Automated HSTS preload list update from host bld-linux64-spot-032 - a=hsts-update 2017-11-22 11:38:02 -08:00
Aaron Klotz
5e1326dfc6 Bug 1419814: Touch CLOBBER to fix a11y build failures; r=me a=Aryx
MozReview-Commit-ID: HtDNkPHiye7
2017-11-22 12:36:25 -07:00
ffxbld
2795ad9547 No bug, Automated HPKP preload list update from host bld-linux64-spot-037 - a=hpkp-update 2017-11-22 10:46:15 -08:00
ffxbld
36b4732f5f No bug, Automated HSTS preload list update from host bld-linux64-spot-037 - a=hsts-update 2017-11-22 10:46:12 -08:00
Mike Park
d426efd011 Bug 1419792 - Shapes highlighter drawn inaccurately for shape-outside with margins. r=gl
MozReview-Commit-ID: 1MGCvsDXJ6O
2017-11-22 12:05:55 -05:00
Andrew Halberstadt
07b162ff59 Bug 1419772 - [docs] Enable the sphinx.ext.napoleon extension, r=gps
This enables sphinx to parse both the google and numpy style docstring
formats which tend to be more human readable than the default sphinx
format.

See:
http://www.sphinx-doc.org/en/stable/ext/napoleon.html

MozReview-Commit-ID: REmZ4IoUG8

--HG--
extra : rebase_source : 4e3e788d09a7fcc3d3e84bb94744019583e1ee5e
2017-11-22 10:17:12 -05:00
Kearwood Gilbert
988f5806a2 Bug 1407423 - Part 3: Update Puppet Device Implementation,r=daoshengmu
- Update prefs to accomodate tests, disabling
  enumeration throttling
- Updated Puppet display and controller implementation
  to act more like the actual devices.
- Updated tests to ensure that they explicitly
  create a VR mock display and don't create duplicate
  mock displays.

MozReview-Commit-ID: 6RPVqekG2je

--HG--
extra : rebase_source : b5852a17617e26ed5fd5e0df82a333213e99163b
extra : amend_source : 623b75bc096f6e50a122351a5a913cb04422d323
2017-11-21 14:18:16 -08:00
Tim Nguyen
33c90c196b Bug 1297788 - Use photon colors for autocomplete popup "DONTBUILD". r=jaws a=reland
MozReview-Commit-ID: IvM7FAelBhu

--HG--
extra : amend_source : 8eb04ebab57e96241578c9a14e2395e03c7ce77c
2017-11-21 20:08:48 +00:00
Tim Nguyen
c8c45c0077 Bug 1297788 - Make urlbar autocomplete style match photon light/dark themes "Original patch by Kostas (rick3162@gmail.com)". r=jaws
MozReview-Commit-ID: IKnX5lLLj4L

--HG--
extra : amend_source : e95d4e5803f244bb87b93226ece0b86040dec8cd
2017-11-21 20:08:42 +00:00
Ciure Andrei
75f14b6056 Backed out 2 changesets (bug 1297788) for fixing the commit message r=backout a=backout
Backed out changeset 5a9be669bd5c (bug 1297788)
Backed out changeset c8d3ad173dbc (bug 1297788)
2017-11-22 17:39:06 +02:00
Oriol Brufau
87ad2bcd7e Bug 1419416 - Remove UTF-16 support in JSON Viewer. r=tromey
MozReview-Commit-ID: GIE3Q5j3wZm

--HG--
extra : rebase_source : 50afde4502aaf247d931d2cab1f6f75a2db768a9
2017-11-21 15:09:14 +01:00
Josh Matthews
c49b68f4f1 servo: Merge #19336 - Instruct how to deal with outdated manifests (from servo:jdm-patch-6); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 218edeb883f8b46fde5b218be4e1e38a32b39b56

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8f60844c1199f9de93b7948f89fe9a9e9fbb05dc
2017-11-22 10:36:04 -06:00
Ray Lin
78b7e8c2f7 Bug 1397173 - Apply dark overlay style when only error occurs in mobile video controls. r=jolin
MozReview-Commit-ID: CsVK90kmLlT

--HG--
extra : rebase_source : e73ae0f6c10b43c2ca22e32b7c328278e74b72a7
2017-11-22 14:11:54 +08:00
Petr Sumbera
fb96ead697 Bug 1419321 - Linking on Solaris is missing -L${DIST}/bin. r=chmanchester 2017-11-21 01:13:01 -08:00
Dragan Mladjenovic
69e4deda92 Bug 1418990 - [MIPS32] Reset MacroAssembler::framePushed when doing stack realignment in JitRuntime::generateVMWrapper. r=jandem
--HG--
extra : source : 2b6b5af4a1f22a7862facee78d7b982ed2726b0f
2017-11-21 10:49:02 -05:00
Michal Novotny
96f9c8ac5c Bug 1418752 - Firefox instahang on start after landing patch from bug #1392841. r=ttaubert
EnsureNSSInitializedChromeOrContent() sends sync event to main thread from non-main thread even if it's already initialized. This can make fix at https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/netwerk/protocol/http/nsHttpHandler.cpp#2105 inefficient and can lead to a deadlock.

--HG--
extra : rebase_source : 18333d17e1d959accd667c8ce25a20ea51c15266
2017-11-22 12:46:08 -05:00
Lee Salzman
894f5cc99e Bug 1224396 - Skia path allocation cleanups. r=msreckovic
MozReview-Commit-ID: GAf2vC1Fucv
2017-11-22 12:19:29 -05:00
Dragan Mladjenovic
ed9b200c0d Bug 1417595 - [MIPS] Implement missing parts of Bug 1417398. r=jandem
--HG--
extra : rebase_source : e8ef79983ac2264c598ad8401a2effee58d497cb
2017-11-22 12:08:14 -05:00
David Major
de1574c9ea Bug 1418453 - Change asan_blacklist_win.txt syntax to get it working again. r=glandium
--HG--
extra : rebase_source : ca7d9b74176d78c87d708eefee2ee244b39cd3c0
2017-11-22 12:07:00 -05:00
Sebastian Hengst
d605c83e10 Backed out changeset c5970c2922ed (bug 1412336) for failing mochitests dom/tests/mochitest/general/test_interfaces.html and dom/vr/test/mochitest/test_vrDisplay_canvas2d.html (VRDisplay not available). r=backout on a CLOSED TREE 2017-11-22 18:53:10 +02:00
Sebastian Hengst
925c9f36c0 Backed out 4 changesets (bug 1417251) for reftest failures, e.g. in box-decoration-break-with-outset-box-shadow-1.html. r=backout on a CLOSED TREE
Backed out changeset cdd6eb876d3d (bug 1417251)
Backed out changeset c2b174094be3 (bug 1417251)
Backed out changeset 9a85c4bd47e4 (bug 1417251)
Backed out changeset a9f5ffd87cd5 (bug 1417251)
2017-11-22 18:34:58 +02:00
James Willcox
e626ddf5dc Bug 1409113 - Relax the user input requirement in order to show VKB on Android r=jchen
MozReview-Commit-ID: 4lvuGFyWj76
2017-11-22 10:09:07 -06:00
James Willcox
e1181af857 Bug 1409113 - Add nsIPresShell::HasHandledUserInput() status to InputContext r=masayuki
MozReview-Commit-ID: 60x35NKEzhA
2017-11-22 10:09:06 -06:00
James Willcox
bacda12532 Bug 1409113 - Add nsIPresShell::HasHandledUserInput() r=masayuki
MozReview-Commit-ID: 3Yr5UmFJx5h
2017-11-22 10:09:04 -06:00
Dylan Roeh
e28b186aa4 Bug 1412336 - Do not set dom.vr.enabled to true in Fennec nightly. r=rbarker 2017-11-21 16:54:43 -06:00