Commit Graph

3064 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
dd634e3981 Bug 1411612: Kill nsINode::eCONTENT. r=bz
MozReview-Commit-ID: ESlOqlwhcHI

--HG--
extra : rebase_source : fe6a02469dca1e50c24ba166e15e39160ab4551b
2017-10-25 17:19:11 +02:00
Tom Schuster
d3b457113a Bug 638054 - Remove or fix tests outside JS using watch/unwatch. r=bz,fitzgen 2017-10-24 20:48:14 +02:00
Yoshi Huang
26c9043304 Bug 1407498 - Don't query loadingprincipal in common case. r=baku
We queried 'loadingprincipal' attribute on the common call path, however
this should be queried if it's loaded by System Principal.

Also rename loadingprincipal to triggeringprincipal
2017-10-24 10:13:31 +08:00
Ryan VanderMeulen
4a8d7024ae Bug 1388764 - Skip test_object_plugin_nav.html on Linux debug builds for frequent mozilla::ipc::MessageChannel::WillDestroyCurrentMessageLoop() shutdown crashes. r=qdot 2017-10-23 21:43:30 -04:00
bechen@mozilla.com
35226e578f Bug 1183495 - part2: Remove mozSrcObject in MediaElement. r=jwwang
MozReview-Commit-ID: 2bmYnu2RDdt

--HG--
extra : rebase_source : e6abd85f933463d2dfe73528c63be8736d2a1577
2017-10-20 11:23:07 +08:00
Masatoshi Kimura
dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Cameron McCormack
a341b24925 Bug 1409992 - Allow SVG as images to load data: URL images. r=edgar
MozReview-Commit-ID: KMirRmkLBVa

--HG--
extra : rebase_source : 6d40f52cc7318d11dddda74e9bf9386c35d15ed5
2017-10-19 18:00:43 +08:00
JW Wang
88f4b35bef Bug 1410225 - return the pending seek promise for SeekToNextFrame() when a seek is already in action. r=gerald
MDSM doesn't reset the decoding pipeline of MFR when doing NextFrameSeek and
therefore fails the assertion by requesting video data while MFR is still seeking.

We put the fix in the media element because it doesn't make sense to do
NextFrameSeek while another seek is already in action.

MozReview-Commit-ID: D6FSiNWHrLU

--HG--
extra : rebase_source : 7793fa32fb5fe3406f235aa43908a8a96202ee6c
2017-10-20 16:37:35 +08:00
Brendan Dahl
25dd61aaf2 Bug 1410477 - Re-add file_fullscreen-plugins.html test. r=jrmuizel
Accidentally removed in bug 1408220.

MozReview-Commit-ID: GgzovCsFdcr

--HG--
extra : rebase_source : db3b2b003eed4655cd9ea1ea1f42377f4ee85cc6
2017-10-20 10:32:30 -07:00
Jesse Ruderman
34507e5aa5 Bug 978644 - Add crashtest. r=me
--HG--
extra : rebase_source : 6493149cc6e5949bbe67f6e53a737c637bce39c4
2017-10-20 08:36:11 -04:00
Sebastian Hengst
edc6c5e2b9 Backed out changeset 725b9a93a191 (bug 1409992) for frequently failing layout/reftests/svg/foreignObject-img.html. r=backout
--HG--
extra : amend_source : 4c16e1f7dba810a1a2d0eee795e0c9c0d907087e
2017-10-20 11:23:28 +02:00
Cameron McCormack
6e4f600c67 Bug 1409992 - Allow SVG as images to load data: URL images. r=edgar
MozReview-Commit-ID: KMirRmkLBVa

--HG--
extra : rebase_source : fdbf2a5964eb50c67b825b3326c8034261620a49
2017-10-19 18:00:43 +08:00
JW Wang
2eb358fe5c Bug 1409649 - shut down the decoder when MEDIA_ERR_ABORTED is received. r=gerald
http://searchfox.org/mozilla-central/rev/dca019c94bf3a840ed7ff50261483410cfece24f/dom/html/HTMLMediaElement.cpp#1395-1400

We need to shut down the decoder after setting network state to EMPTY.
Otherwise the decoder will keep loading and change ready state to HAVE_METADATA
or greater and then fail the assertion in AssertReadyStateIsNothing().

MozReview-Commit-ID: FpMDVAJHTS5

--HG--
extra : rebase_source : 5fc7a189a47b462f7c5f89da650aeac171639664
2017-10-18 16:08:33 +08:00
Sebastian Hengst
24583b9443 merge mozilla-central to autoland. r=merge a=merge 2017-10-20 01:08:09 +02:00
Nathan Froyd
3689f793d3 Bug 1410100 - use fewer cycle collection macros for nsHTMLContentSink; r=mccr8
No need to use the complex macros when the simple macros do the same thing.
2017-10-19 14:41:10 -04:00
Andrea Marchesini
6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Emilio Cobos Álvarez
e912891dc7 Bug 1404789: Simplify ShadowRoot::IsPooledNode. r=bz
MozReview-Commit-ID: EDUwUmca7Qv

