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

73907 Коммитов

Автор SHA1 Сообщение Дата
Coroiu Cristina 323bc1bd69 Merge autoland to mozilla-central a=merge 2018-04-11 00:54:18 +03:00
Ryan VanderMeulen 355897fc22 Backed out changeset cb808626c8df (bug 1424505) because it didn't help with the crashes. r=jimm, a=RyanVM 2018-04-10 16:26:55 -04:00
Bob Owen e2dd0c27f0 Bug 1451376: Properly enforce single PrintingParent per content process. r=jld 2018-04-10 15:36:26 +01:00
Gurzau Raul 59bd7c58a9 Backed out changeset c905d37ed54a (bug 1451376) for bustage on workspace/build/src/dom/ipc/ContentParent.cpp on a CLOSED TREE 2018-04-10 16:17:51 +03:00
Bob Owen baef6401be Bug 1451376: Properly enforce single PrintingParent per content process. r=jld 2018-04-10 13:58:06 +01:00
Cameron McCormack 3a70eaa88b Bug 1317541 - Merge number-control.css back into forms.css. r=mats
MozReview-Commit-ID: AGfsSF4dORN

--HG--
extra : rebase_source : b0fbe05bcef3e7228f43f6fb417fdaf430961f03
2018-04-10 11:04:41 +10:00
Cameron McCormack 9dfabd795c Bug 1317539 - Remove dom.forms.number pref. r=bz
MozReview-Commit-ID: EgeUfWMcE8D

--HG--
extra : rebase_source : 74cb7f69e21fd1a773259a53919fb04a82af2f5d
2018-04-10 11:02:28 +10:00
Boris Zbarsky 4ec0cf9709 Bug 1453132. Change nsIEventListenerService to use WebIDL event listeners, not nsIDOMEventListener. r=smaug
The test change is needed because there is no notok() function.  But the old
nsIDOMEventListener setup would fail to report the exception anywhere, so the
test still passed (albeit without testing what it thought it was testing).  The
new setup reports the exception via an error event on the window, and the test
harness notices that.

MozReview-Commit-ID: 3ISmcyhMk0R
2018-04-11 10:27:01 -04:00
Boris Zbarsky 7477a7ddce Bug 1452862. Remove various pointless QueryInterface implementations from bindings. r=qdot
BarProp, CaretPosition, Crypto, CSSMozDocumentRule, CSSPrimitiveValue,
CSSStyleDeclaration, CSSStyleRule, CSSValueList, DOMImplementation,
DOMTokenList, FileList, FrameLoader, FormData, HTMLCollection, History,
MimeTypeArray, NamedNodeMap, MutationObserver, MutationRecord, Navigator,
NodeIterator, PaintRequest, PaintRequestList, Plugin, Rect,
SVGAnimatedEnumeration, SVGAnimatedInteger, SVGAnimatedNumber,
SVGAnimatedNumberList, SVGAnimatedPreserveAspectRatio, SVGAnimatedString,
SVGLengthList, SVGNumberList, SVGPathSegList, SVGPoint, SVGPointList,
SVGPreserveAspectRatio, SVGRect, SVGStringList, SVGTransformList, Touch,
TouchList, TreeWalker, ValidityState only implement nsISupports, so
there's no point QIing them.

DOMStringMap, FrameLoader, NodeIterator, SVGPoint, StyleSheet only implement
non-scriptable non-shimmed interfaces (nsIMutationObserver, nsISVGPoint,
nsICSSLoaderObserver), so can't be usefully QIed from script.

EventSource, Notification, OfflineResourceList, Performance, Screen,
WebSocket, XMLHttpRequestUpload only implement nsIDOMEventTarget, and nothing
QIs to that in script.

PluginArray QIs to nsIObserver but doesn't expose any corresponding methods.
None of the QIs to that interface seem to be on PluginArray objects.

Range QIs to nsIDOMRange, but there is no JS code that QIs to that.

NodeList QIs to nsIDOMNodeList, but there is no JS code that QIs to that.

XMLSerializer doesn't even implement nsISupports.

MozReview-Commit-ID: Fil5cBd4K4d
2018-04-11 10:27:00 -04:00
Boris Zbarsky 2542e6eb8a Bug 1452741. Stop using the no-arg DOMEventTargetHelper constructor in MediaTrack. r=bkelly
MozReview-Commit-ID: AbE3XJdj4KO
2018-04-11 10:27:00 -04:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Nathan Froyd 798efd6d66 Bug 1453134 - part 3 - be smarter about input stream semantics in DataTransfer; r=baku
We could have used the new NS_NewCStringInputStream overload here, but
it seemed nicer to directly transfer ownership into the newly-created
stream.  If we're going to be more efficient here, we might as well go
as far as when can without making the code too ugly.
2018-04-11 10:06:17 -04:00
Nathan Froyd 62f2c5af64 Bug 1453134 - part 2 - use new string input stream constructor in FSURLEncoded; r=baku
The XXX comment here wants to give up the string data when we create the
outgoing stream.  Giving up the string data is legitimate, because
GetEncodedSubmission is the last operation to be called on this object;
mQueryString is effectively dead after this function returns.
Accordingly, we can Move() mQueryString into the outgoing stream for a
nice efficiency boost.
2018-04-11 10:06:17 -04:00
Nathan Froyd 7bb7ffd8c9 Bug 1453134 - part 1 - add a string input stream constructor that accepts move references; r=baku
This method is more efficient when we know we're not going to need the
string afterwards, and should cut down on intermediate allocations.
2018-04-11 10:06:17 -04:00
Bryce Van Dyk f16be73b01 Bug 1447273 - Add test to check that different GainNode configuraitons produce correct output. r=padenot
MozReview-Commit-ID: 6iaCqotLmug

--HG--
extra : rebase_source : abdc6daf57979cb117e4a0e41078594c68d6d58e
2018-04-05 14:58:08 -04:00
Kris Maglione 2475362f04 Bug 1451940: Don't reparse stylesheets when assigning empty string to empty element. r=bz
Per spec, assinging an empty string to textContent or innerHTML should not
trigger any mutation observers, and therefore should not trigger a stylesheet
reparse, when the element is already empty.

Since we need to apply some special handling to innerHTML and textContent
assignments to <style> nodes, and therefore re-parse directly in the setter
rather than in response to mutation observers, we need to special-case this
scenario.

MozReview-Commit-ID: KdOYFs8ayT7

--HG--
extra : rebase_source : 67b85174d08028c5200964800b657950aa2bffa2
2018-04-10 11:06:26 -07:00
Ben Kelly a2fce061cf Bug 1450274 P3 Make WorkerGlobalScope call DisconnectEventTargetObjects() when the worker reaches the Terminating state. r=baku 2018-04-10 11:00:57 -07:00
Ben Kelly 4d9ff997d3 Bug 1450274 P2 Make ServiceWorkerRegistration use DETH::KeepAliveIfHasListenersFor(). r=asuth 2018-04-10 11:00:56 -07:00
Ben Kelly 21a91c3b30 Bug 1450274 P1 Make ServiceWorker use DOMEventTargetHelper::KeepAliveIfHasListenersFor(). r=asuth 2018-04-10 11:00:56 -07:00
Brian Grinstead 6cb530800d Bug 1446247 - Pass namespace into IsCustomElementName to allow for non-dashed XUL elements;r=e7358d9c+590837,smaug
This will make it possible to migrate existing bindings without also needing to
mass-rewrite frontend code at the same time.

MozReview-Commit-ID: IBBqC4eeDDX

--HG--
extra : rebase_source : e901ac665208b3a683668c1bb33a26dcf479580c
2018-03-29 09:34:56 -07:00
Hiroyuki Ikezoe 1a43163be4 Bug 1443427 - Don't flush throttled animations in Animation::FlushStyle(). r=birtles
Animation::FlushStyle() gets called only for CSS animations/transitions'
playState changes in JS or ready Promise for CSS animations.  In either case
throttled animation state, which is, to be precise, transformed position or
opacity value on the compositor, doesn't affect those results.

The first test case for CSS animations and the first test case for CSS
transitions in this patch fail without this fix.

MozReview-Commit-ID: EVym4qputL4

--HG--
extra : rebase_source : 12524c7db1d59da69687bb123fc65ad4301f5527
2018-04-11 18:01:14 +09:00
Blake Kaplan 543e672dd4 Bug 1391154 - Handle edge cases around the borders of IntersectionObservers more consistently. r=dholbert
The old code would ignore mThresholds if we happened to update when the
observed element was edge-adjacent to its root. This could cause spurious
notifications if it happened to run during a CSS transformation. The new code
more closely follows the spec with a slight deviation where the code treats
all values less than the smallest passed-in threshold as equivalent (when
looking at previousIndex). This matches Chrome's implementation and the tests.

MozReview-Commit-ID: 7oAh1EdjMiY

--HG--
extra : rebase_source : 46de4aee9c7da36bd1b41c07fa9b6bbe8ee15dc0
2018-04-10 18:54:01 -07:00
Tomislav Jovanovic 9e09943ad5 Bug 1441336 - Use addon permissions for PerformanceTiming properties r=bz,kmag
We need to side-step existing cross-origin checks in Performance Timing code
when the caller is a web extension content script that otherwise has permission
to access the cross-origin resource.

MozReview-Commit-ID: 8IgtqZgPWgY

--HG--
extra : rebase_source : e8152c5d8ab32096d1ff7f97311c1b43b57c3694
2018-04-04 16:54:26 +02:00
Jeff Walden 4b9e315a13 Bug 1452754 - Handle promise rejection in cases of error or otherwise through RAII in MapDataIntoBufferSource::DoMapDataIntoBufferSource. r=jgilbert
--HG--
extra : rebase_source : 52341f938e87ab4fa35926494ed927fde8a2e744
2018-04-09 12:57:10 -07:00
arthur.iakab bbca7c7700 Merge mozilla-central to inbound 2018-04-11 01:17:20 +03:00
arthur.iakab 280690d83e Merge mozilla-central to inbound 2018-04-11 01:02:05 +03:00
Nika Layzell da7423dfa5 Bug 1444151 - Part 4: Remove the now-unnecessary xpcom-style segment getters, r=valentin 2018-04-10 17:49:50 -04:00
Nika Layzell 48ff89c65b Bug 1443956 - Part 2: Support serializing nsIPrincipal directly over IPDL, r=froydnj 2018-04-10 17:49:49 -04:00
Nika Layzell 952f6a915a Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku
This patch was reviewed in parts, however the intermediate states would not build:

