Commit Graph

65862 Commits

Author SHA1 Message Date
Matthew Gregan
2f8cc7804c Bug 1388236 - Remove B2G-only AudioChannel code from MSG. r=padenot 2017-08-10 13:00:08 +12:00
Matthew Gregan
89fde0ce0f Bug 1388236 - Remove B2G-only AudioChannel code from media playback. r=jwwang 2017-08-10 13:00:07 +12:00
Matthew Gregan
f4d992a821 Bug 1388229 - Remove B2G-only audio stream type handling. r=kamidphish 2017-08-10 13:00:07 +12:00
Tooru Fujisawa
e50adffb61 Bug 1379842 - Check content principal when dragging and dropping from browser. r=smaug 2017-08-10 09:43:35 +09:00
Ryan VanderMeulen
52ffe4157f Merge m-c to inbound. a=merge 2017-08-09 18:48:56 -04:00
Ryan VanderMeulen
2e6670c78e Merge autoland to m-c. a=merge 2017-08-09 18:47:59 -04:00
Masatoshi Kimura
706ca23396 Bug 1387788 - Remove [deprecated] methods from nsIJSON. r=Ehsan
MozReview-Commit-ID: 9OsQacbPsFo

--HG--
extra : rebase_source : 8c905a48306e957026af9dd8fcbf83eae41b8a38
2017-08-06 10:25:15 +09:00
Tim Taubert
72cca79ea8 Bug 1388853 - Fix timeouts in WebAuthnManager::MakeCredential() r=jcj 2017-08-09 21:26:49 +02:00
Carsten "Tomcat" Book
bb29fe249d Merge mozilla-central to autoland 2017-08-09 12:31:56 +02:00
Carsten "Tomcat" Book
c329d562fb merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
Henry Chang
d9fddc6423 Bug 1388606 - Test case for ensuring data:font is treated same-origin. r=ckerschb
We try to load a data:font and apply to some text in the test case. In case
data:font is treated different origin, the font will not load and the
test would fail.

MozReview-Commit-ID: LWYWJOoWL71

--HG--
extra : rebase_source : e4e133c16c75ecee80293c17703a03c7ce1ef18b
2017-08-09 16:39:44 +08:00
Phil Ringnalda
858a553b02 Backed out 2 changesets (bug 1386103) for Android x86 build bustage
Backed out changeset eec506d87d03 (bug 1386103)
Backed out changeset 3f9ec011c9bd (bug 1386103)

MozReview-Commit-ID: 8ak71R7vUOC
2017-08-08 22:08:54 -07:00
Chris Pearce
e869956526 Bug 1388288 - Make TrackBuffersManager compile in non-Unified mode. r=jya
TrackBuffersManager::SegmentParserLoop() fails to compile in non-Unified mode
because some uses of SourceBufferAttributes::AppendState don't have the
SourceBufferAttributes:: prefix. So just add a typedef to make that
unnecessary.

MozReview-Commit-ID: 1H3SIeUxNu7

--HG--
extra : rebase_source : 06215eec4f19a46dc5e7243f1be02a1bfb974ddf
2017-08-08 15:02:20 +08:00
Chris Pearce
1c7befff21 Bug 1388288 - Make EME/GMP related code build non-Unified. r=gerald
MozReview-Commit-ID: 5q0Wwr2BNA0

--HG--
extra : rebase_source : e32e90c06ac933b3a387e26dbbfdcfac93ef3faf
2017-08-08 16:36:01 +08:00
Chris Pearce
f59d29e3f3 Bug 1388288 - Make OpusTrackEncoder build in non-Unified mode. r=SingingTree
MozReview-Commit-ID: 9Y6rkxYwVhw

--HG--
extra : rebase_source : 5d5f61b9cd83ac13c2c328a22bf033b9ad3ab4c4
2017-08-08 16:42:57 +08:00
Chris Pearce
2317493000 Bug 1388288 - Make Flac and Ogg decoders build in non-Unified mode. r=jya
FLAC_MAX_CHANNELS is used in FlacDemuxer and in FrameParser, so move it,
and all the other FLAC_{MIN,MAX}* #defines to FrameParser.h. The other
defines don't technically need to be there, but it's nicer to have them
all defined together.

