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

582118 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 98c246e41e Bug 1219081 - Remove undefined reference to libxul_sdk_includes from XPIDL makefile. r=glandium
MozReview-Commit-ID: BK20h5Nexe0

--HG--
extra : rebase_source : 64008aabf15fe6b0a3fa44c43b0c3070dc762acf
2018-02-20 10:22:36 -08:00
Masayuki Nakano 06c2b2765d Bug 1437838 - Narrate module should listen to keydown events instead of keypress events r=eeejay
Looks like that any script of web pages don't run in reader mode.  If so,
it's safe narrate module to listen to keydown events of non-printable keys
because nobody listens to following keypress events of them.  So, it's OK
to stop dispatching following keypress event of keys handled by keydown
event handlers of narrate module.

MozReview-Commit-ID: Agn8H8j8opz

--HG--
extra : rebase_source : 6d609936ce2592e9d23b100e3b875bd115b74c47
2018-02-13 22:11:01 +09:00
Josh Matthews 7328e68baf servo: Merge #20095 - Set CARGO_HOME for Windows builders (from servo:jdm-patch-9); r=jdm
This is a temporary fix to allow reopening the tree. This value belongs in saltfs instead, but it's already late and I don't want to have to wait to deploy the changes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 036b9d313937cc1a053c0d94ccea1c2939ff09b0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b03b6774f24897039b2dfd0d3948c899f134f583
2018-02-20 22:08:50 -05:00
Valentin Gosu 55a7a824c6 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : f2a17aee7bb66a7ba8652817d43b9aa7ec7ef710
2018-02-21 01:00:54 +01:00
J. Ryan Stinnett e7811b0211 Bug 1438696 - Stop Inspector from rebooting on RDM toggle. r=ochameau
Currently, if you open the Inspector on some page, then enter RDM, the Inspector
will "reboot" (reload all panels) because it believes the document has reloaded.

However, it's not really true in this case.  Instead, it's an artifact of the
pagehide / pageshow events that are triggered when swapping frames like RDM
does.  Bug 1438697 adds a chrome-only property that we then use here to
distinguish this case.

MozReview-Commit-ID: Ks42QayVnij

--HG--
extra : rebase_source : 91739a5db2774073e723b1daf43bc5242755fc43
2018-02-16 15:02:24 -06:00
J. Ryan Stinnett bbd75cba2e Bug 1438697 - Add inFrameSwap property on page transition. r=mrbkap
During a frame swap (using the `swapFrameLoaders` API on a frame loader owner),
we dispatch `pagehide` events before swapping and `pageshow` events after
swapping.

For some consumers that watch these events (such as DevTools), it would be
helpful to filter out the ones that sent because of frame swapping.  This change
adds a chrome-only `inFrameSwap` property to such events so that we can tell
them apart.

MozReview-Commit-ID: QzIDuaF2zC

--HG--
extra : rebase_source : 3ac15e34c18b648c4cb060e69587e39e4ebaab60
2018-02-16 13:05:06 -06:00
Hiroyuki Ikezoe 467ed67c74 Bug 1388557 - Call RequestRestyle(Layer) in the case where we attach orphaned animating element to the document. r=birtles
MozReview-Commit-ID: IIcyYFROqDx

--HG--
extra : rebase_source : f096635d400528660d5243d2884d125e7b623db2
2018-02-21 10:13:13 +09:00
Hiroyuki Ikezoe 4606fafb88 Bug 1417354 - Clear pending restyle requests for the element and its pseudos where the element is detached from the document. r=hiro
MozReview-Commit-ID: GLHjtHNusuB

--HG--
extra : rebase_source : aaf05c7773d11cf61a28803d4ba70546c2b98e27
2018-02-21 07:00:20 +09:00
Hiroyuki Ikezoe 0ca9f2c309 Bug 1417354 - Add a method to clear all pending restyle requests for a given element and its pseudos. r=birtles
MozReview-Commit-ID: DZkbwUPiPTd

--HG--
extra : rebase_source : b1993ea863a261841be1edfc3b2dee7655123fe8
2018-02-21 07:00:20 +09:00
Hiroyuki Ikezoe 1b0cba9367 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr

--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Hiroyuki Ikezoe 2ae05eae09 Bug 1417354 - Drop unused presshell and prescontext in nsGlobalWindowInner.cpp. r=smaug
MozReview-Commit-ID: Ok80ilFDsf