Bug 1443954 - Part 3A: Strip pointers from the argument to WriteParam and WriteIPDLParam before selecting the ParamTraits impl, r=froydnj

Bug 1443954 - Part 3B: Move nsIAlertNotification serialization to the refcounted system, r=bz

Bug 1443954 - Part 3C: Move geolocation serialization to the refcounted system, r=bz

Bug 1443954 - Part 3D: Move nsIInputStream serialization to the refcounted system, r=baku

Bug 1443954 - Part 3E: Move BlobImpl serialization to the refcounted system, r=baku

Bug 1443954 - Part 3F: Correctly implement ParamTraits for actors after the ParamTraits changes, r=froydnj
2018-04-10 17:49:48 -04:00
Nika Layzell 0c3ba13e4c Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
Nika Layzell b286bc10d9 Bug 1443379 - Stop pretending cacheKey can be anything other than uint32_t, r=smaug 2018-04-10 17:49:46 -04:00
Nika Layzell adc5b074cd Bug 1434768 - Part 5: Add EvictLocalContentViewers to ChildSHistory, r=bz 2018-04-10 17:49:46 -04:00
Nika Layzell 11744e4b91 Bug 1434768 - Part 4: Create a ParentSHistory in nsFrameLoader, r=bz 2018-04-10 17:49:45 -04:00
Nika Layzell 4464c02334 Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
Nika Layzell 8822e43271 Bug 1434768 - Part 2: Replace nsDocShell::mSessionHistory with ChildSHistory, r=bz 2018-04-10 17:49:45 -04:00
Nika Layzell c3cbd8710f Bug 1434768 - Part 1: Add Child/ParentSHistory classes which wrap nsISHistory, r=bz 2018-04-10 17:49:44 -04:00
Nika Layzell 242c9ce313 Bug 1438026 - Part 3: Replace nsPresState with the new PresState type, r=baku 2018-04-10 17:49:44 -04:00
Nika Layzell 0b0d005341 Bug 1438026 - Part 1: Add IPDLParamTraits for RefPtr<BlobImpl>, r=baku 2018-04-10 17:49:43 -04:00
Vinothkumar Nagasayanan 8d69150966 Bug 1424023 - Test run time reduced using another new iframe. r=ckerschb
--HG--
extra : rebase_source : f2c2b8ca89c2290ad9a701fb7f7c5cbb1a1bf63c
2018-04-10 17:43:16 -04:00
Ben Kelly 8e02995e8a Bug 1452373 Only allow one runnable to write to serviceworker.txt at a time. r=asuth 2018-04-10 12:31:18 -07:00
Dan Minor 82684c47c4 Bug 1453030 - Add crashtest; r=bwc
MozReview-Commit-ID: 2p3VwoOTICx

--HG--
extra : rebase_source : fd5cbfc8eb607c274875df60f484a66e126db081
2018-04-10 13:36:43 -04:00
Dan Minor 30d5029270 Bug 1453030 - Only create RTCDTMFSender on audio RTCRtpSender senders; r=bwc
MozReview-Commit-ID: KsnUYCs8IYU

--HG--
extra : rebase_source : 2bee2f713ef65ef5baaa6cd37a3f9521beaa9a73
2018-04-10 13:19:42 -04:00
Gijs Kruitbosch 1f9f49c09b Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
MozReview-Commit-ID: AhToM4sAjJn

--HG--
extra : rebase_source : 5ec00b9dbeff4c5e8c557bab78a9bed618130391
2018-03-26 20:18:05 +01:00
Andreea Pavel 525c9e7907 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-11 17:38:56 +03:00
Andreas Pehrson 351446a16c Bug 1447273 - Consider all AudioChunk members in AudioChunk::CanCombineWithFollowing. r=padenot
MozReview-Commit-ID: 1Fz1GNxRF3P

--HG--
extra : rebase_source : 377a96799f159431f2ab9d34d200ba9110fb2fca
2018-03-26 18:33:42 +02:00
Andreas Pehrson 9b7bfe9819 Bug 1447273 - Reduce AudioChunk::CanCombineWithFollowing indentation. r=padenot
MozReview-Commit-ID: 9pk5xKrYoa6

--HG--
extra : rebase_source : 06dfaeab1e6d579aabd1a8ec02e8dd708396e821
2018-03-26 18:33:09 +02:00
Catalin Badea e517621ded Bug 1402892 - Update mochitests related to request.context. r=asuth
This patch removes mochitests that were testing only request.context and
updates a couple others to use request.destination instead.
2018-04-11 13:23:27 +01:00
Catalin Badea 1cf810fbe8 Bug 1402892 - Implement Request.destination. r=asuth,baku 2018-04-11 13:23:11 +01:00
Christoph Kerschbaumer d8d0197f4e Bug 1452496: Test for discarding same-site cookies using inline scripts in cross origin context. r=mgoodwin 2018-04-12 12:53:48 +02:00
Christoph Kerschbaumer 3117bd6483 Bug 1452496: Test for discarding same-site cookie in cross site context. r=mgoodwin 2018-04-12 12:53:33 +02:00
Margareta Eliza Balazs 1dff32311e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-12 12:46:52 +03:00
Andreas Pehrson c376bbc538 Bug 1450954 - Add back code to undo screenshare constraints hack. r=jib
MozReview-Commit-ID: 9rDRj7U8vQi

--HG--
extra : source : e2bd588aa90fe44fe38caed6bc7680111394b934
extra : histedit_source : 148034b0adc84941ae9c39716bb3da6d8258e3a4
2018-04-10 13:13:41 +02:00
Nicholas Nethercote 1fd166defd Bug 1449833 - Use StaticPrefs in nsJSEnvironment.cpp. r=sfink
MozReview-Commit-ID: GELa2l1ZonV

--HG--
extra : rebase_source : 31e07f31909a45e35b8572fe00189d6556b1612b
2018-03-27 13:26:38 +11:00
Gurzau Raul 719a001ee1 Backed out 2 changesets (bug 1452496) for bustage on build/src/netwerk/test/TestNamedPipeService.cpp on a CLOSED TREE
Backed out changeset 071ecf5e3680 (bug 1452496)
Backed out changeset 8bf36c469e22 (bug 1452496)
2018-04-10 19:22:01 +03:00
Christoph Kerschbaumer 818bd556c8 Bug 1452496: Test for diiscarding same-site cookie in cross site context. r=mgoodwin 2018-04-10 17:18:04 +02:00
Andrea Marchesini 98e4210df4 Bug 1451731 - Synchronize access to various stream classes' async wait callback reference - part 6 - IPCBlobInputStream, r=mayhemer 2018-04-10 17:33:09 +02:00
Andrea Marchesini e7c376b6e7 Bug 1451731 - Synchronize access to various stream classes' async wait callback reference - part 5 - FileSnapshot StreamWrapper, r=mayhemer 2018-04-10 17:33:09 +02:00
Zhang Junzhi 62caba2675 Bug 1358017 - Part 8: Adds auto-dir scrolling tests for Mochitest. r=masayuki
Test various writing mode combinations of a scrolling target and its root,
including the methods of honouring both the target and its root.

MozReview-Commit-ID: 3QmvRz45VmW

--HG--
extra : rebase_source : 55480cfe9d9d8de96b3295d301edd0615e1381db
2018-03-24 00:44:32 +08:00
Tom Ritter 6d09d0bdf2 Bug 1436778 Add an assertion to hopefully get a reproduction for a hard-to-repro timer jitter bug r=baku
MozReview-Commit-ID: D4zt1v1tjOs

--HG--
extra : rebase_source : b4f5be226c72d6a2f80b4f598155fe9f11ee695c
2018-04-10 13:08:25 -05:00
Andrew McCreight 9cc76e1bf2 Bug 1449670, part 2 - Remove nsINode::eTEXT. r=bz
MozReview-Commit-ID: HwVj2udQWbE

--HG--
extra : rebase_source : 2753b281ffc1de910b8c047474c40f68bf53e2d8
2018-04-06 17:56:46 +00:00
Andrew McCreight 3f7472aec1 Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
This method is not a virtual call, and also looks nicer.

This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.

MozReview-Commit-ID: 8JExxqSRc59

--HG--
extra : rebase_source : df6330a89e8d65dfe7a6fda0c8cb9f9732302efc
2018-04-12 15:41:00 -07:00
Andreea Pavel 69ae5fe098 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-14 00:58:36 +03:00
Masatoshi Kimura d7043295be Bug 1445601 - Stop using LoadLibraryA in GMP. r=cpearce
We should not use LoadLibraryA (or more generally "A" functions) on Windows
because it is lossy. Bug 1440886 will introduce a static analysis to prevent
potential misuse of LoadLibraryA, so we need to replace existing usages first.

MozReview-Commit-ID: 6krgrVcSHNW

--HG--
extra : rebase_source : 0e93acecfe0c9ccd2e4ba9ad3126b6ae16433387
2018-03-28 00:02:28 +09:00
Andreea Pavel 4784e6b61b Backed out 2 changesets (bug 1453206) for crashtest failures on muliple files e.g. tests/reftest/tests/layout/base/crashtests/416107.xhtml on a CLOSED TREE
Backed out changeset 1844a120acda (bug 1453206)
Backed out changeset b12b7c5b8178 (bug 1453206)
2018-04-13 23:06:55 +03:00
Emilio Cobos Álvarez 1fe3a2d36a Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
MozReview-Commit-ID: B2aYury8K7i
2018-04-13 21:05:48 +02:00
Emilio Cobos Álvarez 7219ca3135 Bug 1453206: Look in XBL anon content too for stale style data. r=smaug
This would've caught it earlier. Need to do the GetFirstNode(), ... dance
because well, <content>.

MozReview-Commit-ID: 8F35GRO99M4
2018-04-13 21:05:47 +02:00
Tom Bannister 988d18881f Bug 1434710 - Replaced all instances of mozilla::IndexSequence, mozilla::MakeIndexSequence and mozilla::IndexSequenceFor with std::index_sequence, std::make_index_sequence and std::index_sequence_for and removed mfbt/IndexSequence.h. r=botond
MozReview-Commit-ID: 1Ema7TUNr5v