MozReview-Commit-ID: LVZzXvBSvMq

--HG--
extra : rebase_source : 1c8e5c111232856ef5589f214c00d510ece9af00
2017-08-08 15:46:37 +08:00
Chris Pearce
5270e8c4f7 Bug 1388288 - Make dom/media/platforms build in non-unified mode. r=jya
MozReview-Commit-ID: 43uEIDmfCMR

--HG--
extra : rebase_source : 5d5619be910d83a85459d00a8ea5f71fd91278ba
2017-08-08 14:35:36 +08:00
Chris Pearce
843a107185 Bug 1388288 - Make dom/media/webaudio build non-Unified. r=padenot
MozReview-Commit-ID: Dihfqa9URpl

--HG--
extra : rebase_source : 0e1346919ada98b78481ced311940248cffd6d86
2017-08-08 11:38:02 +08:00
Chris Pearce
dd6f329054 Bug 1388288 - Make CubebUtils build in non-Unified builds. r=padenot
MozReview-Commit-ID: DTpwXrnLFJZ

--HG--
extra : rebase_source : 5508abc107dde4a8a6bf225cff4e0428075127e8
2017-08-08 10:57:08 +08:00
Nicholas Nethercote
7512aa2dea Bug 1386103 (part 2) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm.
In all of these cases the fixed buffer has the same lifetime as the string
object, so we can use nsAuto[C]String for simplicity.

For the 128-length ones in dom/xul/ I just switched to the default of 64 for
simplicity, because the choice of 128 didn't seem that important. (These code
paths weren't hit when I started the browser and opened a few sites.)

Finally, the patch also changes LoggingIdString to use
nsAutoCStringN<NSID_LENGTH>, similar to NullPrincipalURI.
2017-08-01 11:58:56 +10:00
Nicholas Nethercote
e9daf4d245 Bug 1386103 (part 1) - Specify nsAuto[C]String storage size via template parameter. r=dbaron.
This patch parameterizes nsAuto[C]String, renames them as nsAuto[C]StringN, and
redefines nsAuto[C]String as typedefs for nsAuto[C]StringN<64>.

(The alternative would be to templatize nsAuto[C]String and use a default
parameter, but that would require writing "nsAuto[C]String<>" everywhere.)
2017-08-01 11:58:45 +10:00
Nicholas Nethercote
d4e19d954a Bug 1388253 - Convert nsTextFormatter:[v]smprintf() use to [v]ssprintf(). r=erahm.
[v]ssprintf() is just a better way of doing things.

--HG--
extra : rebase_source : 25337787b9557f8a7080a67645dba70609a8f646
2017-08-09 10:41:14 +10:00
Yoshi Huang
8249b8ae4c Bug 1366151 - rewrite dom/html/test/test_fullscreen-api-race.html. r=smaug
Run this test with security.data_uri.unique_opaque_origin set to false
so we can reply on SimpleTests.waitForFocus() to be fired.
2017-08-09 08:58:11 +08:00
Ehsan Akhgari
061d437c9e Bug 1386960 - Call nsTextInputListener's callback manually after using the non-transaction based editor code path for setting values of input controls; r=bzbarsky 2017-08-08 18:27:42 -04:00
Wes Kocher
7651bde05c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9Abf0fILvvK
2017-08-08 15:16:00 -07:00
Wes Kocher
650baf5c45 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
Eric Rahm
01f545fea7 Bug 1386825 - Part 1: Remove MOZ_B2G from dom. r=bkelly
MozReview-Commit-ID: 1zzP2r01B7U
2017-08-08 14:41:05 -07:00
Jan Varga
bd9fcfbc01 Bug 1350637 - Part 11: Fix a race between parent/child process; r=asuth
When a storage child actor gets the xpcom-shutdown notification, it releases
the actor singleton which asynchronously sends __delete__ to the parent and
destroys the child actor immediatelly. However, at the same time parent can be
sending a message to the child which results in a routing error since the child
actor doesn't exist anymore. The routing error causes a crash.
This patch prevents the race by doing the teardown in two steps. We send a
message to the parent DeleteMe and parent then sends __delete__ to the child.
2017-08-08 23:02:57 +02:00
Aryeh Gregor
82ee59d8c7 Bug 1388119 - Drop support for createEvent("ErrorEvent"/"PopStateEvent"); r=smaug
They were just dropped from the spec:

