Commit Graph

13713 Commits

Author SHA1 Message Date
Ethan Lin
38b3c273db Bug 1410824 - Remove pref 'gfx.webrendest.enabled'. r=kats
MozReview-Commit-ID: Ipwjitb7kIs

--HG--
extra : rebase_source : 34cfbdeac331948b96150fc86c0d855c7604fb1d
2017-10-23 10:10:04 +08:00
Blake Kaplan
91ab85da63 Bug 1410376 - Disable e10s for non-Firefox Gecko users. r=Felipe
This also broke Thunderbird. I'm not entirely sure what's happening on
Android, but I guess it's reading the pref and doing more work? None of the
other changes from bug 1406212 should affect Android in the slightest.

MozReview-Commit-ID: 7z5ysTDGSh

--HG--
extra : rebase_source : 25b9cba49165e78cbe653b2654e634d8b7220725
2017-10-20 10:52:26 -07:00
Sebastian Hengst
d30462037f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BcJNE0poEYk
2017-10-23 11:39:19 +02:00
Makoto Kato
e5ecd5213c Bug 1407869 - Use Malgun Gothic as default on Korean on Nightly r=jfkthame
MozReview-Commit-ID: 7PxPnBfXF7n
2017-10-12 16:55:42 +09:00
Simon Van Accoleyen
dedbda00a2 Bug 1406193 - Remove last remaining SocialAPI bits. r=dao
MozReview-Commit-ID: E5GKq2CYclF
2017-10-21 18:38:17 +02:00
Boris Zbarsky
6a07397359 Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)
983bb1b63a Bug 1404181 - Part 12: Add pref for retained display lists (starting with it disabled). r=mstange
MozReview-Commit-ID: FgASuaoYMuc

--HG--
extra : rebase_source : af1bfd3bb4be63aa6f6c27629b91c1aae924ad20
2017-09-28 13:42:15 +13:00
Chris Peterson
f38368c9cc Bug 1160368 - Part 1: Add flag to treat third-party cookies set over nonsecure HTTP as session cookies. r=jdm
"Nonsecure HTTP" here just means regular, not-HTTPS HTTP. It doesn't mean HTTPS without the `Secure` cookie flag. Honor the expiration time of third-party cookies set over HTTPS, whether or not they have the `Secure` cookie flag. If a third-party cookie is set over HTTPS and then later sent in nonsecure HTTP request (which is allowed for cookies without the `Secure` cookie flag), the cookie won't be turned into a session cookie unless the nonsecure HTTP response sets a new cookie value.

This feature is controlled by the pref "network.cookie.thirdparty.nonsecureSessionOnly".

MozReview-Commit-ID: HlCg21JyvNC

--HG--
rename : extensions/cookie/test/unit/test_cookies_thirdparty_session.js => extensions/cookie/test/unit/test_cookies_thirdparty_nonsecure_session.js
extra : source : d1be2e4265201efd3ee93e965ac68561f548fd05
extra : intermediate-source : f5b382fa1b70e30a907b1f10d74f8c0c6dff344e
2017-02-16 19:27:49 -08:00
Liang-Heng Chen
b4603106d0 Bug 1399520 - Avoid race condition. r=dragana
MozReview-Commit-ID: 6Pd2HXqBgX4
2017-10-19 22:29:41 -04:00
Sebastian Hengst
7beb660397 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-19 11:54:07 +02:00
Sebastian Hengst
bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
Dan Glastonbury
05de18af54 Bug 1407487 - P2: Enable cubeb remoting on Nightly. r=kinetik
MozReview-Commit-ID: AKlAsy5nlgL
2017-10-19 18:02:52 +13:00
Nicholas Nethercote
ddf867ccad Bug 1409635 (part 2) - Fix up nsIPrefLocalizedString. r=froydnj.
nsIPrefLocalizedString is meant to be a wrapper for nsISupportsString,
basically identical but with a different identifier. But it's not a
sub-interface of nsISupportsString. Instead it (almost) duplicates
nsISupportsString's internals.

Specifically, nsISupportsString has `attribute AString data`, resulting in
these C++ methods:

> NS_IMETHOD GetData(nsAString& aData)
> NS_IMETHOD SetData(const nsAString& aData)

nsIPrefLocalizedString has `attribute wstring data`, resulting in these C++
methods:

> NS_IMETHOD GetData(char16_t** aData)
> NS_IMETHOD SetData(const char16_t* aData)