--HG--
extra : rebase_source : e5bb164dbe19993214e8c16f92b0a1f5d2ff3fa1
2018-04-09 21:12:13 +10:00
Emilio Cobos Álvarez 004145b9a3 Bug 1281745: Don't consider <xbl:children> in a shadow root without any binding active. r=smaug
MozReview-Commit-ID: GSewdIOpKIv
2018-04-13 20:53:11 +02:00
Benjamin Bouvier 2d70c0b1e0 Bug 1445272: Add a pref to enable wasm gc in the browser/shell; r=luke
And a builtin function to test if wasm gc is enabled or not, to make testing
easier.

--HG--
extra : rebase_source : 0e608756d0c5f0231ba31af482c5e343a7119465
2018-03-21 14:32:47 +01:00
Christoph Kerschbaumer 804d7c0625 Bug 1453814: Test redirects and same-site cookies. r=mgoodwin 2018-04-13 15:42:12 +02:00
Coroiu Cristina fd27fd90f1 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-04-13 19:09:10 +03:00
Nathan Froyd bf9542b8b8 Bug 1453672 - Make MediaRawDataWriter's allocation methods MOZ_MUST_USE. r=gerald
The documentation says that the boolean return values from these methods
must be checked.  We might as well make the compiler check these things
for us.
2018-04-12 07:29:00 -04:00
Andrea Marchesini 7ee8bf1f9e Bug 1453955 - Synchronize access to various stream classes' async wait callback reference - IPCBlobInputStream, r=mayhemer 2018-04-13 16:40:20 +02:00
Jon Coppeard 96a3f31ff4 Bug 1453559 - Don't use channel URI for loading modules from resource: scheme r=baku 2018-04-13 14:15:33 +01:00
Gurzau Raul df79f362f0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-10 19:56:38 +03:00
Kartikaya Gupta d23526ec95 Bug 1452656 - Re-enable a now-passing crashtest. r=jrmuizel
MozReview-Commit-ID: Kr88oFk0JyA

--HG--
extra : rebase_source : 20220e4edfb8ec08ceeb878747c323bfb5267546
2018-04-09 11:11:47 -04:00
Zhang Junzhi 3642f0aa58 Bug 1358017 - Part 7: Implements the "honour root" functionality for the auto-dir scrolling feature in non-APZ r=masayuki
With this commit, all the auto-dir scrolling functionalities are completed in
non-APZ.

MozReview-Commit-ID: 9v9iPWIwB52

--HG--
extra : rebase_source : 9c825ed6ebcd84a90057bcb9d301838014c181d8
2018-03-19 18:03:48 +08:00
Zhang Junzhi 891d6c4b37 Bug 1358017 - Part 6: Implements the auto-dir scrolling feature(without the "honour root" functionality) in non-APZ r=masayuki
This commit implements the auto-dir scrolling functionality in non-APZ, based on
part 1 to part 3. However, the functionality of mousewheel.autodir.honourroot is
unimplemented in this commit.

MozReview-Commit-ID: 2vYABOx4RkK

--HG--
extra : rebase_source : 7dc45e6747a101c1a2c3a22bc695b2a0b2494b50
2018-03-19 17:05:45 +08:00
Zhang Junzhi fe2d79f73f Bug 1358017 - Part 4: Implements the auto-dir scrolling feature(without the "honour root" functionality) in APZ r=kats
This commit implements the auto-dir scrolling functionality in APZ, based on
part 1 to part 3. However, the functionality of mousewheel.autodir.honourroot
will be implemented in a future.

MozReview-Commit-ID: 9xai99x71gh

--HG--
extra : rebase_source : 118d188f730e3fb91d147b076a053cb04e622e55
2018-03-16 19:23:53 +08:00
Zhang Junzhi 7a6384c9c7 Bug 1358017 - Part 3: Defines a common interface of the auto-dir scrolling delta adjuster. r=kats,masayuki
This commit defines a common interface of the auto-dir scrolling functionality.
In future commits, it will be implemented in both the APZ and non-APZ parts.

MozReview-Commit-ID: 8fApuHwsbrv

--HG--
extra : rebase_source : e4c47ea52c1c9c60822b23216db020154522bb7e
2018-03-16 00:48:35 +08:00
Zhang Junzhi 660ec7462d Bug 1358017 - Part 2: Introduces the concept of auto-dir wheel scrolling and adds two new related prefs. r=kats,masayuki
This commit only introduces the concept and the functionality of retrieving the
values from the two new related prefs. Still no actual functionality change is
involved.

MozReview-Commit-ID: 2Gl3Wqdo6jL

--HG--
extra : rebase_source : bf30483e3e32829a5d6fd927740471ba348448f9
2018-03-15 21:57:19 +08:00
Zhang Junzhi 414177f87e Bug 1358017 - Part 1: Adds some comments, renames some identifiers and refactors some other trivial things. r=kats,masayuki
Do some work in preparation for implementing actual functionalities for this
bug. No actual functionality change is involved in this commit.

MozReview-Commit-ID: 5aLhr38n1N4

--HG--
extra : rebase_source : 15cfc2cea5b7668367dd3bd4a0746ae8c61b7d20
2018-03-15 16:31:07 +08:00
Jean-Yves Avenard f5cce074ab Bug 1451681 - Handle case where crypto plain size definition didn't exist. r=cpearce
Also ensure that the MP4 demuxer can't create such sample.

MozReview-Commit-ID: JANgHNiiz2H

--HG--
extra : rebase_source : d6a68579e76f1eda651e38bec5a9ed17c9de3fa4
2018-04-09 11:39:13 +02:00
Valentin Gosu 406b079c8d Bug 1453633 - Make nsHostObjectURI hold its principal wrapped in a nsMainThreadPtrHandle r=baku
nsIPrincipal is not yet threadsafe (bug 1443925). This is a problem in the context of threadsafe nsIURI, where cloning an nsIURI would also AddRef the principal.
To get around this problem, we use nsMainThreadPtrHandle<nsIPrincipal>. This means cloning the URI would not AddRef the principal (it addrefs the nsMainThreadPtrHolder that holds the principal). When the last ref is dropped, the principal is released on the main thread.

We should get rid of this once principals become thread-safe

MozReview-Commit-ID: AbJEhTNXVv6

--HG--
extra : rebase_source : 14808be2815aaeb2f017fc04d28aa03b9f4bbcd5
2018-04-12 22:37:41 +02:00
Emilio Cobos Álvarez 014cbed7df No bug: Update expectations for minor serialization changes. r=me
MozReview-Commit-ID: 3nq9Qbwy9td
2018-04-11 01:49:58 +02:00
Kyle Machulis edc9099ead Bug 1404112 - Add bounds checks to gamepad dpad unpacking; r=ted
We weren't checking the length of our buttons array before referencing
dpad offsets, meaning if the HID descriptor reports something
different than we have, we can overflow.

MozReview-Commit-ID: 5RKxwDmmq0Z

--HG--
extra : rebase_source : afbe0aff9c89b8ded57462384f0bf4158facdbd9
2018-04-09 16:28:15 -07:00
Andreas Pehrson aaf89f2684 Bug 1447982 - Rename mLastPrefs to mNetPrefs and update comment for clarity. r=padenot
MozReview-Commit-ID: CJPSDG5OHBs

--HG--
extra : rebase_source : 4be85639204fb53f02f1f5262fa945b78a97b286
2018-03-26 12:24:17 +02:00
Andreas Pehrson 83d5534ca3 Bug 1447982 - Remove early exit when no change on Reconfigure. r=padenot
We don't want to skip all remaining steps. For now it just affects some logging,
but there may be new ones added in the future.

MozReview-Commit-ID: 7fBdgLNT780

--HG--
extra : rebase_source : dc5113298c1dbadd23c19127349a4a66cd460b4c
2018-03-26 12:23:12 +02:00
Andreas Pehrson deb26bcad0 Bug 1447982 - Pass GraphImpl into ApplySettings. r=padenot
MozReview-Commit-ID: GQlRUB3O1em

--HG--
extra : rebase_source : 80f6fc2f599a917f05de5af00103bbbff3f1caf0
2018-03-26 12:18:35 +02:00
Andreas Pehrson cb8419331d Bug 1447982 - Remove unused MediaEnginePrefs from AllocationHandle. r=padenot
MozReview-Commit-ID: 3gIU7MCddWG

--HG--
extra : rebase_source : f894d4dcefe229cd8b3aa170c9dd617b4a2b6314
2018-03-26 12:15:56 +02:00
Andreas Pehrson 1776ec7eae Bug 1447982 - Apply and update mic source settings on Reconfigure. r=padenot
MozReview-Commit-ID: KKcRclPpCB2

--HG--
extra : rebase_source : 688291ca5dbaecd0992ad98555d1b4da54aebf84
2018-03-26 11:05:52 +02:00
Andreas Pehrson be1fb6ddb7 Bug 1447982 - Mic source's ApplySettings shouldn't have weird side effects. r=padenot
MozReview-Commit-ID: DCVi5Wy4WN2

--HG--
extra : rebase_source : 422704dbd55e50326816aebb3bdc7767ba835e4a
2018-03-26 11:04:51 +02:00
Andreas Pehrson 6c20c3f1cf Bug 1447982 - Move mic source allocation logging so it actually covers allocations. r=padenot
MozReview-Commit-ID: Ipq5vqCfvgi

--HG--
extra : rebase_source : 9501f3ce7eee7e6cbf5bc839e4f7581be5a5a543
2018-03-26 11:03:58 +02:00
Andreas Pehrson bd47efdaa2 Bug 1447982 - Cover channel count changes also when mic source is stopped (muted). r=padenot
MozReview-Commit-ID: HtDS5SXL08

--HG--
extra : rebase_source : bd815cffb2705fcb1da817b10daeb738405e76dd
2018-03-26 11:02:26 +02:00
Andreas Pehrson b47ca1eca7 Bug 1447982 - Guard against destroyed stream. r=padenot
MozReview-Commit-ID: 51opeU1U6GR

--HG--
extra : rebase_source : 45abf299f05fa1cd8520723b329652d83c1212d7
2018-03-26 10:57:36 +02:00
Andreas Pehrson c26ee52a6e Bug 1447982 - Remove unnecessary conditional. r=padenot
MozReview-Commit-ID: LKy9TGsGEfj