https://github.com/whatwg/dom/issues/362
https://github.com/whatwg/dom/pull/489

ErrorEvent we never supported anyway until it was added recently to
match the spec.  PopStateEvent is not supported by WebKit, Blink is
planning to try dropping support, our telemetry shows usage is
basically zero, and we never supported any way to initialize it anyway.

The changes to Document-createEvent.html and Document-createEvent.js are
taken from upstream.  The other wpt changes are new in this commit.

MozReview-Commit-ID: A6GzhLwL08l

--HG--
extra : rebase_source : 4bdcd605b179ea787985845e9b1c53f76ebc179a
2017-08-07 21:19:59 +03:00
Carsten "Tomcat" Book
635b24e121 Merge mozilla-central to autoland 2017-08-08 13:25:29 +02:00
Carsten "Tomcat" Book
0f16d437cc merge mozilla-inbound to mozilla-central a=merge 2017-08-08 13:18:14 +02:00
Andrew Sutherland
8e40043ab4 Bug 1350637 - Part 10: Update LocalStorage e10s tests for change to PBackground. r=janv
The e10s tests were written assuming a world where ContentTask.spawn and
LocalStorage were both PContent.  Also, that Quantum DOM labeling wasn't
something to worry about.  These assumptions no longer held, resulting in
the test intermittently failing if all changes hadn't propagated via
PBackground to the tab under test by the time the ContentTask.spawn
state retrieval call made it to the tab's main thread.

This has been corrected by using "storage" events where already in use and
polling where not in use.  Plase see the added comments for more details.
2017-08-07 04:14:17 -04:00
Jan Varga
ac9ac9e347 Bug 1350637 - Part 9: Move Local Storage event broadcasting from PContent to PBackground; r=asuth 2017-08-08 23:02:28 +02:00
Jan Varga
b53d9b8691 Bug 1350637 - Part 7: Convert asynchronous StorageDBParent initialization to be synchronous and fix low disk space checking; r=asuth 2017-08-08 23:01:56 +02:00
Jan Varga
9d50c72e29 Bug 1350637 - Part 6: Fix a deadlock when main process storage child actor triggers storage thread initialization; r=asuth 2017-08-08 23:01:52 +02:00
Jan Varga
3acd1f5628 Bug 1350637 - Part 5: Factor out the parent actor observer sink to work on the PBackground thread, fix the rest of observer handling to use IPC; r=asuth 2017-08-08 23:01:33 +02:00
Jan Varga
75c214b7ea Bug 1350637 - Part 4: Implement serialization for mozilla::OriginAttributesPattern, so we can use it on the receiver side of IPC without bouncing to the main thread; r=asuth 2017-08-08 23:01:14 +02:00
Jan Varga
9ea37e48ab Bug 1350637 - Part 3: Move mozilla::dom::Optional serialization helper to ipc/glue/IPCMessageUtils.h to make it available to other consumers; r=billm 2017-08-08 23:01:03 +02:00
JW Wang
cf112f4b88 Bug 1388228. P6 - following P5, we are now able to move some methods that are related to nsIChannel to BaseMediaResource. r=gerald
So we reduce the number of unimplemented methods in the sub-classes of MediaResource.

MozReview-Commit-ID: EAmUEv9WQk8

--HG--
extra : rebase_source : deed5fd089e8c42a5a6ab0546e0781d0061591e5
2017-08-07 18:09:56 +08:00
JW Wang
6ab3fdad07 Bug 1388228. P5 - move some more members to ChannelMediaDecoder. r=gerald
Those members only make sense for ChannelMediaResource.

MozReview-Commit-ID: 2z6WPQeJnIT

