Commit Graph

574359 Commits

Author SHA1 Message Date
Jean-Yves Avenard
9c5a09051e Bug 1404997 - P26. Give Await the threadpool to use. r=gerald
This allows to re-use the SharedThreadPool across calls, preventing the need to create a new thread on each call.

MozReview-Commit-ID: CbP6OTYKhHL

--HG--
extra : rebase_source : 969f2c74f00614d6265fe0e25abfb36c9648d564
2017-12-15 20:06:38 +01:00
Jean-Yves Avenard
19542f34d4 Bug 1404997 - P25. Add MSG and WebRTC MediaThreadType. r=gerald
Additionally, remove no longer relevant MediaThreadType documentation as all MediaDataDecoder API are now asynchronous and we no longer have cancellable taskqueues.

MozReview-Commit-ID: 1F0YUhNniAn

--HG--
extra : rebase_source : 7b93ef24f91ccc21537e78bbb8a2d82bafacd29e
2017-12-15 18:39:33 +01:00
Jean-Yves Avenard
998881b06e Bug 1404997 - P24. Make AutoTaskQueue deliver runnables to nsIEventTarget. r=gerald
Similar to bug 1300118 for TaskQueue.

MozReview-Commit-ID: 8jIifvs2r4U

--HG--
extra : rebase_source : f1c8ab791fa853c4d69cfb8791a418654a5d4142
2017-12-15 18:14:02 +01:00
Masayuki Nakano
59ff865ade Bug 1425390 - part 2: Make the constructor of CompositionTransaction take TextComposition to reduce its arguments r=m_kato
Most arguments of the constructor of CompositionTransaction are now stored by
EditorBase::mComposition.  So, making it take TextComposition reduces the
number of its arguments.

Note that this patch doesn't make it retrieve TextComposition with
EditorBase::GetComposition() for guaranteeing that the editor has non-nullptr
mComposition.

MozReview-Commit-ID: 3O5wL52UBUy

--HG--
extra : rebase_source : 7f48465ef3f2f040e8c526fb7837060ecb6c9147
2017-12-15 16:45:41 +09:00
Masayuki Nakano
6e8192fd45 Bug 1425390 - part 1: Move some IME related members of EditorBase into TextComposition r=m_kato
EditorBase stores a text node, offset in it and length in it of composition
string directly.  However, this wastes memory space if user never uses IME
or user only sometimes uses IME.  Additionally, storing all data in
TextComposition is better than current design when other classes like
CompositionTransaction wants some information of both EditorBase and
TextComposition.

This patch moves those 3 members from EditorBase to TextComposition.

MozReview-Commit-ID: 4N7wmGGfxmt