--HG--
extra : rebase_source : 1bba3bf46287febe8c249b8603503db7ae8716e1
2018-03-26 10:57:06 +02:00
Andreas Pehrson c14f3bbe02 Bug 1447982 - Add mochitest for audio constraints. r=jib
MozReview-Commit-ID: DGlvTW6EXAO

--HG--
extra : rebase_source : b89a40f34998091b0a42304c3237f900e15cde7e
2018-04-11 16:05:49 +02:00
Bryce Van Dyk 27bbb1c83b Bug 1453648 - Remove special handling for Sine source at 440 Hz test device. r=achronop
MozReview-Commit-ID: foVINjjMOX

--HG--
extra : rebase_source : 6d33600302fdd89b6eee6a874b82e30a06eeb5de
2018-04-11 17:12:28 -04:00
Byron Campen [:bwc] c67de40370 Bug 1449272 - Part 2: When using both offerToReceiveAudio and offerToReceiveVideo, create the audio transceiver first. r=jib
MozReview-Commit-ID: ClgChq6FLQ7

--HG--
extra : rebase_source : e2c2e9f2abd609522d618b6828c4447f4a515dd0
2018-03-27 13:36:02 -05:00
Byron Campen [:bwc] aa7de1ce53 Bug 1449272 - Part 1: Update test-case to expect the audio transceiver first when using both offerToReceiveAudio and offerToReceiveVideo. r=jib
MozReview-Commit-ID: FXvNRVIMdQN

--HG--
extra : rebase_source : 88c16c0d32bc8d0008ac92a138930d5ac8d836bc
2018-03-27 13:35:16 -05:00
Karl Tomlinson c130f353db bug 1328964 don't try to cycle collect after worklet cycle collector has been shut down r=baku
MozReview-Commit-ID: 5BTcAOZwvIU

--HG--
extra : rebase_source : e74826a444a14554b53ecd477e8a13eaae638e17
2018-03-06 19:23:07 +13:00
Karl Tomlinson 2fb0e06b71 bug 1328964 address modernize-use-override and modernize-use-equals-default r=baku
clang-tidy suggestions in "part 3 - Console API exposed to worklets".

MozReview-Commit-ID: Aab74PCau9m

--HG--
extra : rebase_source : 0f4a5500e391ee734c3e5fcc0c7930007310de27
2018-04-04 19:36:13 +12:00
Karl Tomlinson 2405fe930c bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12

nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12

MozReview-Commit-ID: 2f1eGS9uBBO

--HG--
extra : rebase_source : dad1d2084a63413c3975f9e7c66c6b06857c9f23
2018-04-09 12:11:18 +12:00
Karl Tomlinson ad9f69cbf9 bug 1328964 add CycleCollectedJSContext::GetAsWorkletJSContext() and use it in IsOnWorkletThread() r=smaug
MozReview-Commit-ID: BUujWXYho1G

--HG--
extra : rebase_source : 78bb6736f74bb59913bc9499fcfdf7b0baa7870d
2018-04-06 09:45:56 +12:00
Karl Tomlinson 233abfb95a bug 1328964 don't allocate SourceBufferHolder on the heap r=baku
I'm not aware of any reason why SourceBufferHolder must be allocated only on
the stack, but bz and bkelly seemed to agree that it should be MOZ_STACK_CLASS
in https://bugzilla.mozilla.org/show_bug.cgi?id=987556#c72

FWIW avoiding SourceBufferHolder saves by not needing to store GiveOwnership.

UniquePtr makes the transfer of ownership clearer.

MozReview-Commit-ID: 2wxkW75TNUM

--HG--
extra : rebase_source : 86b47023f252fd9f009be530d5ada8d6e82499e9
2018-03-27 15:12:19 +13:00
Karl Tomlinson b568e89319 bug 1328964 add override to ~WorkletJSContext/Runtime and use = default r=baku
Addresses modernize-use-override and modernize-use-equals-default
clang-tidy suggestions in "part 2 - Worklet Thread".

MozReview-Commit-ID: H1a9kBCF1Q6

--HG--
extra : rebase_source : eb26cf1f10a703a6c1e7905b27d20131617a30dc
2018-03-27 18:15:54 +13:00
Karl Tomlinson 41c60640a4 bug 1328964 use = default in WorkletGlobalScope and derived constructors r=baku
Addresses modernize-use-equals-default clang-tidy suggestions
in "part 1 - Remove the window from worklet".

MozReview-Commit-ID: KDPa70YCR1J

--HG--
extra : rebase_source : fcb4f1c0c07b74717c0914c8991af6d46cb417f3
2018-04-04 18:05:11 +12:00
Andrea Marchesini 2e8f885142 Bug 1328964 - part 3 - Console API exposed to worklets r=baku
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.

MozReview-Commit-ID: G5E5OXydj3a

--HG--
extra : rebase_source : 4c6c9d396debce92299496c86bb6f55fbbb15a8a
2018-04-12 16:21:20 +12:00
Andrea Marchesini 6bcc1f6196 Bug 1328964 - part 2 - WorkletThread r=baku
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.

MozReview-Commit-ID: Lo8TWtN8qyz

--HG--
extra : rebase_source : ffcb7b835ea49cda3e25dfa94a91b3725fdbfb29
2018-04-12 15:14:48 +12:00
Gijs Kruitbosch ab8c7381c6 Bug 1427726 - remove nsIJARChannel::isUnsafe and nsIDocShell::channelIsUnsafe, r=bz
MozReview-Commit-ID: 7XyRqzKDbsq

--HG--
extra : rebase_source : 34b73305fbea96d01ba44f7e97f82d05a6561b0d
2018-02-07 14:25:33 +00:00
Gijs Kruitbosch f6a05ddbd5 Bug 1427726 - remove support for remote JAR files, r=michal
MozReview-Commit-ID: H7aaTmj3FI1

--HG--
rename : modules/libjar/test/mochitest/bug403331.zip => modules/libjar/test/mochitest/bug1173171.zip
rename : modules/libjar/test/mochitest/bug403331.zip^headers^ => modules/libjar/test/mochitest/bug1173171.zip^headers^
extra : rebase_source : 30a8e937840bbfed5fe7e66202a5d2893b19c037
2018-02-07 13:54:39 +00:00
Gijs Kruitbosch e884bd3cad Bug 1427726 - remove postMessage tests for jars, r=bz
postMessage doesn't really have different origins for file: URIs;
to send to them you need "*", and `location.origin` is null. So
testing jar:file separately doesn't seem to make much sense, so
let's just remove the test now that jar: will only really be
usable with a local/file inner URI.

MozReview-Commit-ID: 7vvlrugi3xv

--HG--
extra : rebase_source : 3b31b817da3922c30691654ae49ab3c9130e6b36
2018-04-09 10:09:58 +01:00
Gijs Kruitbosch db347829c7 Bug 1427726 - move test for bug 1063538 away from jar URIs, r=baku
Bug 1063538 was reported with a testcase that accesses a .jsp, which
in turn sleeps "forever". The testcase seems to be simulating this by
using a jar:http: URI for a really big file contained in some other
directory.

Instead, we can just use a .sjs file that does a similar thing to the
original jsp file in the reporter's testcase, which conveniently also
allows us to remove dependencies on support files in other directories.

MozReview-Commit-ID: 2JCOS9VLgVv

--HG--
extra : rebase_source : d0cbc4e149b8ef872e12680071bf2b1227bfb925
2018-04-09 10:08:33 +01:00
Emilio Cobos Álvarez 9ab1873cd3 Bug 1452987: Simplify ImageValue. r=heycam
MozReview-Commit-ID: 5LRaaEPSSdY

--HG--
extra : rebase_source : 2654a870e2a985bf7a609ee436ba1800bf6033a3
2018-04-10 16:54:57 +02:00
Andreea Pavel f9b34d3781 Backed out 5 changesets (bug 1427726) for failing linux asan at modules/libjar/test/unit/test_bug407303.js on a CLOSED TREE
Backed out changeset ee9abd6f1ba5 (bug 1427726)
Backed out changeset b1b76f9dff73 (bug 1427726)
Backed out changeset f41cf7811770 (bug 1427726)
Backed out changeset cb35e7b10235 (bug 1427726)
Backed out changeset 753ece6c9f1b (bug 1427726)

--HG--
rename : modules/libjar/test/mochitest/bug1173171.zip => modules/libjar/test/mochitest/bug403331.zip
rename : modules/libjar/test/mochitest/bug1173171.zip^headers^ => modules/libjar/test/mochitest/bug403331.zip^headers^
2018-04-11 12:46:20 +03:00
Andreea Pavel f4081d2372 Backed out changeset e2949379e13e (bug 1451759) for linux debug failures at dom/media/tests/mochitest/test_peerConnection_addAudioTrackToExistingVideoStream.html on a CLOSED TREE
Enter commit message.  Lines beginning with 'HG:' are removed.
2018-04-11 12:38:00 +03:00
Ciure Andrei e375de1d26 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-11 11:59:34 +03:00
Gijs Kruitbosch bf0070e2f6 Bug 1427726 - remove nsIJARChannel::isUnsafe and nsIDocShell::channelIsUnsafe, r=bz
MozReview-Commit-ID: 7XyRqzKDbsq

--HG--
extra : rebase_source : ad7994fd90f62a95e35043e147fd52f5e5b498c1
2018-02-07 14:25:33 +00:00
Gijs Kruitbosch 1f5038413e Bug 1427726 - remove support for remote JAR files, r=michal
MozReview-Commit-ID: H7aaTmj3FI1

--HG--
rename : modules/libjar/test/mochitest/bug403331.zip => modules/libjar/test/mochitest/bug1173171.zip
rename : modules/libjar/test/mochitest/bug403331.zip^headers^ => modules/libjar/test/mochitest/bug1173171.zip^headers^
extra : rebase_source : 0fbe2ed07a3ccdb3693973e966e1ea3e43dd1623
2018-02-07 13:54:39 +00:00
Gijs Kruitbosch ebf35e479c Bug 1427726 - remove postMessage tests for jars, r=bz
postMessage doesn't really have different origins for file: URIs;
to send to them you need "*", and `location.origin` is null. So
testing jar:file separately doesn't seem to make much sense, so
let's just remove the test now that jar: will only really be
usable with a local/file inner URI.