--HG--
extra : rebase_source : 7f43635ee91c8fad1d6ad6f56788e880d54beab2
2017-08-07 13:23:43 +08:00
JW Wang
e5f016de87 Bug 1388228. P4 - move the implementation of MediaDecoder::CanPlayThroughImpl() down to ChannelMediaDecoder. r=gerald
Because GetStatistics() only makes sense for ChannelMediaResource.

MozReview-Commit-ID: HkEpb4frUx1

--HG--
extra : rebase_source : 7086721f47b381b692a165302ff3bdc13caa8b41
2017-08-07 11:48:43 +08:00
JW Wang
303f74001a Bug 1388228. P3 - following P2, we can now remove unused code and canonicals. r=gerald
Note we remove the log in BufferingState::Enter() which prevents us from
removing ChannelMediaResource related code from MDSM. We can add it back
in the future after the refactoring.

MozReview-Commit-ID: B94iOI0bTXC

--HG--
extra : rebase_source : 857b7420ab9b52c07dc8a917c1f9344096ed20e6
extra : source : 2c350a4f3cbdf6f446b5e1cc8d6e0892722866d0
2017-08-04 17:56:28 +08:00
JW Wang
b4e54281c9 Bug 1388228. P2 - cache the result of CanPlayThrough() and mirror it to MDSM. r=gerald
So we don't duplicate the code of calculating CanPlayThrough from
download rate and playback rate in MediaDecoder.

MozReview-Commit-ID: 7M5JAuUxFFc

--HG--
extra : rebase_source : cb216a1af59b9d8207e3056a5d3ae05e93d85e74
extra : source : a183c089760e329508fac44239fee42c1f047b80
2017-08-04 17:38:20 +08:00
JW Wang
4eb2d7a53b Bug 1388228. P1 - move some members to ChannelMediaDecoder. r=gerald
These members are used only by ChannelMediaDecoder.

MozReview-Commit-ID: 10CHV1sjY9k

--HG--
extra : rebase_source : 2a9817a433cd098d818399e718a5c08d6b88df4c
extra : source : 5d606d67b79543adde8580d96f5aa7055fe0286c
2017-08-04 16:02:40 +08:00
Henry Chang
0038962d8f Bug 1387983 - Fix test case for data:stylesheet same origin check. r=heycam
MozReview-Commit-ID: 1U7Aw9X13uF

--HG--
extra : rebase_source : 5cb424d70567a42df0d6521961474a89fd9d87d2
extra : source : 540b354d289a34c48b0fd2e43da3e3f6ae1aae2e
2017-08-07 16:36:35 +08:00
Kan-Ru Chen
87a450cad1 Bug 1386495 - Add timeStamp to DOMEventMarkerPayload. r=mstange,smaug
MozReview-Commit-ID: B3b4laxMqQM

--HG--
extra : rebase_source : 80e41c2f9d921ddd93d41c348594895046c7af8f
2017-08-03 15:42:42 +08:00
Jan Varga
c186d54bb2 Bug 1350637 - Part 2: Core changes for LocalStorage on PBackground; r=asuth
- stop inheriting StorageDBBridge in StorageDBThread and StorageDBChild
- move StorageDBThread and StorageDBChild initialization out of LocalStorageCache
- use IPC even for the intra-process communication in main process
- rationalize a bit storage observer code
- make StorageDBParent to always be created and destroyed on the background thread
2017-07-26 12:19:13 +02:00
Jan Varga
ceff0f7d8f Bug 1350637 - Part 1: Move PStorage stubs from PContent to PBackground; r=asuth r=billm
--HG--
rename : dom/storage/PStorage.ipdl => dom/storage/PBackgroundStorage.ipdl
2017-08-08 22:56:49 +02:00
Christoph Kerschbaumer
a1341ccf6d Bug 1387811 - Follow up for Test within Bug 1381761: CSP JSON is never null, hence it's better to check actual contents of JSON for testing. r=dveditz 2017-08-06 11:37:09 +02:00
Eugen Sawin
14c89f86b5 Bug 1386240 - [1.3] Check success status when enabling or disabling geolocation events. r=jchen 2017-08-08 18:15:54 +02:00