--HG--
extra : rebase_source : 490e58ea922a56fe8d4c2ffeea4ea83198141bd3
2018-02-21 06:15:22 +09:00
Xidorn Quan 7f1a212543 Bug 1439507 - Add more XBL binding stuff to memory report. r=njn
MozReview-Commit-ID: F6wMYm7ifm9

--HG--
extra : rebase_source : 66a21c88209b22611a112fdabb74adf596c56d14
2018-02-20 19:58:50 +11:00
Andrew McCreight 7e85729b56 Bug 1439770, part 2 - Inline constant argument to InterfaceDescriptorAddTypes. r=njn
MozReview-Commit-ID: 4mCgB5NFife

--HG--
extra : rebase_source : 1ad31a68150c35dd3731a42beeb7858c86d08da8
2018-02-20 13:38:38 -08:00
Andrew McCreight 70a2273632 Bug 1439770, part 1 - Fix integer overflow in InterfaceDescriptorAddTypes. r=njn
num_additional_types is a uint8_t, so its max value is 255. 1 + 255 is
not greater than 256, so the check will pass, but then
num_additional_types += 1 will overflow in the next line.

What I think happened is that bug 1249174 part 6 introduced a bounds
check on an index (which is ok), but then part 8 repurposed this as a
bounds check on the length.

I noticed this because while writing the next patch I ended up with
  if (id->num_additional_types > 255)
and then the compiler warned that the check would never fail.

MozReview-Commit-ID: KqiaOyBjj7v

--HG--
extra : rebase_source : 47b20ad2f5e39b05f467cc5b10041070db7fa774
2018-02-20 14:44:47 -08:00
Sebastian Hengst 43020d2ca4 Backed out 6 changesets (bug 1434300) for frequent GTest in AllocReplacement.malloc_check
Backed out changeset 23485791d3e1 (bug 1434300)
Backed out changeset 73a952303cae (bug 1434300)
Backed out changeset 61b168663a54 (bug 1434300)
Backed out changeset ea372af453ef (bug 1434300)
Backed out changeset d8517bfe9eb2 (bug 1434300)
Backed out changeset 603b92a0ebd5 (bug 1434300)

--HG--
rename : security/certverifier/TrustOverride-AppleGoogleDigiCertData.inc => security/certverifier/TrustOverride-AppleGoogleData.inc
rename : security/manager/tools/crtshToIdentifyingStruct/crtshToIdentifyingStruct.py => security/manager/tools/crtshToDNStruct/crtshToDNStruct.py
rename : security/manager/tools/crtshToIdentifyingStruct/requirements.txt => security/manager/tools/crtshToDNStruct/requirements.txt
2018-02-21 02:35:23 +02:00
Felipe Gomes 98bf47b39e Bug 1439418 - Policy engine - Properly support optional and required fields in the schema. r=mossop
MozReview-Commit-ID: 6nYX5FiKUxP

--HG--
extra : rebase_source : 604623493c0048b4d9d06e1a9bf5f37cec31f48f
2018-02-19 16:27:55 -03:00
Andrew McCreight a106e111fe Bug 1438700, part 2 - Deduplicate XPT strings. r=glandium
Various strings, like nsISupports, appear many times in XPT data. This
patch adds a cache so we don't write the same string multiple times.

MozReview-Commit-ID: 6buBrXwHqQz

--HG--
extra : rebase_source : 54dea83a9134710c5600828ab68ef3f935f46afd
2018-02-15 15:41:05 -08:00
Andrew McCreight b553286f4a Bug 1438700, part 1 - Do writing of XPT names to a file via a helper class. r=glandium
The name of this class is wrong, but my next patch will make it
actually cache. This patch should not change the behavior.

MozReview-Commit-ID: CMf6Chkeex1

--HG--
extra : rebase_source : a6d5688124b75aef8ed35f811003cf49b8b4e136
2018-02-15 15:28:43 -08:00
Jared Wein 03071c21a3 Bug 1434415 - Move all hard-coded PaymentRequest strings to localization files. r=MattN
MozReview-Commit-ID: 4dhHxaDjqgM

--HG--
extra : rebase_source : 442806cf79406d192401ff41ec299c75df4fe000
2018-02-15 16:12:04 -05:00
Gijs Kruitbosch 4e2a0d8a12 Bug 1439082 - ensure shield checkbox is disabled when about:preferences loads while FHR/Telemetry is preffed off, r=myk,mythmon
MozReview-Commit-ID: 7mhuD7BS7xz