Then we have nsPrefLocalizedString, the concrete subclass of
nsIPrefLocalizedString. It implements the AString methods via
NS_FORWARD_NSISUPPORTSSTRING, which forwards to mUnicodeString. It also
implements the wstring methods explicitly, and they just call the AString
methods. It's all a bit of a mess.

(Both interfaces also have `wstring toString()`. The forwarding works more
smoothly for that method.)

This patch changes nsIPrefLocalizedString so it is a trivial sub-interface of
nsISupportsString. This change eliminates the need for the wstring methods, so
the patch removes them as well. The net result is we have less code, and fewer
conversions between C strings and Gecko strings. The patch also merges the
nsISupportsString and nsIPrefLocalizedString cases in
nsPrefBranch::SetComplexValue(), because they are now identical. (The
nsISupportsString and nsIPrefLocalizedString cases in
nsPrefBranch::GetComplexValue() remain distinct; indeed, that's the whole
reason for having them as separate interfaces.)
2017-10-18 16:51:56 +11:00
Nicholas Nethercote
380feab757 Bug 1409635 (part 1) - Remove nsIPrefLocalizedString::setDataWithLength. r=froydnj.
It's unused.
2017-10-18 16:39:52 +11:00
Nicholas Nethercote
78030c0e7b Bug 1409598 - Change nsIXPCScriptable::className and nsIClassInfo::{contractID,classDescription} from string to AUTF8String. r=froydnj.
This lets us replace moz_xstrdup() of string literals with AssignLiteral(),
among other improvements.

--HG--
extra : rebase_source : 9994d8ccb4f196cf63564b0dac2ae6c4370defb4
2017-10-18 13:17:26 +11:00
Jeremy Chen
0f51b3f159 Bug 1409958 - reset stylo blocklist to empty string on Nightly for testing. r=heycam
The layout.css.stylo-blocklist.blocked_domains pref is set to "arewestyloyet.rs"
on Nightly, but empty string on Beta. Since we're going to QA the styloblocklist
add-on in Bug 1407911, we make the prefs aligned in both Beta and Nightly in this
patch.

MozReview-Commit-ID: HoleJvVYm7o

--HG--
extra : rebase_source : cb8104f3d7fdb99fe0ea6ee84781c4b421a8f421
2017-10-19 11:50:53 +08:00
Nicholas Nethercote
b94945fed2 Bug 1407494 (follow-up) - Revert operator new use to malloc(), to pair with free(). r=glandium.
--HG--
extra : rebase_source : 5fd9221d7a0509e0c094767e66661be0d9ff1688
2017-10-18 16:31:23 +11:00
Blake Kaplan
d85edbdb89 Bug 1406212 - Default to e10s on with 4 content processes. r=Felipe
MozReview-Commit-ID: CtBXBOgTuki

--HG--
extra : rebase_source : 5c4472e0c798f618f7a3ce644d506319b6ceed3c
2017-09-28 15:50:15 -07:00
Masayuki Nakano
16fd3a84a4 Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event.  Therefore, we don't need to use this new
default action on macOS.  Additionally, old default action with Shift key,
navigating history, is moved to with Alt key.  This makes same settings between
macOS and the others.  So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).

For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events.  This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.

So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally.  This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.

MozReview-Commit-ID: E4X3yZzLEAl

--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
Phil Ringnalda
cf776f840e Backed out 2 changesets (bug 1407487) for Android and hazard build bustage and Linux webspeech test timeouts
CLOSED TREE

Backed out changeset 806976ac38b8 (bug 1407487)
Backed out changeset 0ff7dc9aebd9 (bug 1407487)

MozReview-Commit-ID: HLDEXTRvG7l
2017-10-17 19:49:43 -07:00
Dan Glastonbury
0d91ecb5d0 Bug 1407487 - P2: Enable cubeb remoting on Nightly. r=kinetik
MozReview-Commit-ID: AKlAsy5nlgL

--HG--
extra : rebase_source : 66792537e96929b10d4b0980f6e09e2e075299cc
2017-10-12 10:36:01 +10:00
Sebastian Hengst
34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
3e2548c099 Bug 1393691 - timeout connection if tls takes too long. r=mcmanus 2017-10-17 14:06:45 +02:00
Sebastian Hengst
0fde5cb6b5 merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +02:00
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Kris Maglione
635fc0e1ae Bug 1405286: Part 1 - Allow retrieving the delivery target from retargetable requests. r=dragana
After data delivery for a request has been retargeted, there's no reliable way
to get the appropriate event target to re-dispatch data events after
asynchronous processing.