MozReview-Commit-ID: 7vvlrugi3xv

--HG--
extra : rebase_source : cfa701fd5fa03bf8d03a2bd773ec908a26020944
2018-04-09 10:09:58 +01:00
Gijs Kruitbosch f6a1608dd1 Bug 1427726 - move test for bug 1063538 away from jar URIs, r=baku
Bug 1063538 was reported with a testcase that accesses a .jsp, which
in turn sleeps "forever". The testcase seems to be simulating this by
using a jar:http: URI for a really big file contained in some other
directory.

Instead, we can just use a .sjs file that does a similar thing to the
original jsp file in the reporter's testcase, which conveniently also
allows us to remove dependencies on support files in other directories.

MozReview-Commit-ID: 2JCOS9VLgVv

--HG--
extra : rebase_source : 90245a05d197c9578d0b5278a247216c95f48c68
2018-04-09 10:08:33 +01:00
Alex Chronopoulos 0286edbecd Bug 1451759 - Default fake device on media mochitests for Linux debug builds to avoid errors of loopback device. r=jib
MozReview-Commit-ID: GB2n54P4zP5

--HG--
extra : rebase_source : 34fce9df5e207cbdb08cef02cbf494ff7f07b2a5
2018-04-10 17:15:58 +03:00
Kate McKinley 61568197c8 Bug 1374741 - Have openUILinkIn provide the correct principal in localstorage tests r=baku
--HG--
extra : rebase_source : c1a12c3d019b932c7c850f3843ac5105f5cebc1e
2018-01-11 11:55:00 +02:00
Tom Schuster b0dadb57b5 Bug 1452701 - Add pref to allow FTP subresources. r=ckerschb
--HG--
extra : rebase_source : 571060a866cc46ab253b0718d33dcbbd0f7e0a87
2018-04-09 21:07:01 +02:00
Csoregi Natalia 2b084713ed Merge inbound to mozilla-central. a=merge 2018-04-10 12:56:48 +03:00
Chris Pearce 79ee61bdff Bug 1435133 - Test that we delay media play start until we know whether a media has audio or not. r=bryce
Test that play() on a media without audio called before
readyState >= HAVE_METADATA will still play.

MozReview-Commit-ID: 1FeDrEfCEum

--HG--
extra : rebase_source : be6d07905aad853ad028eac372e4e380bdeb1a49
extra : source : e98b4a7aaf020fa3d6d59cb0f53680ef6466d154
2018-04-06 17:13:39 +12:00
Chris Pearce 04c2da8b9e Bug 1435134 - Don't play until we've reached metadata. r=bryce
We want to block playback of media which have an audio track, so if play()
is called before the load of the resource has loaded metadata, we need to
delay starting playback and resolving the play promise until we've figured
out whether the media has audio. So if play() is called before we've reached
readyState >= HAVE_METADATA, set a flag, and check that flag when we do
reach HAVE_METADATA and start the play and resolve the promise then.

MozReview-Commit-ID: 1K06NK2kfpw

--HG--
extra : rebase_source : 45636e77b44ed072e1bc3f1e9a9f73f206ee04de
2018-03-13 16:40:18 +13:00
Chris Pearce 2be26b6b7c Bug 1443942 - Move code to toggle high res timers into VideoSink. r=jya
We have code in the MDSM to toggle on high resolution timers on Windows when we
start/stop playing because the VideoSink relies on being awoken by timers to
update the set of current frames in the compositor's queue, and on Windows 7 we
end up dropping frames due to the timer lag without this.

We assert in the MDSM's destructor that we've turned off high res timers (as
they cause needless battery drain, so we only want them on when we need them),
and the new test_mediarecorder_principals is hitting that assert on Windows. I
think we're missing turning them off when we create a new VideoSink for
outputting to the MSG. That affects the value returned by
MediaDecoderStateMachine->mVideoSink->IsPlaying(), which is what we use to
decide whether we should enable high resolution timers. We track whether we've
enabled high res timers in MDSM::mHiResTimersRequested, and that gets out of
sync with IsPlaying() when we re-create the MediaSink.

Rather than trying to handle all the permutations of places where we need to
turn off high resolution timers in the MDSM, we're better to move the code to
toggle high res timers into the VideoSink, as that's actually where we need to
be sure that we have high resolution timers enabled anyway. It's the VideoSink
after all that is relying on timers for frame update, not the MDSM.

Also remove the media.hi-res-timers.enabled pref, as we haven't needed it.

MozReview-Commit-ID: 9dNxcYxPDZH

--HG--
extra : rebase_source : 6e403d59bb5f1dd0241fe8298a823ba08b1670fb
2018-04-06 13:33:28 +12:00
Chris Pearce dd45189315 Bug 1443942 - Rewrite test_mediarecorder_principals. r=bryce
I changed this test earlier in this set of commits to use
midflight-redirect.sjs so that we get more reliable and predictable cross
origin redirects during the download. Unfortunately this test now times out on
Windows.

This test times out on Windows because midflight-redirect.sjs redirects at 1/4
through the resource, whereas this test expects to be able to play through to
1/5 through the resource, and on Windows that seems to be not reached during
playback. This is likely due to decode latency being higher on Windows.

On top of that, the test's first case can sometimes call MediaRecorder.start()
before the redirect has happened, and before the principal has changed, and so
start() doesn't throw a SecurityError as expected, and the test intermittently
fails.

Additionally, the test's code could be clearer if we used async/await.

So rewrite the test to use async/await, and take advantage of
midflight-redirect.sjs's redirect being more predictable than the old
dynamic_redirect.sjs. Basically, we can be careful to wait for either
"loadedmetadata" or "error" on the media element in order to be more confident
the redirect has or hasn't happened yet.

We still can't be 100% sure that the redirect won't have already happened by
the time our "loadedmetadata" handlers run. It's quite possible that the
download has reached 1/4 through the resource by the time the loadedmetadata
handler has run, so we need to handle the "error" and "loadedmetadata" events
racing.

MozReview-Commit-ID: 8plMjkXgjYt

--HG--
extra : rebase_source : 7305598f40c09219494f3e7150799d8875b7c30e
2018-04-05 13:35:14 +12:00
Chris Pearce a19e516c04 Bug 1443942 - Ensure MediaCacheStreams are initialized with the length of the resource, not the length of the byte range response. r=jya
I'm seeing intermittent failures of test_midflight_redirect_blocked. In this
test, our custom server responds to Firefox's 0- HTTP Byte Range request with a
[0,200] response. When Firefox requests 200-, the server responds with a cross
origin redirect, and then the remainder of the resource.

However sometimes while running test_midflight_redirect_blocked the MP4 demuxer
reads through all 200 bytes while trying to parse metadata before the redirect
has occurred and fed more data into the cache, and so the demuxer thinks it's
hit end of stream, and reports a failure. The demuxer thinks it's hit end of
stream, because we initialize the MediaCacheStream length in
ChannelMediaResource::Open() with the value of the Content-Length HTTP header.
But in an HTTP byte range response, the Content-Length header tells you the
length of the range returned, not the length of the entire resource. The length
of the resource is in the Content-Range header, we need to use that if
available.

So to fix this intermittent test failure, we need to also parse the
Content-Range header in ChannelMediaResource::Open(), and use the length from
that if available.

MozReview-Commit-ID: 29pPRsUvxag

--HG--
extra : rebase_source : ba1ef03d65ebd22698a29d8385f36b4c747ccf43
2018-04-04 12:36:00 +12:00
Chris Pearce fbd7f61c3c Bug 1443942 - Fix dom/media/test/midflight-redirect.sjs. r=jya
Problems here:
* The variable `to` is undefined for byte range requests to the end of
the resource, making the math fail. Firefox normally makes ranges requests like
this.
* The bytes.length/4 calculation may not be a whole number, so can
result in a byte range header part of the way between two bytes. We need to
round the length off.
* Instead of re-calculating the contentLength, we can just use the length of
the actual byterange substring being returned. That's clearer.
* test_midflight_redirect_blocked needs the redirect to happen
before metadata has completed loading, but other tests require the redirect to
happen *after* metadata is loaded. So add a redirectAt query parameter for the
requester to control when to redirect.

MozReview-Commit-ID: I6n1NqK0Uze

--HG--
extra : rebase_source : a6bd68fe75cfd4c46f63ca815c5a4e9390bd671a
2018-04-04 14:30:15 +12:00
Chris Pearce 9f21b62342 Bug 1443942 - Switch over to midflight redirect for all redirect media tests. r=jya
We have two SJS files; midflight-redirect.sjs and dynamic_redirect.sjs,
which are very similar, but dynamic_redirect.sjs is buggy, so we should
just use midflight-redirect.sjs.

dynamic_redirect.sjs is buggy because it relies on the client doing multiple
HTTP requests to it in order to redirect, but we can't actually guarantee
this. Previously users of it would try things like setting a small MediaCache
size, or only using Ogg for which we expect a seek to the end to calculate
the duration, but I have observed the entire resource being downloaded in
one hit before the media element has finished loading metadata, meaning the
seek (in the Ogg case) can happen without another HTTP request. This is even
with a small MediaCache.

midfligh-redirect.sjs solves this problem by explicitly only returning a
partial response, so the client is forced to make another HTTP request,
which we will serve a redirect to.

MozReview-Commit-ID: 39imyayhnBG

--HG--
extra : rebase_source : 603532e4af0bf304c34739de5b0b243174e3831d
2018-03-29 18:16:33 +13:00
Chris Pearce 6a06dbd8b8 Bug 1443942 - Rewrite test_mixed_principals. r=jya
The original test is failing, as it assumed we'd not error when
origins were mixed without CORS, and the original test was using
outdated practises, so rewrite it.

MozReview-Commit-ID: KlOH83GUOk

--HG--
extra : rebase_source : 2c79691fddc93af0e04d8f23fa31ac8588a8d6e1
extra : amend_source : 2989317530f536915f011977c8f34e048410b018
2018-03-28 16:56:37 +13:00
Chris Pearce 5913d0470e Bug 1443942 - Make redirect SJS' serve with headers to prevent Necko caching. r=jya
Try to prevent Necko from caching the results of our SJS media responses, as
some of the test that use it rely on the server being hit and serving a
redirect. Sometimes the tests which rely on hitting a redirect in an SJS
where timing out without this, as Necko would cache the response and not
hit the server, and so not hit the redirect.