--HG--
extra : rebase_source : ff3bbbbf32ff472ecec0c0c34a1b8427359baa17
2018-02-17 12:29:54 +00:00
Valentin Gosu 98e8686b20 Bug 1439538 - Convert nsHostResolver::m{High,Medium,Low,Eviction}Q to LinkedList<RefPtr<nsHostRecord>> r=bagder
MozReview-Commit-ID: CDMadOtmDHQ

--HG--
extra : rebase_source : aa366237886c7d07cb3d83a15c50a54c08606848
2018-02-20 17:41:50 +01:00
nbeleuzu@mozilla.com 49cba58050 Backed out changeset 84ab509808e7 (bug 1420130) for mochitest failures on /browser_fontinspector_expand-css-code.js 2018-02-21 00:33:09 +02:00
Jared Wein 04d2dfc8fc Bug 1427947 - Dispatch `shippingoptionchange` when the shipping option is changed. r=MattN
MozReview-Commit-ID: J8U7ln90XnZ

--HG--
extra : rebase_source : e04267840eb59b945a297e4338b8ac8bfe1e29e1
2018-02-15 15:03:40 -05:00
nbeleuzu@mozilla.com 01eef6aff1 Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE 2018-02-21 00:06:46 +02:00
Valentin Gosu f1850e9354 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : 592d13349a8c4627c7ce3146ec592f577b39f3cc
2018-02-20 22:39:40 +01:00
J.C. Jones bdcb52d8d7 Bug 1434300 - Add the DigiCert whitelisted SPKIs r=keeler
This adds the 4 digicert CAs to our whitelist as specified in Google's details
on the Chromium version of this plan [1].

[1] c022914eb2/net/data/ssl/symantec/README.md

MozReview-Commit-ID: BR7t1UheKeS

--HG--
rename : security/certverifier/TrustOverride-AppleGoogleData.inc => security/certverifier/TrustOverride-AppleGoogleDigiCertData.inc
extra : rebase_source : 328a3b03a2c40fdf77497430481aa01df6f0059d
2018-02-20 16:27:14 -05:00
J.C. Jones 9b7f221221 Bug 1434300 - Change Symantec Distrust Algorithm's whitelist to SPKI-matching r=fkiefer,keeler
Because of the DigiCert-controlled sub-CAs and managed-CAs identified as also
needing to be whitelisted [1], and that those CAs are using an increasing number
of certificates all with different Subjects (but identical public keys) [2][3],
we will have to whitelist on SPKI rather than subject DN.

This makes the security/manager/ssl/tests/unit/test_symantec_apple_google.js
integration test different, as it now uses a real Google certificate that is
in the whitelist with only a cert verification rather than a full connection
test.

This patch does not add the DigiCert SPKIs to the list; I will do that in its
own patch.


[1] https://chromium.googlesource.com/chromium/src/+/master/net/data/ssl/symantec/README.md
[2] https://chromium-review.googlesource.com/c/chromium/src/+/916730
[3] https://crt.sh/?spkisha256=ac50b5fb738aed6cb781cc35fbfff7786f77109ada7c08867c04a573fd5cf9ee

MozReview-Commit-ID: 4qVeogDbSb

--HG--
extra : rebase_source : 6912963abe7d05bf2a944fae1209512650763032
2018-02-20 16:27:14 -05:00
J.C. Jones dfc697cb54 Bug 1434300 - Add a utility to match certificates based on SPKI r=fkiefer,keeler
This modifies crtshToDNStruct.py to be able to produce SPKI or DN-based lists,
and adds a SPKI-search method to TrustOverrideUtils.h.

This also regenerates the TrustOverride files to use the new script.

MozReview-Commit-ID: BhMoJbYXs7Y

--HG--
rename : security/manager/tools/crtshToDNStruct/crtshToDNStruct.py => security/manager/tools/crtshToIdentifyingStruct/crtshToIdentifyingStruct.py
rename : security/manager/tools/crtshToDNStruct/requirements.txt => security/manager/tools/crtshToIdentifyingStruct/requirements.txt
extra : rebase_source : 335d7fc05fa35fbb54ee7ee518b9f4e0c7a00159
2018-02-20 16:27:14 -05:00
J.C. Jones 0534d6fb09 Bug 1434300 - Disable the b-c imminent distrust test r=keeler
The browser console test for imminent distrust relies upon certs inserted
into build/pgo/certs/cert8.db and key3.db [1], and seemed angry when adding new
certs with certutil bumping those to cert9 and key4 formats. Since time is
getting to be of-the-essence with Bug 1434300, I've filed Bug 1439378 to re-
enable this test post-landing.

[1] https://hg.mozilla.org/mozilla-central/rev/98b1272e170c