While it's technically possible to retrieve the current thread from
OnDataAvailable callbacks and re-use that for later dispatch, that approach
has some issues:

1) It's not currently possible to reliably map the current thread to the
thread pool that owns it. That means that if data delivery is being targetted
to a thread pool, attempts to redispatch events to the previous delivery
thread might lead to long delays when one thread in a pool is blocked.

2) If a filter wishes to dispatch data events to the wrapped listeners before
it's recieved any data (as extensions StreamFilters sometimes do), there's no
way to determine the proper event target without waiting for initial data to
be received.


Simply returning the correct event target from the request solves both of
these problems.

MozReview-Commit-ID: CJxq7O4399R

--HG--
extra : rebase_source : db2f659ecad16daafdbcc108d7b1a51ea1af31f9
2017-10-14 18:30:38 -07:00
Ethan Lin
316e4cb704 Bug 1405957 - Part2. Remove the unnecessary GetLayerState in CreateWebRenderCommands and adjust the related pref type/value. r=kats
MozReview-Commit-ID: E8JvuOj6JtL

--HG--
extra : rebase_source : 4893c0d3cc6f99d4f2a6c920d8fc07de4c36324c
2017-10-05 14:42:28 +08:00
Ethan Lin
63bdc855fa Bug 1405957 - Part1. Remove advanced filter layer. r=kats
This pref is only for webrender layers mode. So we should remove it.

MozReview-Commit-ID: AxPLnc0uO1U

--HG--
extra : rebase_source : daecac41200be2244b0c6dccb66e0d61d7634691
2017-10-05 14:34:37 +08:00
Boris Zbarsky
32ad6dfdd7 Back out bug 1354730 to reopen CLOSED TREE.
MozReview-Commit-ID: RzUofi384C
2017-10-16 14:34:23 -04:00
Boris Zbarsky
211cfa1cfd Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Sebastian Hengst
a984558fa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: K49FVRdOww8
2017-10-16 10:55:46 +02:00
Nicholas Nethercote
6164e7abd0 Bug 1408231 - Remove unnecessary forward declarations and add |static| where appropriate. r=glandium.
This is possible now that all of libpref is in a single .cpp file.

For some functions, this required moving the comment from the forward
declaration to the definition.

MozReview-Commit-ID: 7XjHENZkc61

--HG--
extra : rebase_source : adc61d0463769c311915139f6e98c2f3187a2d21
2017-10-13 15:24:59 +11:00
Jeremy Chen
2fd13fd9b0 Bug 1407098 - put a nightly only domain in stylo blocklist for testing. r=xidorn
Thanks to xidorn's donation, now we can do some real domain testings for stylo
blocklist mechanism. Note that we only add arewestyloyet.rs domain in Nightly
channel for testing, and the domain should be removed in other channels.

MozReview-Commit-ID: Io351w6sg5b

--HG--
extra : rebase_source : 339fdcf754c41f79ef03324697695b8e44a5d261
2017-10-14 16:54:32 +08:00
Phil Ringnalda
ecdb97c7dc Backed out 6 changesets (bug 1406212) for mass reftest failures
CLOSED TREE

Backed out changeset 1c9fe35de901 (bug 1406212)
Backed out changeset 1acc4c270bf9 (bug 1406212)
Backed out changeset d9ea9cff849f (bug 1406212)
Backed out changeset 5bf2f08f01f9 (bug 1406212)
Backed out changeset 1a050da96e9e (bug 1406212)
Backed out changeset 1b5e78113f06 (bug 1406212)

MozReview-Commit-ID: LizV8CD4IY4
2017-10-12 19:45:23 -07:00
Nicholas Nethercote
ab27f10405 Bug 1407494 (part 9) - Merge PREF_RegisterCallback() and PREF_RegisterPriorityCallback. r=glandium.
This avoids some code duplication.

MozReview-Commit-ID: 2Cb4YtL5RSu

--HG--
extra : rebase_source : 76f2146e8f465608371b8650d96494626f0bee82
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
475691af83 Bug 1407494 (part 8) - Remove forward declaration of PrefSetting. r=glandium.
It's declared in Preferences.h, which Preferences.cpp includes.

MozReview-Commit-ID: 7bjcgsrbfGl