--HG--
extra : rebase_source : 72e8b19b0613b37995699857a518d53af3ebce0a
2017-10-18 15:02:16 +02:00
Emilio Cobos Álvarez
67ccc345f4 Bug 1404789: Cleanup a bit the ShadowRoot code. r=bz
MozReview-Commit-ID: 8mTrXbbefX2

--HG--
extra : rebase_source : f88e255ddffd5b0a9c9b2ea52144ebb08df05233
2017-10-17 18:22:29 +02:00
Brendan Dahl
734c99161a Bug 1408220 - Skip fullscreen plugin test in headless mode. r=jrmuizel
--HG--
extra : rebase_source : 49eab6c1940b5b865e12e7b9deec478321b832af
2017-10-11 14:11:22 -07:00
JW Wang
ae3c66bf3c Bug 1409270. P4 - remove mWatchManager. r=gerald
MozReview-Commit-ID: G45ezz1o2x8

--HG--
extra : rebase_source : bbce38d798f908a97d44a698a87f8cee041bdbb5
2017-10-17 15:10:23 +08:00
JW Wang
2bb3bf8087 Bug 1409270. P3 - remove WatchTarget from the base class of HTMLMediaElement::StreamListener. r=gerald
MozReview-Commit-ID: B7fmYlJShEC

--HG--
extra : rebase_source : b4b7074b725af9976325745789715bbe0145c129
2017-10-17 15:06:58 +08:00
JW Wang
29cc270f1b Bug 1409270. P2 - replace the use of mWatchManager.ManualNotify() with direct calls. r=gerald
MozReview-Commit-ID: I0t0Wp9lnAa

--HG--
extra : rebase_source : 363dc8277b4ac1c5769fe17924c768907b2bca61
2017-10-17 14:52:38 +08:00
JW Wang
99ae0ae477 Bug 1409270. P1 - remove Watchable<> from mDownloadSuspendedByCache. r=gerald
MozReview-Commit-ID: K0hhlOKN399

--HG--
extra : rebase_source : 22aa4e513f91b86dffd436e0efbb275ee1fb44bb
2017-10-17 14:46:15 +08:00
JW Wang
e66b8fb19a Bug 1409263. P2 - remove Watchable<> from HTMLMediaElement::mReadyState. r=gerald
MozReview-Commit-ID: EYXY7FDfYvd

--HG--
extra : rebase_source : 188f81254eae6ab94a46b5c956b3b95cb5a3b16e
2017-10-17 14:28:56 +08:00
JW Wang
8c82ac93d1 Bug 1409263. P1 - fix logs in ChangeReadyState(). r=gerald
The old code doesn't print readyState changes when networkState is EMPTY.

MozReview-Commit-ID: 8rWUbpsmNuu

--HG--
extra : rebase_source : 509ebf1ae94e2618e63c764ef8fdf0869cb60582
2017-10-17 14:18:27 +08:00
Sebastian Hengst
fea24c0daf merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : 819bdfcc5e3f50cb5a3d8d76ce1f88ceeb0dd5a9
2017-10-17 23:54:52 +02:00
Dragana Damjanovic
a1b076412f Bug 1408019 - Code clean up for sSupportedRelValues. r=bz 2017-10-17 18:38:10 +02:00
Emilio Cobos Álvarez
49520448ff Bug 1409079: Simplify WebComponents enabled checks. r=smaug
MozReview-Commit-ID: F8WAYvregRu

--HG--
extra : rebase_source : e27fca79d9c5bbaf5c096abfa3e0e1dd75e07cfc
2017-10-17 11:37:07 +02:00
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Chris Pearce
2ba329dae6 Bug 1409178 - Move DecoderTraits::CreateDecoder() to ChannelMediaDecoder::Create(). r=jwwang
Now DecoderTraits doesn't need to depend on ChannelMediaDecoder.

MozReview-Commit-ID: D4AUiV2eGWy

--HG--
extra : rebase_source : 38e6c4cdd0f7e32473c6945550bca6fd0cc72bf2
2017-10-16 22:55:26 +02:00
JW Wang
a8587b5ae3 Bug 1408482 - fix build error. r=gerald
MozReview-Commit-ID: HIq2zZROKRA