MozReview-Commit-ID: I4SIiqc5AqH

--HG--
extra : rebase_source : 06295cbed14f2a793162073e707e14026ea69625
2018-02-20 16:27:14 -05:00
J.C. Jones 316692cd6e Bug 1434300 - Implement the Symantec distrust plan from Bug 1409257 r=fkiefer,keeler
The algorithm from https://hg.mozilla.org/mozilla-central/rev/595e27212723
(Bug 1409259) is adapted in this patch from nsNSSCallbacks into the TrustDomain
decisions.

This patch does not change the algorithm to use SPKI matching, nor add the
additional whitelisted intermediates from DigiCert; that will be done in a
separate commit.

This patch also does not update the pre-existing browser chrome test.

MozReview-Commit-ID: 1PdCAqo71bI

--HG--
extra : rebase_source : bc0b1b419dc340a033008d9e9e3b443a2751d5d1
2018-02-20 16:27:04 -05:00
J.C. Jones d1bff6c67a Bug 1434300 - Update Imminent Distrust status for future Symantec sanctions r=fkiefer,keeler
This patch does a few things:

1) It adds a permament test mechanism for the "imminent distrust" trust status
in nsNSSCallbacks: a simple xpcshell test to exercise a clause in the imminent
distrust logic in nsNSSCallbacks' IsCertificateDistrustImminent method.

2) This test removes test_symantec_apple_google_unaffected.js as its
functionality is rolled into the new test_imminent_distrust.js.

3) It updates the Symantec imminent distrust warning algorithm to remove the
validity date exception; this warns of the upcoming distrust for those affected
certs in Firefox 63.

This patch does not attempt to edit the browser chrome test that checks the
console; that is a subsequent patch.

MozReview-Commit-ID: 1HyVLfmEOP7

--HG--
extra : rebase_source : 48c9caae2d26a7e36102b4770c4044101acf0712
2018-02-19 09:33:36 -07:00
Michael Ratcliffe ad6889fdd2 Bug 1420130 - Remove React Proxy Monkeypatch and see how it affects DAMP r=gregtatum
MozReview-Commit-ID: 9L9PYPDGTmj

--HG--
extra : rebase_source : e5fbef2c7221b92d54903a53fbb1106cdeb2f550
2018-02-13 13:26:03 +00:00
Kit Cambridge da05a16e0a Bug 1439061 - Stop tracking on engine finalization and clean up in history engine test. r=tcsc
MozReview-Commit-ID: JjgMdQwbnly

--HG--
extra : rebase_source : cc8d29a3170ea01df534c3b4de6fbec8a13c58e3
2018-02-16 19:21:06 -08:00
Nico Grunbaum 0bd02a8387 Bug 1439001 - AudioLevel RTP header ext. send/recv sense reversed in xceiver r=drno
MozReview-Commit-ID: CyI4Rh3juUe

--HG--
extra : rebase_source : 41369ba143754620f8c251d048e19d9924ba2029
2018-02-16 16:27:07 -08:00
Thom Chiovoloni 90ed047093 Bug 1439675 - Fix invalid JSON in TPS's all_tests.json r=markh
MozReview-Commit-ID: 1UQ4a7Ebpv7

--HG--
extra : rebase_source : 098dc9e810f696b6de2fa2e92914542aa9ad5da8
2018-02-20 12:59:21 -05:00
Tom Ritter 44c16a02e2 Bug 1438953 Increase the epsilon on timer reduction tests r=froydnj
In Javascript, we re-clamp timers to ensure they stay the same. Because of double imprecision
sometimes they don't stay the same, and are clamped downwards. If that happens we detect it,
and if we were originally off by an epsilon from a clamped value, we accept the value in the
name of double imprecision.

However, the epsilons were originally chosen somewhat arbitrarily. They worked for small
numbers, where imprecision from doubles were very small. But large doubles have much less
precise fractional parts. So the epsilons were too small for large numbers where the
imprecision was larger.

In Bug 1435296 we stopped reducing the precision of CSS Animations by default, and changed
the test to throw an error if they WERE rounded. After we increased the epsilon in this
patch, we began to see false positives - we were getting values that were not rounded, but
happened to be within the epsilon window and thus appeared rounded. We change the check so
instead of seeing if an Animation is not rounded, and erroring if it is, to accepting any
value.

MozReview-Commit-ID: HnYYo4cuv96