Also include a noise parameter to increase the likelihood that the URL is
unique, to further reduce the chance that Necko caches the result.

MozReview-Commit-ID: 3cLEiDoh4HG

--HG--
extra : rebase_source : 24c152d46540866f14211fae30f1e59c5d23b6d4
2018-03-28 16:55:46 +13:00
Chris Pearce 99ff9f62be Bug 1443943 - Ensure redirect SJS' serve the correct content types. r=jya
dynamic_redirect.sjs and midflight-redirect.sjs are serving files
with "Content-Type: video/ogg", which is incorrect and could lead
to problems given that we're not always asking it to serve Ogg
files. So include the type be to served as a query parameter.

MozReview-Commit-ID: 5f0PXy8lL3G

--HG--
extra : rebase_source : 757395a21317655422767efe3f7c1923a19c0114
2018-03-28 16:51:04 +13:00
Chris Pearce e8c1b1b7f1 Bug 1443942 - Test for blocking midflight redirects in media elements. r=jya
Test that playback works if we don't block, doesn't if we do block, and does
if we do block and CORS is used.

MozReview-Commit-ID: 9PTZXLOdHIU

--HG--
extra : rebase_source : db7f0c61b64990623ef035b266cf052c45df1c76
2018-03-06 14:44:26 +13:00
Chris Pearce 259a33e836 Bug 1443942 - Block mid-flight redirects to cross origin destinations during media loads. r=jya
There's no compelling use case for mid-flight redirects, and Chrome
already blocks it, so there's little point in maintaining it.

Add a hidden pref to toggle blocking, so we can toggle it off during
testing to ensure that we're blocking a working mid-flight redirect.

MozReview-Commit-ID: EnGNmYFr8Uv