--HG--
extra : rebase_source : c4dd09508bd71e8079066d63085a6ac2dd6cd4e0
2017-10-17 10:55:11 +08:00
Kris Maglione
60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
David Major
34919e275a Bug 1408695 - Work around a VS2017 constexpr pointer math bug in HTMLTrackElement.cpp. r=gerald 2017-10-14 21:09:05 -04:00
Cameron McCormack
e62bdd62e9 Bug 1408315 - Remove unused nsCSSParser local variable in HTMLSourceElement::UpdateMediaList. r=bkelly
MozReview-Commit-ID: EQAaoPUTUnc

--HG--
extra : rebase_source : 2d38ebd3b214af42eeffd5171a0b5b0597a4e9d0
2017-10-13 16:03:34 +08:00
Kyle Machulis
1cc8b01353 Bug 1406224 - Remove nsIDOMHTMLImageElement; r=bz
MozReview-Commit-ID: GCATWRt6qMo

--HG--
extra : rebase_source : 29854f1374c6ad318da0b5b68be23507667c3be4
2017-10-06 13:27:23 -07:00
Chung-Sheng Fu
6eb3e9c2c9 Bug 967895 - Ask for placeholder data when image extraction is not allowed (Tor 6253). r=jrmuizel
MozReview-Commit-ID: AJ5F6M5S83U

--HG--
extra : rebase_source : 894b16575ebbccc26c5b639d7526cb473501d9d2
2017-08-22 14:23:41 +08:00
Sebastian Hengst
847d86fda7 merge mozilla-central to autoland. r=merge a=merge 2017-10-13 11:51:55 +02:00
JW Wang
b99db097b4 Bug 1407895 - ensure mDecoder->Suspend() is called on a newly created decoder if mPausedForInactiveDocumentOrChannel is true. r=gerald
See comment 3 for the root cause.

MozReview-Commit-ID: CX5npKv2eWG

--HG--
extra : rebase_source : 085192f55b082f878d2f9915c24e89a56a981799
extra : source : 07f12b6df9d35eb3d215835a174504c70120b588
2017-10-13 11:58:05 +08:00
JW Wang
03ca7715a5 Bug 1407148 - add logs for debugging crashes. r=gerald
MozReview-Commit-ID: FgDbl2tCbEE

--HG--
extra : rebase_source : d94d5783a2a08022d8ef89f14f8f35c99ee124fe
extra : source : 9b4dfa4ccd83c2a933f65d422641c5a9c018ce5c
2017-10-12 10:46:13 +08:00
Dragana Damjanovic
dc118fd91d Bug 1405761 - If the preload pref is disabled rel=preload should be shown as not supported. r=smaug
--HG--
extra : rebase_source : 3e32d5d8beceedca7ab3eaaf528385f4e73f1164
2017-10-11 03:20:00 -04:00
Kris Maglione
5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Ryan VanderMeulen
0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Sebastian Hengst
57b7c19650 merge mozilla-central to autoland. r=merge a=merge 2017-10-11 11:51:32 +02:00
Sebastian Hengst
ed86a2c11f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AgDEPuT8DNK
2017-10-11 11:41:04 +02:00
Sebastian Hengst
592a737256 Backed out 2 changesets (bug 1357191) for frequently failing mochitest dom/html/test/forms/test_input_sanitization.html on Android 4.3 API16+ debug. r=backout
Backed out changeset c6ba568874b0 (bug 1357191)
Backed out changeset 562e7fc9a839 (bug 1357191)
2017-10-10 23:27:21 +02:00
JW Wang
1a47dd3c0c Bug 1397708 - remove HTMLMediaElement::mBegun. See comment 12 for the root cause. r=cpearce
When network state is changed to IDLE, mBegun is also set to false. [1]
And then when HTMLMediaElement::DownloadResumed(false) is called, network
state is not changed to LOADING for mBegun is false [2]. This prevents us
from firing 'progress' events for the network state is IDLE.

See comment 12 for more details.

[1] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#6077
[2] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#5673

MozReview-Commit-ID: DOfqKZXAqaz

--HG--
extra : rebase_source : 881b632447d4a78461c235fffad37595f44cc095
extra : source : 2c01d77d3a7e605bf060e17d41afa86ee0f46396
2017-10-10 07:04:18 +08:00
Hiroyuki Ikezoe
a5c66d4d97 Bug 1407463 - Drop unused pseudo atom argument from ResolveStyleLazily and ResolveStyleLazilyInternal. r=heycam
MozReview-Commit-ID: Lmjqbr7QsTU

--HG--
extra : rebase_source : dc1587cd9058bf279f21116a843928289b2602f2
2017-10-11 10:00:28 +09:00
Boris Zbarsky
01a7f72b91 Bug 1407334. Add some overloads for src/href getters that don't need a principal, for Thunderbird to use. r=kmag
MozReview-Commit-ID: 23iOeNDMXNk
2017-10-10 15:04:19 -04:00
Sebastian Hengst
3c466b2f77 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 11:54:59 +02:00
Jonathan Watt
60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00