--HG--
extra : rebase_source : 19993a4684a19a646dff43147149e9fc52f2cd0b
2018-02-16 12:31:55 -06:00
shindli b92e3fe192 Backed out 2 changesets (bug 1433593) for xpcshell on /tests/unit/test_IE7_passwords.js on a CLOSED TREE
Backed out changeset c1b0ea577728 (bug 1433593)
Backed out changeset 96327b595b91 (bug 1433593)
2018-02-20 23:01:54 +02:00
Mark Banner 01319d9d04 Bug 1437584 - Enable ESLint rule mozilla/use-services for testing/. r=jmaher
MozReview-Commit-ID: DMkgj5UAId4

--HG--
extra : rebase_source : 155f657e68f04850e878535afdb1421933b4a13b
2018-02-12 17:10:00 +00:00
Rob Wood 9fd4018d70 Bug 1384272 - Add a talos test that tracks the performance of opening about:preferences; r=jmaher
MozReview-Commit-ID: LuHosK5chMN

--HG--
extra : rebase_source : 2bdf10c088c9a93b91cd09a85f62630c53bd3992
2018-02-09 18:46:04 -05:00
Adrian Wielgosik 244e676451 Bug 1438956 - Modify HTMLMediaElement::Seek to avoid undefined behavior. r=bz
Previously, in IsInRanges, aIntervalIndex could have values between -1..length-1.
After the change, the values are in range 0..length, which makes it possible to use unsigned ints and avoid UB.

MozReview-Commit-ID: 39SIzXRHv91

--HG--
extra : rebase_source : d0efebb4bc13694eb7d2048cd2eae2d6386238cf
2018-02-17 19:29:43 +01:00
Adrian Wielgosik 8cb213f738 Bug 1438956 - Add inline Start/End TimeRanges methods for C++ users. r=bz
MozReview-Commit-ID: DcLsYyKV7WX

--HG--
extra : rebase_source : 1891f87a72380ed6f57d1790659c10ea416ccf15
2018-02-16 19:36:40 +01:00
Adrian Wielgosik d729e5e045 Bug 1438956 - Remove nsIDOMTimeRanges. r=bz
MozReview-Commit-ID: DAgQ0OkSxkq

--HG--
extra : rebase_source : e995b4d76186032fc048bc7b63f4e1e2aee046b4
2018-02-16 19:34:28 +01:00
Thom Chiovoloni e3bfce50d6 Bug 1438445 - Refactor bookmark validator to be simpler and more correct r=kitcambridge,markh
MozReview-Commit-ID: 9vhiqHUOtzt

--HG--
extra : rebase_source : 2b7bc5201ad9450bb759c6adb16779f2228a304d
2018-02-15 13:01:11 -05:00
Ethan Glasser-Camp f2052cf9c9 Bug 1438973: Update version of kinto.js to 11.0.0 r=MattN
MozReview-Commit-ID: 2Byd1HcbhHW

--HG--
extra : rebase_source : abc324efc5f52f1d198da2a645ddbc750a56294c
2018-02-16 15:08:18 -05:00
shindli 1e4755bc65 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-20 21:14:11 +02:00
shindli f1c5255ad4 Merge inbound to mozilla-central. a=merge 2018-02-20 21:09:49 +02:00
Nick Alexander 5d736e0310 Bug 1439459 - Expose MOZ_ANDROID_GOOGLE_PLAY_SERVICES to AndroidManifest.xml. r=Grisha
This was oversight when landing Bug 1419581, coupled with dedicated
testing by Grisha.  We don't expose all CONFIG values as DEFINES by
default, and I forgot to add the relevant value to the exposure list.

MozReview-Commit-ID: GUYNWampBAJ

--HG--
extra : rebase_source : f946f2630f2e9120d03b05a4677815e73ab6851a
2018-02-20 10:06:13 -08:00
Jan de Mooij b33bb18330 Bug 1437862 part 3 - Refactor guardTypeSet and guardObjectType to be a bit simpler. r=nbp
--HG--
extra : rebase_source : 3b844ea7244684b8ced0e3923de0e5c297ccc28a
2018-02-20 17:32:28 +01:00
Jan de Mooij 14099a20d5 Bug 1437862 part 2 - Make guardTypeSetMightBeIncomplete debug-only. r=nbp
--HG--
extra : rebase_source : e0a5da5a554fe8fbe65b7a33d7eafb58e100c048
2018-02-20 17:18:36 +01:00
Jan de Mooij 10f36f5027 Bug 1437862 part 1 - Clean up register allocation in generateArgumentsChecks. r=nbp
--HG--
extra : rebase_source : a44f4b54571d2030d96ef6af7dae330da5282f62
2018-02-20 17:18:00 +01:00