--HG--
extra : rebase_source : ea932402b7eaae876fcba2c0cfdfad2bc728cb8d
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
7480060898 Bug 1407494 (part 7) - Replace malloc uses with operator new. r=glandium.
MozReview-Commit-ID: 5mNDX95Cexn

--HG--
extra : rebase_source : d355f6fbd8c41c84a428cf879fa4f84fd08193a5
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
e4a4426ba0 Bug 1407494 (part 6) - Remove GetContentChild(). r=glandium.
We can just use XRE_IsContentProcess() instead, because the pointer return
value is only ever used in a bool context.

MozReview-Commit-ID: 6R4Bwf1cnKU

--HG--
extra : rebase_source : 392e01cfc145f05783c4bdc7aa08486ef07982be
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
39ffd37e3d Bug 1407494 (part 5) - Replace uses of NS_strdup(), PL_strdup(), PL_strfree() with more standard functions. r=glandium.
MozReview-Commit-ID: FPDUZZqkHqg

--HG--
extra : rebase_source : fbe0e3c4c5f9c18060b6609ac94eb9dfe34b6e77
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
003d9a950d Bug 1407494 (part 4) - Remove have_PrefChangedFunc_typedef. r=glandium.
This is detritus from old changes that can be cleaned up now.

The patch removes the declaration of PrefChangedFunc from Preferences.cpp
because it's also in Preferences.h, which is included by Preferences.cpp.

The patch also removes the part of the comment about passing a non-zero result
because it's clearly false -- the callback has no return value.

MozReview-Commit-ID: 72cdauYsRUt

--HG--
extra : rebase_source : 84cbbcea3b0ce3242c629e428be1e81be9cb5792
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
89d51cf936 Bug 1407494 (part 3) - Remove PR_ALIGN_OF_WORD and WORD_ALIGN_MASK. r=glandium.
Their last use was removed in bug 200524, 14.5 years ago.

MozReview-Commit-ID: FoM8KpJNA7m

--HG--
extra : rebase_source : 0c0ffb90a5e8d23cead729b71563ad2249102c96
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
151b37fd07 Bug 1407494 (part 2) - Remove TEST_PREFREAD. r=glandium.
It's unclear how to compile it; it isn't a proper test, because it just prints
stuff out without explicitly checking anything; and I bet nobody has run it in
a long time.

MozReview-Commit-ID: 48s7pCy7HC6

--HG--
extra : rebase_source : 39d3ba85bd9e45e68b7c7c4cd27b5d7a5a9272b0
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
b7cc1a8c68 Bug 1407494 (part 1) - Remove C-isms. r=glandium.
MozReview-Commit-ID: C2u2JpTkbkn

--HG--
extra : rebase_source : 7ebb89b57c00561e13bdd5b02196ef0b06264126
2017-10-13 15:24:58 +11:00
Blake Kaplan
43ff4cea89 Bug 1406212 - Default to e10s on with 4 content processes. r=Felipe
MozReview-Commit-ID: CtBXBOgTuki

--HG--
extra : rebase_source : 851c31405ec03ece1390bc338b6bd18ea39ba7f8
2017-09-28 15:50:15 -07:00
Sebastian Hengst
87cd48824a merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Sebastian Hengst
5c00b8540d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AlcL6XYDkf
2017-10-12 23:58:31 +02:00
Dragana Damjanovic
dc118fd91d Bug 1405761 - If the preload pref is disabled rel=preload should be shown as not supported. r=smaug
--HG--
extra : rebase_source : 3e32d5d8beceedca7ab3eaaf528385f4e73f1164
2017-10-11 03:20:00 -04:00
Sebastian Hengst
4c169d4680 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-12 12:00:22 +02:00
JW Wang
4ab061994a Bug 1407886 - enable OMT data delivery. r=gerald
Try looks good. Let's turn it on for more tests on Nightly.

MozReview-Commit-ID: 21mQfRmOYag

--HG--
extra : rebase_source : 8f51bd517816deba68dad511a9f859ab1df25baf
extra : intermediate-source : 5150eb8b0826be6578b2d8c68d6d864cc9f55f25
extra : source : 63542cbae67928b936f0472b8dca1f7035759115
2017-10-06 17:46:53 +08:00
Daosheng Mu
9210bba13b Bug 1392216 - Part 3: VRPuppet dispatch submit frame result to VRListener thread; r=kip
MozReview-Commit-ID: K5ivNAkB89I

--HG--
extra : rebase_source : d4a87c12f5268a7aebe68e81c58c753eb60bfbc8
2017-10-06 17:56:53 +08:00