--HG--
extra : rebase_source : bd7cb37fe9631b959ec21da40c20751fec269dca
2017-12-15 13:14:51 +09:00
Brian Birtles
f464fbbad3 servo: Merge #19580 - Update references to Web Animations spec (from birtles:update-web-animations-link); r=hiro
This has been reviewed in [Gecko bug 1425548](https://bugzilla.mozilla.org/show_bug.cgi?id=1425548).

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : be54a712cafe4eb7fb42bc073bd687f6fd0220cb
2017-12-15 17:39:55 -06:00
Cosmin Sabou
2d8d0b4c2c Backed out 3 changesets (bug 1423425) for frequent browser chrome failures r=backout on a CLOSED TREE
Backed out changeset c3ac950b0b8a (bug 1423425)
Backed out changeset d64fd69a4b88 (bug 1423425)
Backed out changeset 04017639642a (bug 1423425)
2017-12-16 02:45:41 +02:00
Miko Mynttinen
03b4894819 Bug 1425271 - Improve temporary display item removal r=mattwoodrow
MozReview-Commit-ID: FBDuGice0DU

--HG--
extra : rebase_source : 3e932e2851d9f706e11c56156a5bc48a2df8b1c2
2017-12-15 16:33:03 -06:00
Jean-Yves Avenard
1769747959 Bug 1404997 - P23. Strongly enforced that our destination buffer is big enough. r=padenot
MozReview-Commit-ID: A1kLsH75SzX

--HG--
extra : rebase_source : bcc4460507638ef36986ad519e48ba2d4596f4cf
2017-12-13 18:44:30 +01:00
Mark Banner
e3391599af Bug 1425003 - Fix GeckoViewNavigation.jsm referencing undefined URIFIxup - switch to Services.uriFixup. r=snorp
MozReview-Commit-ID: IKs6HBQwLAU

--HG--
extra : rebase_source : 10c1d4b44f19ba69d5e4ab65501b23a021480705
2017-12-13 09:02:36 -06:00
Emilio Cobos Álvarez
a4ae45ac68 servo: Merge #19595 - style: Add a FIXME comment that I need to write a test-case for (from emilio:broken-code-all-around); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: fab8042fa73ff326a0fa5c65863434eac0070ac1

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 23fdd1f370979cb387cc6deb1eadfe0be98eeff2
2017-12-18 07:24:13 -06:00
Tanvi Vyas
001b4325b4 Bug 1420610 - Check if url loaded within newTabPromise to resolve timeouts. r=gijs 2017-12-13 15:55:00 +02:00
Cosmin Sabou
0d3cfac1b7 Backed out changeset 5eff2c0351a9 (bug 1418752) for marionette harness fails on OS X at /builds/worker/workspace/build/src/netwerk/base/nsNetUtil.cpp:2669 r=backout on a CLOSED TREE 2017-12-18 19:50:00 +02:00
Olli Pettay
1d4729afe6 Bug 1412775 - Implement Event.composedPath, tests for chrome handling, r=stone
--HG--
extra : rebase_source : 1f13feb180f5d42e8bc4b3092b11a942d9dd37ab
2017-12-18 18:08:03 +02:00
Olli Pettay
d78d3295c5 Bug 1412775 - Implement Event.composedPath, r=stone
--HG--
extra : rebase_source : a970c4a0daac4a7a02cec34733131734eb93b151
2017-12-18 18:07:36 +02:00
Andrea Marchesini
b1b879f86e Bug 1422316 - WorkerJSRuntime::Shutdown must call the base class ::Shutdown method, f=yoric, r=bkelly 2017-12-18 17:59:30 +01:00
Ben Kelly
41971c4dc5 Bug 1425704 Fix nullptr deref in android-only Clients.openWindow() when browser is not running. r=asuth 2017-12-18 11:55:18 -05:00
Andrea Marchesini
6b58966a8e Bug 1425509 - Initialize PerformanceService in RuntimeService, r=bkelly 2017-12-18 17:49:54 +01:00
Ting-Yu Chou
0bc952653b Bug 1360650 part 2 - Export VSINSTALLDIR so LLVM_ENABLE_DIA_SDK will be set. r=ehsan 2017-12-18 11:28:20 -05:00
Ting-Yu Chou
a5fdd873e9 Bug 1360650 part 1 - Archive pdb files of the binaries for llvm-symbolizer. r=ted 2017-12-18 11:26:02 -05:00
Michal Novotny
6c2705da74 Bug 1418752 - Firefox instahang on start after landing patch from bug #1392841, r=honzab
Initialize in advance all security services whose initialization on background thread could cause a deadlock.
2017-12-15 05:45:00 +02:00
Leni Kadali
af1b617e27 Bug 1315704 - Test that BaseMarionetteArguments constructs arguments as expected; r=maja_zf 2017-12-13 12:59:09 +03:00
Ben Hearsum
06279bca58 bug 1425838: use post-beetmover-dummy to fix max dependency issues in release-notify-promote and release-updates-builder. r=aki 2017-12-18 10:57:29 -05:00
Ben Hearsum
af8d160c6d bug 1425562: don't assume all desktop release_history is firefox. r=rail 2017-12-18 10:56:42 -05:00
Ben Hearsum
2bca6cf657 bug 1425470: set update channel for devedition l10n repacks. r=aki 2017-12-18 10:56:00 -05:00
Johan Lorenzo
1dcf32a54b bug 1425095: add in-tree balrog publishing tasks. r=bhearsum 2017-12-18 10:54:58 -05:00
Sean Lee
41a96702ef Bug 1417803 - Part 3: Use activeField to record the current focused input. r=lchang,ralin
MozReview-Commit-ID: 4j72RXk2Wpb

--HG--
extra : rebase_source : bb8fb6861c403105dd59b9415a897789502202cf
2017-12-11 19:28:47 +08:00
Sean Lee
e9699c8bff Bug 1417803 - Part 2: Add a underscore to the private functions. r=lchang,ralin
MozReview-Commit-ID: K8FLWgojZrw

--HG--
extra : rebase_source : 60421b657deb5d80698080f66bd20481c564f927
2017-12-11 15:39:00 +08:00
Jean-Yves Avenard
485b10a8b0 Bug 1404997 - P22. Make mConduit release on main thread consistent. r=pehrsons
There's no need for a custom class to perform this task.

MozReview-Commit-ID: JxpDQVM97fl

--HG--
extra : rebase_source : 8387efa0ed3add9e4a42daed98e97372d9cabee5
2017-12-11 00:32:00 +01:00
Jean-Yves Avenard
0c03c673b3 Bug 1404997 - P21. Make MediaPipelineReceiveAudio listener asynchronous. r=pehrsons
We keep the synchronous version that will be used in bug 1424653

MozReview-Commit-ID: JTGaRYm20ca

--HG--
extra : rebase_source : aa694b7ac4f03322edbdefd64cefd198c0909cec
2017-12-11 00:16:24 +01:00
Jean-Yves Avenard
1fc0ccabbd Bug 1404997 - P20. Make MediaStreamListener::NotifyPull asynchronous. r=padenot
The operations is done in two ways:
1- Process all the MediaStreamListener at once, which returns a promise that will be resolved once the operation is completed.
2- As the Cubeb audio callback must be resolved immediately, the MSG will wait for all the promises to be resolved until it continues the operation of feeding the callback the necessary data.

This will allow to parallelize the stream's tracks' audio decoding.

MozReview-Commit-ID: EeoDvxnJyWV

--HG--
extra : rebase_source : 3d09af5aa3c80c4892a4d9af80842541d8fc33bb
2017-12-10 21:33:43 +01:00
Dylan Roeh
3bc4b07b8e Bug 1422902 - Handle exceptions from WebAppManifest code rather than crashing. r=snorp 2017-12-08 15:53:30 -06:00
Robert Strong
d7bc24a8d9 Bug 1425920 - Change telemetry value for DWNLD_RESUME_FAILURE from 15 to 16 so it isn't reusing the value for DWNLD_ERR_VERIFY_NO_HASH_MATCH to simplify the out of date dashboard. r=mhowell 2017-12-18 11:36:37 -08:00
Kartikaya Gupta
ef25b831a8 Bug 1280667 - Followup to use the ok function from the testgroup, which logs the subtest name as well. r=me
DONTBUILD because trivial followup

MozReview-Commit-ID: IP716FV4WP6
2017-12-18 14:33:33 -05:00
Jean-Yves Avenard
c32881f98c Bug 1404997 - P19. Use new Await method with WebrtcMediaDataDecoder. r=gerald
MozReview-Commit-ID: nRQL312aDE

--HG--
extra : rebase_source : d63e120d24ab4e7f10843387b321fa2ed05f5af3
2017-12-08 17:30:28 +01:00
Jean-Yves Avenard
95126c57ea Bug 1404997 - P18. Add Await convenience methods. r=gerald
Takes either a MozPromise or an AllPromiseType and will execute the resolve/reject functions synchronously once the promise has resolved/rejected.

MozReview-Commit-ID: EyfMTPtA1Lu

--HG--
extra : rebase_source : 780ab41307158d7887cd76782e43693079f78c91
2017-12-08 13:35:29 +01:00
Jean-Yves Avenard
8ee5b6a296 Bug 1404997 - P17. Split ExtractPendingInput into two methods. r=padenot
There were two steps happening inside ExtractPendingInput:
1- Retrieve the data from the StreamTracks
2- Process any pending pending states change

We split it so that the retrieval from the StreamTrack can be promisified in an upcoming change

MozReview-Commit-ID: 53O4fXWMDGL

--HG--
extra : rebase_source : da082fa8db3a9029dc05d845cb9f58514f5ffcff
2017-12-07 20:52:56 +01:00
Nicholas Nethercote
42f4510bf1 Bug 1424030 - Fix integer overflow of places.database.lastMaintenance in testing/profiles/prefs_general.js. r=standard8.
Bug 1382444 added this line to testing/profiles/prefs_general.js:

> user_pref("places.database.lastMaintenance", 7258114800);

(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.

MozReview-Commit-ID: LJQmMqQ9hFL

--HG--
extra : rebase_source : 84339c8e721abd47cb3cc85c3923a04417b1bbee
2017-12-08 06:47:28 +11:00
Jean-Yves Avenard
ec5bd7af01 Bug 1404997 - P16. Properly finish the SourceMediaStream during shutdown. r=padenot
Despite the name of the function, the original SourceMediaStream::Finish() (consequently renamed FinishPending) didn't actually finished the stream, but instead set a bool that would indicate to completely finish the stream once ExtractPendingInput ran. But here it could never run again.
So actually do what the original fix intended to do (bug 1410829)

MozReview-Commit-ID: 1hHiOLiovG

--HG--
extra : rebase_source : 7b108a96b54c92812ba583b0dc78ceddbfe15636
2017-12-07 20:20:53 +01:00
Masatoshi Kimura
a214244141 Bug 1425217 - Remove Encoding::ForName. r=hsivonen
MozReview-Commit-ID: JzJ2VYGRzf0

--HG--
extra : rebase_source : 38207daa923175d90b0319dae7e166164835af97
2017-12-08 00:31:55 +09:00
Jean-Yves Avenard
d62fc9df33 Bug 1404997 - P15. Move MSG::FinishStream logic to MediaStream. r=padenot
It is good practice for the MSG to now know the implementation details of the MediaStream.

Additionally, this will allow to make a thread-safe version later.,

MozReview-Commit-ID: CTacCLSeKRP

--HG--
extra : rebase_source : 4feb4beb12f4cd2a6fb67fd6a18f003ea8b18869
2017-12-07 16:12:19 +01:00
Jean-Yves Avenard
a21ef82be7 Bug 1404997 - P14. Rename members to clarify the finish meaning. r=padenot
We have different concept of "finish" between the base class and its hierarchy.
Attempt to clear the sitatuation by renaming the members and related methods.

MozReview-Commit-ID: vFsXhMK5GY

--HG--
extra : rebase_source : 65eda9257e447584161da51af7c240e31027c501
2017-12-06 19:00:22 +01:00
Jean-Yves Avenard
55065b688d Bug 1404997 - P13. Move ExtractPendingInput logic to SourceMediaStream. r=padenot
The MSG shouldn't have to know about the inner details of the SourceMediaStream

MozReview-Commit-ID: 2S81SPzy09E

--HG--
extra : rebase_source : dff8384b19442e7686cef42420372e39f10094b6
2017-12-06 16:55:56 +01:00
David Teller
8af5435a34 Bug 1377007 - Tweak BoyerMoorePositionInfo::SetInterval to keep PGO builds happy;r=jandem
Attempting to build Bug 137707 fails with Linux 64 PGO (and only with
Linux 64 PGO) with the following error:

INFO -  /builds/worker/workspace/build/src/js/src/irregexp/RegExpEngine.cpp:2326:5: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
INFO -       for (int i = interval.from(); i <= interval.to(); i++) {
INFO -       ^^^

I suspect that this is actually a bug in PGO itself, rather than in
the code. However, replacing `<= interval.to()` with `!= interval.to()
+ 1` seems to do the trick.

MozReview-Commit-ID: IsayKhgkwWq

--HG--
extra : rebase_source : e4f3712b9606177326a00e15102a96c144ec26a8
2017-12-06 14:05:35 +01:00
David Teller
0da9f18390 Bug 1377007 - autospider.py,runcppunittests.py export the path to directory js/src,r=Yoric
Some tests need to find out js/src to locate their test
data. Exporting this information as part of the environment.

MozReview-Commit-ID: JAefL2arhJL

--HG--
extra : rebase_source : b99d55c4ab4335ea938d8f3a9c733ea74f02fddf
2017-12-08 11:14:12 +01:00
Andrew Swan
8c271228b8 Bug 1423425 Initial draft of WebExtensions API documentation r=bsilverberg
MozReview-Commit-ID: EwcE881XGfp

--HG--
extra : rebase_source : 13ef6ba6ff73349c9fe5c25f16b305418b9804ff
2017-12-05 18:54:34 -08:00
Andrew Swan
0d4f03ba94 Bug 1423425 Make some extensions comments jsdoc-compatible r=kmag
MozReview-Commit-ID: 3mUKR9IuEKA

--HG--
extra : rebase_source : 30d3bcf27f7a0e5367ed6c2dc3cccf74b9758ec5
2017-12-05 18:53:15 -08:00
Andrew Swan
02474d47f7 Bug 1423425 Let sphinx-js read .js files r=erik
MozReview-Commit-ID: LfL3CG6L4Ss

--HG--
extra : rebase_source : 5a53dac9891fc9233a8b380c4a52eb9154c564a9
2017-12-05 18:53:59 -08:00
David Keeler
27da53bcf6 bug 1425032 - use new "cancel all connections" notification for PKCS#11 logout r=mgoodwin
When the user performs a PKCS#11 logout, we need to cancel all in-progress
network connections. Before this patch, PSM would track all the sockets it
created to implement this feature. However, bug 1411316 added the ability to
cancel these connections by sending the notification
"net:cancel-all-connections". This patch removes the now-unnecessary tracking
machinery in favor of delegating this to necko.

MozReview-Commit-ID: 7IzC14bH2R4

--HG--
extra : rebase_source : 57ff2121a2395cb2b012785ec3a11f75d923e675
2017-12-13 17:41:02 -06:00
Gerald Squelart
024f843fb6 Bug 1425550 - Output frame tree when RDL checker finds issues - r=mattwoodrow
MozReview-Commit-ID: IGnFpDuk0Sc

--HG--
extra : rebase_source : 28099067dd8bcecd51cdc56a5befcf807f140f89
2017-12-15 14:56:37 -06:00