--HG--
extra : rebase_source : a2f4b7c68b73ecc4c7525d4e41e834f4caf85707
2018-03-06 09:55:03 +13:00
Tooru Fujisawa bc1ed58f7a Bug 1448531 - Part 2: Make BrowserTestUtils.waitForNewWindow receive parameters object. r=enndeakin 2018-04-10 12:18:35 +09:00
Andreea Pavel 26f640b36b Backed out 4 changesets (bug 1366808) for Windows GPU leakchecks on a CLOSED TREE
Backed out changeset 23f60e5acaa2 (bug 1366808)
Backed out changeset bf2262b6aca8 (bug 1366808)
Backed out changeset 1fc82af3a155 (bug 1366808)
Backed out changeset 0649f0d9884b (bug 1366808)
2018-04-10 05:11:36 +03:00
Alex Gaynor 618da07cd6 Bug 1445234 - Use ContiguousEnumSerializer for serializing nsCursor. r=smaug 2018-04-09 10:48:09 -04:00
Stephen A Pohl b40a23754c Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-04-09 20:16:31 -04:00
Andreea Pavel 0724b513f9 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-10 00:58:54 +03:00
Andreea Pavel 8e723a7457 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-10 00:55:35 +03:00
Olli Pettay a2485252b4 Bug 1452751 - add a pref to control whether to default to passive touch listeners on window/document/documentElement/body , r=kats
--HG--
extra : rebase_source : ba015d60e7ab7da183048dc59dfb0fe42930df6d
2018-04-09 23:43:17 +03:00
Boris Zbarsky a403c9345b Bug 1451966. Don't warn or assert for events firing while !IsSafeToRunScript() inside documents that are never exposed to script. r=smaug
MozReview-Commit-ID: HgvQFJtW9Z6
2018-04-09 16:48:35 -04:00
Boris Zbarsky c81f762d32 Bug 1452329. Remove nsIDOMXMLDocument. r=mystor
MozReview-Commit-ID: LwbVo7Fx1SQ
2018-04-09 16:30:33 -04:00
Boris Zbarsky eb5f28a236 Bug 1452321. Remove nsIWebBrowserPersistable. r=mystor
MozReview-Commit-ID: CCw86gAtKn3
2018-04-09 16:30:33 -04:00
Boris Zbarsky 1c287692f6 Bug 1452235 part 5. Stop inheriting nsISupports for nsDOMSerializer. r=qdot
MozReview-Commit-ID: 89iyRqKcAl0
2018-04-09 16:30:33 -04:00
Boris Zbarsky 1483606219 Bug 1452235 part 4. Remove nsIDOMSerializer. r=qdot
MozReview-Commit-ID: 5foaztSLyEC
2018-04-09 16:30:33 -04:00
Boris Zbarsky 5171e626a4 Bug 1452235 part 3. Stop using nsIDOMSerializer from JS. r=qdot
MozReview-Commit-ID: JbWGcfbmM4b
2018-04-09 16:30:32 -04:00
Boris Zbarsky 879d60dc1d Bug 1452235 part 2. Remove nsIDOMSerializer::SerializeToString. r=qdot
MozReview-Commit-ID: BuIhA13GuLj
2018-04-09 16:30:32 -04:00
Boris Zbarsky a43a4c2e87 Bug 1452235 part 1. Remove nsIDOMSerializer::SerializeToStream. r=qdot
MozReview-Commit-ID: IB4W7R7Rg2P
2018-04-09 16:30:32 -04:00
Boris Zbarsky cbe438ff09 Bug 1452185 part 4. Remove nsIDOMXULElement. r=qdot
MozReview-Commit-ID: HfFtcj64z2Q
2018-04-09 16:30:32 -04:00
Boris Zbarsky f2f3fe42ff Bug 1452185 part 3. Remove unnecessary nsIDOMXULElement includes. r=qdot
MozReview-Commit-ID: Ft5MnbFtyB9
2018-04-09 16:30:32 -04:00
Boris Zbarsky 77f8167eb3 Bug 1452185 part 2. Remove nsIDOMXULElement use in JS. r=qdot
MozReview-Commit-ID: 2JIybnXaudR
2018-04-09 16:30:32 -04:00
Boris Zbarsky a10982571e Bug 1452185 part 1. Remove unused nsIDOMXULContainerElement bits. r=mossop
These are unused in C++, and the JS bits don't go through this interface
(instead they end up calling things off the relevant XBL prototypes by finding
them on the node's proto chain).

MozReview-Commit-ID: 4FTyFCl4DRt
2018-04-09 16:30:32 -04:00
Boris Zbarsky b3e9f0c75d Bug 1449601. Stop dereferencing a null mIterNode in find code. r=mystor
MozReview-Commit-ID: 2buTShJNqFp
2018-04-09 16:30:31 -04:00
Stephen A Pohl 381d9da573 Bug 1423261: Revert changeset ff30955a00d2 since it is ineffective. r=me 2018-04-09 14:50:22 -04:00
Ben Kelly 598c11105d Bug 1452244 Avoid empty entries in serviceworker.txt. r=asuth 2018-04-09 10:54:23 -07:00
Olli Pettay ddebcda430 Bug 1452615 - Reduce unneeded AddRefing/Releasing when unregistering unresolved custom elements, r=emilio
--HG--
extra : rebase_source : e459aee935cf18fd2bda03a5ebe420b5288c8e9c
2018-04-09 16:11:49 +03:00
Noemi Erli b55e1a1cbc Merge inbound to mozilla-central. a=merge 2018-04-09 19:46:07 +03:00
Emilio Cobos Álvarez b7a244d28f Bug 1452525: Deduplicate proto bindings, not bindings. r=xidorn
MozReview-Commit-ID: 2NWALzUhDjn

--HG--
extra : rebase_source : f70a79915e8a4d72c8803439ded6021759be77fe
2018-04-09 15:25:41 +02:00
Ben Kelly 2bf2ff691e Bug 1452374 - Remove ServiceWorkerRegistrar retry mechanism to fix intermittent shutdown failures. r=baku 2018-04-09 07:18:00 -04:00
Olli Pettay ecbf2e2cf2 Bug 1452608 - Reduce unneeded AddRefing/Releasing when looking up custom element definitions, r=emilio 2018-04-09 15:48:53 +03:00
Stephen A Pohl ffcb1034c3 Bug 1423261: Close the IPC channel during KillHard shutdowns to prevent shutdown crashes in the parent process. r=jimm 2018-04-09 15:54:52 -04:00
Coroiu Cristina fa24350f83 Backed out 2 changesets (bug 1306529) for build bustage on a CLOSED TREE
Backed out changeset 87206102c699 (bug 1306529)
Backed out changeset 7e70a7f597c4 (bug 1306529)
2018-04-09 15:59:58 +03:00
Kartikaya Gupta 5cbb6be895 Bug 1426199 - Re-enable more crashtests that are now passing. r=sotaro 2018-04-09 08:02:12 -04:00
Jonathan Watt ef1290712d Bug 1452170 follow-up - Fix Windows unified build bustage by adding missing AutoRestore.h includes. r=me on CLOSED TREE 2018-04-09 10:21:42 +01:00
Takuro Ashie 297ca3383c Bug 1306529 - OmxDataDecoder: Fix a stall issue on shutting down r=jya
Because the shutdown closure awaits finishing itself by
TaskQueue::AwaitShutdownAndIdle(), the function blocks infinitely.

The code is wrongly introduced at the following commit:

  * https://bugzilla.mozilla.org/show_bug.cgi?id=1319987
    * https://hg.mozilla.org/mozilla-central/rev/b2171e3e8b69

This patch calls it on mTaskQueue intead of mOmxTaskQueue to
avoid the issue.

MozReview-Commit-ID: 4qmX2QlniEG

--HG--
extra : rebase_source : f0784c0c5b2e39d2078a5aff72be03b52e413139
extra : intermediate-source : 635153e1dcdc442f8d72727b6fe504842b4ffa31
extra : source : bf011140459cc227c9435e3960770bafb3cecb8e
2018-03-27 16:37:21 +09:00
Takuro Ashie 6e0c9d24c2 Bug 1306529 - Add initial implementation of PureOmxPlatformLayer r=jya
It's a concrete class of OmxPlatformLayer for accessing OpenMAX IL
libraries directly. It will be usable on various embedded linux systems.
Note that it's not enabled by default yet. Add the following config to
your mozconfig.

  ac_add_options --enable-openmax

TODO: Implement zero-copy mode

MozReview-Commit-ID: EMEXAKzzR64

--HG--
extra : rebase_source : d7c5b9baf66d87db38723b278c57fd581a3cbf98
extra : intermediate-source : b8c671a02a4fce085433b16db998c9b04ace87db
extra : source : 131b65580e3dd5c9dcb0ba6a05c16ab90c2dcc68
2018-03-28 18:21:04 +09:00
Alex Chronopoulos 16d2b965f6 Bug 1451781 - Check if output device is mono and remove stereo check in order to disable opus channel inversion. r=jya
MozReview-Commit-ID: 3x27rBs5Ika

--HG--
extra : rebase_source : 0b7232a0705edceda8793444c140aa947cc99d51
2018-04-09 13:07:58 +03:00
Andreas Pehrson 1e2190d040 Bug 1451798 - Check the variable actually containing the string. r=jib
MozReview-Commit-ID: 2xizfHwVPiW

--HG--
extra : rebase_source : 345327a6721e84b64ba3b66cb308dbe1100391bb
2018-04-06 15:06:46 +02:00
Emilio Cobos Álvarez f39eaa5d48 Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :(

MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 11:19:49 +02:00
Emilio Cobos Álvarez cfbc602521 Bug 1452080: Remove ComputedStyle::PresContext usage in animation code. r=hiro
MozReview-Commit-ID: HwooTF9PGnq
2018-04-09 11:19:49 +02:00
Noemi Erli 5d9588e156 Backed out 3 changesets (bug 1452080) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp on a CLOSED TREE
Backed out changeset 7f5104c7a242 (bug 1452080)
Backed out changeset 806a9c95a243 (bug 1452080)
Backed out changeset bffebe8aa254 (bug 1452080)
2018-04-09 11:18:12 +03:00
Emilio Cobos Álvarez 2a427429ff Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :(

MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 09:57:55 +02:00
Emilio Cobos Álvarez 7e3aa4e075 Bug 1452080: Remove ComputedStyle::PresContext usage in animation code. r=hiro
MozReview-Commit-ID: HwooTF9PGnq
2018-04-09 09:56:32 +02:00
Hiroyuki Ikezoe 1343e69351 Bug 1323119 - Add a test case that had caused an assertion on the old style system. r=daisuke
Note that on the new style system (a.k.a stylo) the test case hasn't caused
any assertions.

MozReview-Commit-ID: AALHnuW48Rb

--HG--
extra : rebase_source : 8253507eff2522bcc4ccc155aae5c1307a81421d
2018-04-09 09:56:04 +09:00
Christoph Kerschbaumer 1c93e06911 Bug 1286861: Add tests for same site top-level. r=mgoodwin 2018-04-08 19:53:08 +02:00
Christoph Kerschbaumer fc9d4babcc Bug 1286861: Add tests for same site subrequests. r=mgoodwin 2018-04-08 19:52:49 +02:00
Gurzau Raul 86ad87030e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-08 01:04:38 +03:00
Gurzau Raul 791865d567 Merge inbound to mozilla-central. a=merge 2018-04-08 00:50:24 +03:00
Olli Pettay f2340aa57f Bug 1452386 - Add a helper to get the existing nsIWeakReference from nsINode, r=emilio 2018-04-07 20:41:03 +03:00
Emilio Cobos Álvarez e128bf7b1a Bug 1447827: Remove ServoRestyleManager. r=xidorn
MozReview-Commit-ID: CFafQsb4rQn
2018-04-07 15:50:06 +02:00
Emilio Cobos Álvarez b508e66696 Bug 1447827: Move members from ServoRestyleManager to RestyleManager. r=xidorn
This leaves ServoRestyleManager as just a typedef.

MozReview-Commit-ID: 5wfTkiDc2Nr
2018-04-07 15:40:00 +02:00
Emilio Cobos Álvarez c0f2f96f66 Bug 1303605: Remove the undisplayed maps. r=bz,mats
This is mostly code removal, changing GetDisplayContentsStyle(..) checks by an
FFI call to Servo.

The tricky parts are:

 * MaybeCreateLazily, which I fixed to avoid setting bits under display: none
   stuff. This was a pre-existing problem, which was wallpapered by the
   sc->IsInDisplayNoneSubtree() check, which effectively made the whole
   assertion useless (see bug 1381017 for the only crashtest that hit this
   though).

 * ContentRemoved, where we can no longer know for sure whether the element is
   actually display: contents if we're removing it as a response to a style
   change. See the comment there. That kinda sucks, but that case is relatively
   weird, and it's better than adding tons of complexity to handle that.

 * GetParentComputedStyle, which also has a comment there. Also, this function
   has only one caller now, so we should maybe try to remove it.

The different assertions after DestroyFramesForAndRestyle are changed for a
single assertion in the function itself, and the node bit used as an
optimization to avoid hashtable lookups is taken back.

MozReview-Commit-ID: AZm822QnhF9
2018-04-07 15:21:56 +02:00
Brindusan Cristian c5ba0f0766 Merge inbound to mozilla-central. a=merge 2018-04-07 12:57:02 +03:00
Jonathan Watt 81ccf0c0e4 Bug 1452040 - Get rid of NS_STYLE_FONT_WEIGHT_NORMAL and NS_STYLE_FONT_WEIGHT_BOLD. r=emilio 2018-04-06 14:53:25 +01:00
Brindusan Cristian 9adcf6af5a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-07 13:00:30 +03:00
Olli Pettay 0f16188dd5 Bug 1452074 - improve the performance related to unresolved custom elements, r=emilio 2018-04-07 12:50:01 +03:00
Boris Zbarsky 8c18063150 Bug 1452010 part 3. Remove nsIDOMDOMException. r=qdot
MozReview-Commit-ID: AFKzyxCyriJ
2018-04-06 23:29:13 -04:00
Boris Zbarsky 23dc2febce Bug 1452010 part 2. Remove nsIDOMDOMException members. r=qdot
MozReview-Commit-ID: Bp5ablEtcHA
2018-04-06 23:27:56 -04:00
Boris Zbarsky 9b3d37b936 Bug 1452010 part 1. Remove uses of nsIDOMDOMException. r=qdot
MozReview-Commit-ID: K5zUjh25WJG
2018-04-06 23:27:56 -04:00
Noemi Erli 3c6217a11e Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-07 01:03:50 +03:00
Noemi Erli eb61878455 Merge inbound to mozilla-central. a=merge 2018-04-07 00:55:15 +03:00
Ben Kelly 0a7ab378d1 Bug 1450991 Retry failed ServiceWorkerRegistrar saves and never wipe registrar data if saving fails. r=asuth 2018-04-06 14:50:38 -07:00
Noemi Erli 2108ebfea1 Bug 1446456 - disable test_audioParamSetCurveAtTimeTwice.html for frequent failures on Linux and Windows. r=jmaher
--HG--
extra : rebase_source : 36dfabc5d23aca549f544c25d4f2ef90329dea7d
2018-04-06 13:18:00 +03:00
Tom Schuster b12501054b Bug 1404744 - Check for FTP subresource after applying CSP. r=ckerschb
--HG--
extra : rebase_source : 642ba0d40d6b1d2e7ef85fdc52dffa72b5a24f5b
extra : histedit_source : 117afa5310977211fd18007e5ed7d2991a8b8837
2018-04-06 00:27:02 +02:00
Nils Ohlmeier [:drno] c9b218795e Bug 1451926: add a user pref for AV1 codec. r=cpearce
MozReview-Commit-ID: 9R6Ac4O81Ji

--HG--
extra : rebase_source : bd2f46b5596c0ebafc4f60bb8bf1812a8bf776f5
2018-04-05 20:35:57 -07:00
Adrian Wielgosik 2837c659de Bug 1170771 - Remove now-empty nsDOMClassInfo. r=bz
MozReview-Commit-ID: 7XsiPD1kTt9

--HG--
extra : rebase_source : 2935c0fe1a51083f37e113c3e0599760f40829e2
2018-04-05 14:20:44 +02:00
Adrian Wielgosik 2bd02cd742 Bug 1170771 - Remove ThisTranslator and support code. r=bz
MozReview-Commit-ID: Fv0F4RLCnkL

--HG--
extra : rebase_source : 24c3746ebde37b2bf4ab383cee781dd3bceb93b2
2018-04-05 12:49:24 +02:00
Bobby Holley 51170c6db8 Bug 1451421 - Add an atom overload for namespace registration. r=bz
MozReview-Commit-ID: 3CiyFImX8UO
2018-04-06 15:30:14 -07:00
Noemi Erli 758bc8158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-07 01:02:43 +03:00
Eliza Balazs 930bf58210 Bug 1446346 - Disable test_audioParamLinearRamp.html on linux and windows for frequent failures. r=jmaher 2018-04-04 06:01:00 +03:00
Ben Kelly ce2d80d9a7 Bug 1451426 Test that iframe does not leak cotent windows through event listeners. r=baku 2018-04-06 07:30:02 -07:00
David Parks a9fd0592af Bug 1446499: Use static nsWindowsDllInterceptor in plugin's HookProtectedMode r=aklotz
HookProtectedMode requires its nsWindowsDllInterceptor to last as long as the functions need to be overridden.  This uses a static object instead of a local one.

--HG--
extra : rebase_source : 7ba3f2fc1e19f89936b7f7fa490554e9cf9b885c
2018-04-03 17:09:36 -07:00
Andreea Pavel eed7d2803f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 17:54:45 +03:00
Kartikaya Gupta fce60f9567 Bug 1419851 - Handle OMTA throttling for webrender. r=jrmuizel
Original patch by Ethan Lin <ethlin@mozilla.com>.

MozReview-Commit-ID: AAIaskIsz9x

--HG--
extra : rebase_source : 879144b98467f47867d66f2806d7d31dbcf2bc7b
2018-04-06 10:06:54 -04:00
Andreea Pavel d9706dbbb9 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-06 13:26:13 +03:00
Andreea Pavel 9f9457503a Backed out changeset e220521c6ff6 (bug 1446247) on request a=backout r=smaug 2018-04-06 13:23:59 +03:00
Andreea Pavel 7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00
Nicolas B. Pierron d8df648fc6 Bug 1448194 - Substract the mBytecodeOffset from the bytecode length, as this could cause some assertion failures. r=mrbkap 2018-04-06 09:47:47 +00:00
Adam Gashlin cbf9e7b900 Bug 1437941: Don't ignore mousemove after fullscreen transition r=handyman
MozReview-Commit-ID: Hr9dcKVeYEC

--HG--
extra : rebase_source : fe9d1f3526704dd5c37bcbeb7c6a62de368be12c
2018-04-02 18:42:12 -07:00
Masatoshi Kimura c1aa340b7e Bug 1445541 - Enable the character encoding menu when the document is decoded as UTF-8 and an error is found, instead of disabling it when no errors are found. r=hsivonen
MozReview-Commit-ID: 1e6kQbAxcqm

--HG--
extra : rebase_source : 4c26e97255b4213b2f60855d8c9abc26fe812fa9
2018-04-06 06:20:28 +09:00
Andreea Pavel cca6606253 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 13:25:06 +03:00
Gijs Kruitbosch 3929672b94 Bug 1371523 - remove find bar sync ipc message, r=mikedeboer
MozReview-Commit-ID: C0VO0U3UJ76

--HG--
extra : rebase_source : 4c29a0d740ff8b18dea35428a3f88ab5093ecc91
extra : source : cbf007a7027f20ecc1641ea9cc07e98817a49862
2018-03-21 17:10:40 +00:00
Paolo Amadini 44e022ac15 Bug 1451782 - Remove unused properties of XULElement. r=bz
This removes properties of XULElement that can easily seen to be unused, even if the attributes they control are still in use. There are other properties that may still be used once or twice, and they are not removed here.

MozReview-Commit-ID: IL6mCvtGQAG

--HG--
extra : rebase_source : 4b22b330d311ef22e3466f517c04d5a19512ab71
2018-04-05 17:10:28 +01:00
Noemi Erli 11310197b3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-09 19:54:32 +03:00
Andreas Pehrson 2027a140e6 Bug 1452472 - Guard against stopped source and removed listener after timer fired. r=jib
MozReview-Commit-ID: 72M3xpbOgXP

--HG--
extra : rebase_source : c4ddcce0eac7b7539a61f389010f09383e15ee1f
2018-04-09 13:53:32 +02:00
Emilio Cobos Álvarez d7fe23bd25 Bug 1452324: Remove outdated references to bug 1326028. r=smaug
DONTBUILD, since it's comment-only.

MozReview-Commit-ID: KzZRo3FhwDr
2018-04-07 19:06:52 +02:00
Hiroyuki Ikezoe e38ae704a5 Bug 1412716 - Drop forward declarations of GeckoComputedStyle. r=emilio
MozReview-Commit-ID: CeI958wmdPE

--HG--
extra : rebase_source : 36b7fcb8dbcaaef118dc07cd691da1fb1199115f
2018-04-10 07:03:05 +09:00
Hiroyuki Ikezoe 437d6b5387 Bug 1412716 - De-templatize EffectCompositor::UpdateEffectProperties and relevant stuff. r=emilio
MozReview-Commit-ID: K8yb8Kw16Mr

--HG--
extra : rebase_source : b5153f46ecd0352496b6222c847ef5663aff6ab7
2018-04-09 20:15:59 +09:00
Hiroyuki Ikezoe 4ac31f33e0 Bug 1412716 - Drop KeyframeEffectReadOnly::mIsComposingStyle. r=emilio
The flag was introduced in bug 1322291 to prevent recursive calls of
KeyframeEffectReadOnly::ComposeStyle() on the old style system.  On the
new style system we never call the function recursively.

MozReview-Commit-ID: L5gb8G3bl4M

--HG--
extra : rebase_source : 3b01c2c3ff97b8890bf13095dd32b834270d00df
2018-04-09 20:15:59 +09:00
Hiroyuki Ikezoe 71f08a9c46 Bug 1412716 - De-templatize Animation::ComposeStyle and relevant stuff. r=emilio
MozReview-Commit-ID: AoDRzqG8hET

--HG--
extra : rebase_source : 4de6b09e38373117a7268aaefd83acdb82a67741
2018-04-09 20:15:59 +09:00
Hiroyuki Ikezoe a71696b6c8 Bug 1412716 - Rewrite a comment without using |aStyle|. r=emilio
MozReview-Commit-ID: 2OGLDBa31P

--HG--
extra : rebase_source : 8f49803dee5446cf0864f682dca5191794c82514
2018-04-09 20:15:59 +09:00
Doug Thayer 178c89f2b3 Bug 1452766 - Temporarily disable ForcePaint BHR r=mconley
MozReview-Commit-ID: FhilA7sRq2T

--HG--
extra : rebase_source : 76a0fa1bfa15865d5ae256f9c8f96df4315e387d
2018-04-09 13:24:46 -07:00
Kartikaya Gupta 2eefaf54ec Bug 1344350 - Mark reftests passing with webrender on Windows. r=jrmuizel
This covers all the reftests that have lower fuzz (or zero fuzz) and
were producing an UNEXPECTED-PASS result with webrender on windows. In
many cases I just adjusted the lower bound of the existing webrender
fuzz. In other cases existing fails-if conditions had to be tweaked to
exclude webrender.

MozReview-Commit-ID: 49LvS0vuYWR

--HG--
extra : rebase_source : d194e24affb87fe4560a127ff4016f9c38f414fd
2018-04-06 11:58:44 -04:00
Julian Descottes c87c82b440 Bug 1452187 - fix localization note mismatch;r=flod
Cleanup of all localization notes that refer to entities
that are not listed in the corresponding localization file.

MozReview-Commit-ID: Bl0VU9HoPfa

--HG--
extra : rebase_source : 86680b8ae037783304f045e94c7af7053a0f69e9
2018-04-06 20:21:35 +02:00
Boris Zbarsky 55cdcb3d94 Bug 1451929. Get rid of DOMCursor. r=qdot 2018-04-05 20:31:03 -04:00
Boris Zbarsky 7842086412 Bug 1451516 part 9. Remove the now-unused needsSpecialGenericOps method. r=qdot 2018-04-05 20:29:42 -04:00
Boris Zbarsky 1e83f6e69e Bug 1451516 part 8. Remove now-dead handling for cross-origin objects in CastableObjectUnwrapper. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 024f4366e8 Bug 1451516 part 7. Stop code-generating generic methods. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky e3323859c6 Bug 1451516 part 6. Stop code-generating generic setters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 0fc236f464 Bug 1451516 part 5. Stop code-generating generic cross-origin getters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky 96880eb840 Bug 1451516 part 4. Stop code-generating generic lenient getters. r=qdot 2018-04-05 20:29:41 -04:00
Boris Zbarsky d6f68586ee Bug 1451516 part 3. Stop code-generating generic getters for maybe-global objects. r=qdot 2018-04-05 20:29:40 -04:00
Boris Zbarsky e5888e7298 Bug 1451516 part 2. Refactor GenericBindingGetter to make it easier to use in more cases. r=qdot 2018-04-05 20:29:40 -04:00
Boris Zbarsky 2aaacc9bf8 Bug 1451516 part 1. Make it possible to use binding_detail in generated binding code without too much verbosity. r=qdot 2018-04-05 20:29:40 -04:00
Randell Jesup 3013268159 Bug 1448705: use input latency for draining r=jya 2018-04-05 17:15:07 -04:00
Dan Minor edc3382dd2 Bug 1432793 - Add mochitest for odd simulcast resolutions; r=bwc
This creates a simulcast stream with an odd resolution. This previously would
have caused a runtime assertion failure and crash.

MozReview-Commit-ID: IsywVOu6UeV

--HG--
extra : rebase_source : 7ad1cbe7dd36ccdd7a05e0c0a83db98a36c8c416
2018-04-04 09:24:28 -04:00
Boris Zbarsky 83412146ec Bug 1449631 part 13. Remove now-unnecessary forwarding macros. r=smaug
MozReview-Commit-ID: 6teO2KoGqUo
2018-04-05 13:42:42 -04:00
Boris Zbarsky a0b6e32bba Bug 1449631 part 12. Remove the Nullable smuggling from nsIDOMEventTarget. r=smaug
MozReview-Commit-ID: 73qhRSCpr3S
2018-04-05 13:42:42 -04:00
Boris Zbarsky 0b77426fa7 Bug 1449631 part 11. Remove nsIDOMEventTarget::AddSystemEventListener. r=smaug
The security checks outer window did here don't seem right, because the whole
point is that this method is only called by C++ code for its own purposes.
We're not adding random untrusted listeners via addSystemEventListener!

MozReview-Commit-ID: JdS5gTESclu
2018-04-05 13:42:42 -04:00
Boris Zbarsky 2cdc7450c3 Bug 1449631 part 10. Devirtualize AddEventListener. r=smaug
The CanCallerAccess check in the "webidl" version of
nsGlobalWindowOuter::AddEventListener was pointless, because bindings never
call things on outer windows.

MozReview-Commit-ID: 1CGMJ277bPu
2018-04-05 13:42:42 -04:00
Boris Zbarsky 88937275cc Bug 1449631 part 9. Remove nsIDOMEventTarget::AddEventListener. r=smaug
Also switch the XPCOM-y version of EventTarget::AddEventListner to a
Nullable<bool> for aWantsUntrusted.

The three-arg overload of AddEventListener in ContentFrameMessageManager was
never called, so all the AddEventListener overloads there are not needed.

MozReview-Commit-ID: 4IhqHmPVWzE
2018-04-05 13:42:42 -04:00
Boris Zbarsky 14f26fccf6 Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug
MozReview-Commit-ID: 5wQ2LYrjUxf
2018-04-05 13:42:41 -04:00
Boris Zbarsky adbcff27c1 Bug 1449631 part 7. Remove nsIDOMEventTarget::GetTargetFor* methods. r=smaug
MozReview-Commit-ID: AIzDo67mTDf
2018-04-05 13:42:41 -04:00
Boris Zbarsky 4292bca4ee Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky 553b5d6aae Bug 1449631 part 5. Move Will/Pre/PostHandleEvent out of nsIDOMEventTarget. r=smaug
MozReview-Commit-ID: K2nOZNPy0XE
2018-04-05 13:42:41 -04:00
Boris Zbarsky 053e2c9b36 Bug 1449631 part 4. Remove nsIDOMEventTarget::GetContextForEventHandlers. r=smaug
MozReview-Commit-ID: ID0FDvp28HY
2018-04-05 13:42:40 -04:00