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

68836 Коммитов

Автор SHA1 Сообщение Дата
Tim Taubert 82783caf59 Bug 1409434 - Rework WebAuthnManager state machine r=jcj
Summary:
This patch aims to clean up the WebAuthnManager's state machine, especially
to make cancellation of transactions clearer. To fix bug 1403818, we'll have to
later introduce a unique id that is forwarded to the U2FTokenManager.

There are multiple stages of cancellation/cleanup after a transaction was
started. All of the places where we previously called Cancel() or
MaybeClearTransaction() are listed below:

[stage 1] ClearTransaction

This is the most basic stage, we only clean up what information we have about
the current transaction. This means that the request was completed successfully.
It is used at the end of FinishMakeCredential() and FinishGetAssertion().

[stage 2] RejectTransaction

The second stage will reject the transaction promise we returned to the caller.
Then it will call ClearTransaction, i.e. stage 1. It is used when one of the
two Finish*() functions aborts before completion, or when the parent process
sends a RequestAborted message.

[stage 2b] MaybeRejectTransaction

This is the same as stage 2, but will only run if there's an active transaction.
It is used by ~WebAuthnManager() to reject and clean up when we the manager
goes away.

[stage 3] CancelTransaction

The third stage sends a "Cancel" message to the parent process before rejecting
the transaction promise (stage 2) and cleaning up (stage 1). It's used by
HandleEvent(), i.e. the document becomes inactive.

[stage 3b] MaybeCancelTransaction

This is the same as stage 3, but will only run if there's an active transaction.
it is used at the top of MakeCredential() and GetAssertion() so that any
active transaction is cancelled before we handle a new request.

Reviewers: jcj

Reviewed By: jcj

Bug #: 1409434

Differential Revision: https://phabricator.services.mozilla.com/D132
2017-10-18 15:04:56 +02:00
Bob Owen e2aa618745 Bug 1372823 Part 1: Fix assertion in IndexedDatabaseManager::NoteLiveQuotaManager. r=janv 2017-10-18 12:04:52 +01:00
Sebastian Hengst f628238619 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-18 11:51:21 +02:00
Sebastian Hengst f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Phil Ringnalda cf776f840e Backed out 2 changesets (bug 1407487) for Android and hazard build bustage and Linux webspeech test timeouts
CLOSED TREE

Backed out changeset 806976ac38b8 (bug 1407487)
Backed out changeset 0ff7dc9aebd9 (bug 1407487)

MozReview-Commit-ID: HLDEXTRvG7l
2017-10-17 19:49:43 -07:00
Andrea Marchesini a4830e4ab7 Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
btian 4986b193f1 Bug 1406395 - P3: Backout changeset b679806ce7e3 (bug 1384661 part 1). r=smaug 2017-10-13 12:06:43 +08:00
btian cd138502d8 Bug 1406395 - P2: Backout changeset 8f77d260780d (bug 1384661 part 2). r=smaug 2017-10-13 12:05:54 +08:00
btian 29f303fd85 Bug 1406395 - P1: Backout changeset 7df868e0e356 (bug 1384661 part 3). r=smaug 2017-10-13 12:03:44 +08:00
Nicholas Nethercote 7f098bdb9c Bug 1409227 (part 4) - Replace nsMemory::Clone(id, sizeof(nsID)) with nsID::Clone(id). r=mccr8.
This change requires introducing nsID::Clone(). Because it's infallible, the
patch also removes some redundant failure-handling code. (nsMemory::Clone() is
also infallible, so this code was redundant even before this change.)

--HG--
extra : rebase_source : ef22757d3fa814320490bf7e19e822b8f0c4bdc3
2017-10-18 10:39:20 +11:00
Tom Ritter 36dde53d4f Bug 1404035 Address unused result warnings in dom/ipc/ r=smaug
In come cases, we can fail the IPC message, but in one we can't really do anything.

MozReview-Commit-ID: 4vdKIRUOJNN

--HG--
extra : rebase_source : b32559b4d88017612c35346f83cb11cb5b522252
2017-09-28 12:46:37 -05:00
Sebastian Hengst f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst 34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Dragana Damjanovic a1b076412f Bug 1408019 - Code clean up for sSupportedRelValues. r=bz 2017-10-17 18:38:10 +02:00
Tim Taubert 23f8be23e6 Bug 1409357 - Remove {WebAuthn,U2F}Manager::Start{Register,Sign,Cancel} methods r=jcj
Summary:
We can simplify and reduce the {WebAuthn,U2F}Manager code by removing these
methods and sending messages directly from closures.

Reviewers: jcj

Reviewed By: jcj

Bug #: 1409357

Differential Revision: https://phabricator.services.mozilla.com/D131
2017-10-17 17:11:12 +02:00
Sebastian Hengst 8360803d7d Backed out changeset 1378bcab8986 (bug 1305230) for failing mochitest dom/file/tests/test_fileapi_slice_realFile_2.html on Windows. r=backout 2017-10-17 17:05:26 +02:00
Sebastian Hengst f2942d6e08 Backed out changeset 7ecbcedbab1f (bug 1305230) 2017-10-17 17:04:54 +02:00
Sebastian Hengst d6f98a8084 Backed out changeset db2a7c569b2d (bug 1305230) 2017-10-17 17:04:48 +02:00
Sebastian Hengst 86b4ca0f94 Backed out changeset 557644d57153 (bug 1305230) 2017-10-17 17:04:43 +02:00
Sebastian Hengst 0589950706 Backed out changeset a62b4707335a (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_slice_realFile_2.html => dom/file/tests/test_fileapi_slice.html
rename : dom/file/tests/test_fileapi_slice_memFile_2.html => dom/file/tests/test_fileapi_slice2.html
2017-10-17 17:04:37 +02:00
Sebastian Hengst a3cc2279e8 Backed out changeset d6973896c2e5 (bug 1400098) 2017-10-17 17:04:32 +02:00
Sebastian Hengst 4a6ef4d29e Backed out changeset 7d032e676aef (bug 1400098) 2017-10-17 17:04:26 +02:00
Sebastian Hengst 3c21e7d99d Backed out changeset e81517c2358c (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_twice.html => dom/file/tests/test_fileapi.html
rename : dom/file/tests/test_fileapi_twice_worker.html => dom/file/tests/test_fileapi_worker.html
2017-10-17 17:04:20 +02:00
Sebastian Hengst 2f49a0c0b7 Backed out changeset 627d872075bc (bug 1305230) 2017-10-17 17:04:15 +02:00
Bob Clary c0eb52d90b Bug 1409203 - disable dom/media/tests/mochitest/test_peerConnection_videoCodecs.html on Android, r=gbrown 2017-10-17 07:20:40 -07:00
Robert Longson 71d7fc5d25 Bug 1322849 - Add a range check when the duration is multiplied by the repeat count. r=birtles 2017-10-17 22:19:54 +01:00
Ben Kelly 7ad5940e12 Bug 1204254 P15 Try to make test_devtools_serviceworker_interception.html handle --verify runs again. r=asuth 2017-10-17 13:38:56 -07:00
Ben Kelly 8231685365 Bug 1204254 P14 Stop faking responseStart/End directly and make PerformanceTiming map SW specific timings instead. r=asuth 2017-10-17 13:38:56 -07:00
Ben Kelly e836540c57 Bug 1204254 P11 Notify "service-worker-synthesized-response" topic when synthesis starts so devtools can trace the channel. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly d48b092026 Bug 1204254 P9 Pass the body stream directly to StartSynthesizedResponse() instead of copying. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 827e1b543b Bug 1204254 P7 Allow the body nsIInputStream to be passed in StartSynthesizeResponse(). r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 343cdda7a9 Bug 1204254 P6 Wait to start copying data until after we start the response synthesis. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 414598f71f Bug 1204254 P4 Dispatch the StartResponse runnable when body copying begins. r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly 7ab3bc5f8b Bug 1204254 P3 Move logic into StartFinish() runnable separate from FinishRunnable() in ServiceWorkerEvents. r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly 262c2cb4f2 Bug 1204254 P2 Move StartSynthesizedResponse() out from FinishSynthesizedResponse(). r=asuth 2017-10-17 13:38:54 -07:00
Randell Jesup 6ccd0752b4 Bug 1407680: Set DelayAgnostic and ExtendedFilter options r=dminor
This was lost due to API changes in the update to upstream v57
2017-10-17 16:27:20 -04:00
Sebastian Hengst 50123e0062 Backed out changeset ef64f4c98cc6 (bug 1409394) for failing browser-chrome's browser_save_link-perwindowpb.js and browser_libraryDrop.js on OS X and leaks detected by chrome test on Linux x64 asan. r=backout on a CLOSED TREE 2017-10-17 22:23:30 +02:00
Sebastian Hengst b1cdb2af00 Backed out changeset 03e4f9175b16 (bug 1409329) 2017-10-17 22:03:39 +02:00
Sebastian Hengst 66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Boris Zbarsky fb684cc726 Bug 1409152. Add an nsTArray::ContainsSorted method. r=froydnj 2017-10-17 15:39:59 -04:00
Andrea Marchesini d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrea Marchesini fe04c2050c Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrea Marchesini c9234eab7c Bug 1305230 - Using createUnique when creating test files in fileapi_chromeScript.js, r=me 2017-10-17 13:21:39 +02:00
Andrea Marchesini 2fc80505b6 Bug 1305230 - Splitting test_fileapi.html and test_fileapi_worker.html in multiple files, r=me
--HG--
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_basic.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_basic_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_encoding.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_encoding_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_other.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_other_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_twice.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_twice_worker.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini faf078bd88 Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 546f84767b Bug 1400098 - test_fileapi.html rewritten using Promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 1e20889292 Bug 1305230 - Splitting test_fileapi_slice in four files, r=me
--HG--
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_1.html
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_2.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_1.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_2.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini 3f03532be3 Bug 1305230 - Splitting test_fileapi_slice in two files, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 55ddd1cb9b Bug 1305230 - Make test_fileapi_slice using promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 2339456703 Bug 1305230 - removing fileutils.js from tests when not needed, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini 5bf48c9e57 Bug 1305230 - Make test_blobconstructor promise based, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini f15ed01e48 Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
Alastor Wu c8a9b504ed Bug 1408987 - Part 2: Make mManager thread-safe. r=jya
mManager would be accessed in both main thread and task queue, and be set on task
queue, so we need to make sure it's thread-safe.

MozReview-Commit-ID: m76KeEsDgB
2017-10-17 16:53:54 +08:00
Alastor Wu bbdf374f35 Bug 1408987 - Part 1: Add OnTaskQueue() assertion to clarify functions' running thread. r=jya
MozReview-Commit-ID: 36sqB5SlOd
2017-10-17 15:58:44 +08:00
Andrea Marchesini ba7f928d6a Bug 1409325 - Update FileReader WebIDL File, r=smaug 2017-10-17 13:41:01 +02:00
Andrea Marchesini 44860178be Bug 1305230 - Using createUnique when creating test files in fileapi_chromeScript.js, r=me 2017-10-17 13:21:39 +02:00
Andrea Marchesini 5eb6117bb3 Bug 1305230 - Splitting test_fileapi.html and test_fileapi_worker.html in multiple files, r=me
--HG--
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_basic.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_basic_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_encoding.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_encoding_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_other.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_other_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_twice.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_twice_worker.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini 72c79e182d Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini de661f1d28 Bug 1400098 - test_fileapi.html rewritten using Promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 87100dfe4e Bug 1305230 - Splitting test_fileapi_slice in four files, r=me
--HG--
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_1.html
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_2.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_1.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_2.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini 91ed8fdbd6 Bug 1305230 - Splitting test_fileapi_slice in two files, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 152f7eeac2 Bug 1305230 - Make test_fileapi_slice using promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini 7c8284011e Bug 1305230 - removing fileutils.js from tests when not needed, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini f35e7cc013 Bug 1305230 - Make test_blobconstructor promise based, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini 9d15f50373 Bug 1408397 - FileReader should not use a bufferStream together with an async inputStream, r=smaug 2017-10-17 13:17:51 +02:00
Tim Taubert da7df09470 Bug 1407829 - Fix merge bustage in WebAuthnManager.h on a CLOSED TREE r=me 2017-10-17 12:50:13 +02:00
Sebastian Hengst 6cbbcb376d Backed out changeset 490375161b03 (bug 1405961) for failing mochitest dom/tests/mochitest/general/test_resource_timing.html both in normal and in headless mode. r=backout
--HG--
extra : amend_source : 193a2645db24088370bf0a7c4db28f44c1b67cd8
2017-10-17 14:45:13 +02:00
Andrew Sutherland 048ab28f09 Bug 1404344 - Part 3: Rename QuotaManager tests from 3_0 to 2_1. r=janv
Upgrade the test names from 3.0/3_0 to 2.1/2_1, consistent with the changes
made in part 1.

--HG--
rename : dom/quota/test/unit/test_version3_0upgrade.js => dom/quota/test/unit/test_version2_1upgrade.js
rename : dom/quota/test/unit/version3_0upgrade_profile.zip => dom/quota/test/unit/version2_1upgrade_profile.zip
extra : rebase_source : f0b33f52d9247ed4b14a2debc22551f98b211741
extra : source : efc62fb7fa68968335c605cf54f1d94631bc3b33
2017-10-03 10:03:19 -04:00
Andrew Sutherland e936592b39 Bug 1404344 - Part 2: DOM Cache API schema 57-56 downgrade support. r=bkelly
Alter 57 and 58 DOM Cache API to use an on-disk schema version of 25 again,
as was used prior to the landing of bug 1290481 that bumped the disk schema
version to 26.  Patched versions will recognize this internally as schema 27
based on the presence of the column introduced by the 26 upgrade.

--HG--
extra : rebase_source : 03d6e361ef71de03e99bd27bc27a95ed65ecb846
extra : source : 523debab77daab9f69ca9ea19412c655e6d1e02f
2017-10-03 10:02:49 -04:00
Andrew Sutherland 3fcf6eee0f Bug 1404344 - Part 1: Alias QuotaManager schema 3.0 to 2.1. r=janv
To improve the Firefox 57 to 56 downgrade scenario, have 57 and 58
re-number the version 3.0 schema introduced by bug 1290481 to
version 2.1.  Firefox 56's Quota Manager will recognize the minor
schema version and accept the schema from the future.

--HG--
extra : rebase_source : c2458e380966e4f1ec60a6df5f01135231f308fe
extra : source : e895c35e9b4e9dbc6849d40d644af97c028fffcf
2017-10-03 10:02:27 -04:00
Dan Minor 1d0e9fe0b4 Bug 1404250 - Ensure that target bitrate is between minimum and maximum bitrates in VideoConduit; r=pehrsons
MozReview-Commit-ID: Am19abfrETx

--HG--
extra : rebase_source : 7906e80ab0a07cc5ffb7940a4f362b709a4bacbc
2017-10-10 10:43:09 -04:00
Valentin Gosu d1d5800ba9 Bug 1405961 - Remove assertion and ensure PerformanceNavigationTiming can be used before onLoad completes r=baku
MozReview-Commit-ID: FsEeeAOqDwY

--HG--
extra : rebase_source : 303980bbfe5c396fb466541cf69bb7c070812a34
2017-10-17 01:36:26 +02:00
Thomas Nguyen 49b7f047bb Bug 1399780 - Add a test that referrerpolicy attributes are honoured correctly in speculative loading r=ckerschb
MozReview-Commit-ID: 6wU7RMEghjx

--HG--
extra : rebase_source : cd0496d6e0f7f479d3f7e138fb6873d76cb79bdb
2017-10-16 10:41:33 +08:00
Alastor Wu def6113401 Bug 1409274 - remove the lock for SourceBufferTaskQueue. r=jya
It would only be accessed on task queue now, so we don't need to lock it.

MozReview-Commit-ID: 6jd36TQW4aA

--HG--
extra : rebase_source : e8bb53a226154312496149ab8f6b00dead49a3b6
2017-10-17 15:46:26 +08:00
Sebastian Hengst 0fde5cb6b5 merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +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
Phil Ringnalda 838e056c79 Backed out 4 changesets (bug 1395497) for Linux failures in test_conformance__textures__misc__texture-npot-video.html
Backed out changeset c99dadd2df7d (bug 1395497)
Backed out changeset 4e3dd1e01908 (bug 1395497)
Backed out changeset c9fbcd8bd4cb (bug 1395497)
Backed out changeset a8503893cc85 (bug 1395497)

MozReview-Commit-ID: C324dGFTpLb
2017-10-16 19:13:56 -07:00
Jeff Gilbert ca2f5c0f17 Bug 1395497 - Use mat3s to transform tex coords in GLBlitHelper. - r=daoshengmu
MozReview-Commit-ID: 9AjnrOY4Rrc
2017-10-16 19:33:39 -05:00
Brendan Dahl 42bc28d260 Bug 1399956 - Disable some mochitests in headless. r=jrmuizel
These tests will need more work and are low priority.

MozReview-Commit-ID: H0J16E8FqNr
2017-10-16 16:15:45 -07:00
Emilio Cobos Álvarez 96a521052e Bug 1409078: Don't assume Gecko style backend on nsXBLPrototypeResources::FlushSkinSheets. r=heycam
MozReview-Commit-ID: 6ghFwpNhv6Z

--HG--
extra : rebase_source : b45c2aa3dd17019439c42ae46ffacd2b082ac7a5
2017-10-16 18:42:04 +02:00
Kris Maglione bb49a293fc Bug 1404198: Follow-up: Fix more OS-X build bustage on a CLOSED TREE r=bustage
--HG--
extra : amend_source : 2ab5881c9eae6b689a0c45c33b3faeb398b5eeaf
2017-10-16 14:56:50 -07:00
Kris Maglione 12085d8c3d Bug 1404198: Follow-up: Fix OS-X build bustage. r=bustage
MozReview-Commit-ID: EUSy85iEkCb

--HG--
extra : amend_source : af963cc82ac558bfde4e2538d853cceff0ba3b52
2017-10-16 14:30:31 -07:00
JW Wang ee83cd683f Bug 1400674 - fix the algorithm of filling audio gaps with silence. r=jya
MozReview-Commit-ID: Hjsboq6PdlN

--HG--
extra : rebase_source : b92dbbe184563b71bb9cfc541a310ae60d41d68d
2017-10-13 17:24:24 +08:00
Ethan Lin f585fef0f1 Bug 1408296 - Enable some crashtests for webrender. r=kats
MozReview-Commit-ID: 543ZYLhacx8

--HG--
extra : rebase_source : 247ddffeba52e7a7fbe864c2644be66b164ceb24
2017-10-13 11:56:04 +08: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
Chris Pearce 48475f5f0b Bug 1409178 - Merge InstantiateDecoder and DecoderTraits::CreateDecoder. r=jwwang
CreateDecoder is the only caller of InstantiateDecoder, and all CreateDecoder
does is call InstantiateDecoder.

MozReview-Commit-ID: KwwL2el8L4x

--HG--
extra : rebase_source : bff225558fd2de535c2cb010eb35b95c6d9469e5
2017-10-16 22:42:32 +02:00
Chris Pearce eb61536947 Bug 1409178 - Remove MediaDecoder::InitStatics() since it's a no-op. r=jwwang
MozReview-Commit-ID: Leo5wNaxpjg

--HG--
extra : rebase_source : 2555c7dc26ca6867e79322bd572085a0cdfeb3b2
2017-10-16 22:39:02 +02:00
Chris Pearce 1d354be8e8 Bug 1409060 - Don't include necko-config.h in MediaDecoder.h. r=jwwang
MozReview-Commit-ID: 2RmqxUayD0L

--HG--
extra : rebase_source : ac868ce7df6a308a9005ce89c725616006c666ba
2017-10-16 17:54:18 +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
Cameron McCormack 64d0481dfd Bug 1408312 - Part 3: Replace nsCSSParser/nsRuleNode usage for color computation in Servo styled documents. r=xidorn
MozReview-Commit-ID: LuB0izWz7nk

--HG--
extra : rebase_source : 0fd4e9a3b62c668ab0a6925e70006646a3273e62
2017-10-16 09:06:39 +08:00
bechen@mozilla.com fbee889f6c Bug 1408693 - Add a lock to protect the sGPUCrashDataMap. r=jwwang
MozReview-Commit-ID: 7NDcoGMkKZ3

--HG--
extra : rebase_source : 206af0de83a1fb4fb5258202a25de8484a9e2bef
2017-10-16 14:03:04 +08:00
Kearwood Gilbert f379b8fea9 Bug 1402871 - Change VREventObserver::mWindow to a RefPtr,r=dveditz
MozReview-Commit-ID: 79MlNMAvIQD

--HG--
extra : rebase_source : 717bed76ca218844d4308e616ee5a7bb2a59591c
2017-10-11 14:25:51 -07:00
Cameron McCormack c5a3672a18 Bug 1408305 - Use Servo to parse IntersectionObserver rootMargin values. r=xidorn
MozReview-Commit-ID: 4CIXP73kcf2

--HG--
extra : rebase_source : d9b8bdbf374e98d0f2276be129efd7ae49123498
2017-10-16 18:02:16 +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
Kris Maglione 3876d40960 Bug 1404198: Part 1 - Add non-virtual constructor for nsIObject(Input|Output)Stream and update existing callers. r=njn
MozReview-Commit-ID: 3eoh6AwDJyz

--HG--
extra : rebase_source : 92b18b6ef07d276cac79ce735ca0b592cffbf87e
2017-10-04 20:06:28 -07:00
Boris Zbarsky 32ad6dfdd7 Back out bug 1354730 to reopen CLOSED TREE.
MozReview-Commit-ID: RzUofi384C
2017-10-16 14:34:23 -04:00
Boris Zbarsky 7ee7285acd Bug 1354730 followup. Update out-of-date assertions to fix bustage and reopen CLOSED TREE.
MozReview-Commit-ID: GTMSGnL3gsB
2017-10-16 13:18:14 -04:00
Boris Zbarsky 211cfa1cfd Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Sebastian Hengst a984558fa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: K49FVRdOww8
2017-10-16 10:55:46 +02:00
Makoto Kato e1c9f1505d Bug 1407943 - IMEContentObserver should use Selection instead of nsISelectionPrivate. r=masayuki
We can use Selection directly instead of nsISelection.  It means that we don't need QI for nsISelectionPrivate.  So IMEContentObserver should hold Selection instead if nsISelection.

MozReview-Commit-ID: 4jp9wWHRHRd

--HG--
extra : rebase_source : 9f4792cf75555b5aafdacfd8f137e68d9da86e04
2017-10-12 18:11:09 +09:00
Randell Jesup 336209d98d Bug 1408716: Remove unneeded dynamic_cast r=drno 2017-10-15 07:47:14 -04:00
Joel Maher 9be0d7276b Bug 1400098 - Disable dom/workers/test/test_fileReader.html on !debug for frequent failures. r=me, a=test-only 2017-10-15 05:55:12 -04:00
Sebastian Hengst cbeded1fe4 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-15 11:41:41 +02:00
Sebastian Hengst c5cf9de9bd merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AWcJtsdyruX
2017-10-15 11:40:42 +02: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
Sebastian Hengst 0817cdb071 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4FxW8x0UspG
2017-10-14 23:53:59 +02:00
Sebastian Hengst 24f9efc1d1 Backed out changeset 4bac27faa19b (bug 1070763) for crashes and broken websites. r=backout a=backout
MozReview-Commit-ID: 6BAkoAT8JyJ
2017-10-14 23:50:33 +02:00
Sebastian Hengst 776dca65f3 Backed out changeset 224d8c57a469 (bug 1405571) for crashes and broken websites. r=backout a=backout
MozReview-Commit-ID: FZe9hj8nX5w
2017-10-14 23:49:00 +02:00
Sebastian Hengst a46c92c8b7 Backed out changeset f66cb1530f75 (bug 1407952) for build failure (bug 1408622). r=backout a=backout
MozReview-Commit-ID: 3h4oDHbvmes

--HG--
extra : amend_source : 9e9e1bb348b7e2434f3388cf97580172348e769a
2017-10-14 12:32:50 +02:00
Sebastian Hengst caf5b99a30 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8Qk2qoQvP0g
2017-10-14 11:49:31 +02:00
Kris Maglione bd6d63772a Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.

MozReview-Commit-ID: 3f8mhynkKAj

--HG--
extra : source : 237acf2879f6222bc4b076c377bf026d18a6ebef
extra : amend_source : dfaf6e88e3c4758f7fdcf7fb422d457edafab1b7
2017-10-10 15:00:16 -07:00
Nicholas Nethercote f2d1f3b005 Bug 1407117 - Simplify static atom representation. r=froydnj,bz.
Currently nsAtom::mString points to the interior of an nsStringBuffer. For
static atoms this requires the use of nsFakeStringBuffer, which is pretty
gross.

This patch changes things so that nsAtom::mString points to a static char
buffer for static atoms. This simplifies a number of things:

- nsFakeStringBuffer and CheckStaticAtomSizes are no longer needed.

- FakeBufferRefCountHelper is no longer needed.

- nsAtom's constructor for static atoms is simpler.

- RegisterStaticAtoms() is simpler.

On the flip-side, a couple of things get more complicated.

- nsAtom::ToString() treats static and dynamic atoms differently.

- nsAtom::GetStringBuffer() is now only valid for dynamic atoms. This
  function is only used in two places, both involving DOMString, so those
  locations are updated appropriately. This also requires updating some other
  code assigning nsStrings to DOMStrings, because we can't assume that
  nsStrings are shared.

On Linux64 this change reduces the size of the binary by 8752 B, and moves
81968 B from the .data to the .rodata section, where it can be shared between
processes.

--HG--
extra : rebase_source : 0f6fcdec1c525aa66222e208b66a9f9026f69bcb
2017-10-12 10:52:17 +11:00
Sebastian Hengst 11a2b8ef67 Backed out changeset 237acf2879f6 (bug 1407428) for frequent crashes, e.g. in xpcshell's test_bug248970_cookie.js. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 1ccac4fb953566239cba8db7d6f8bdca4ce48b35
2017-10-16 00:00:15 +02:00
Kris Maglione 7d8f8ea3d6 Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.

MozReview-Commit-ID: 3f8mhynkKAj

--HG--
extra : rebase_source : d2a5e0862f8c964fb5a3e46b50c2e9629b218699
extra : amend_source : 27d7a7ef5da6fe2aa1104009b6ee067465db73e1
2017-10-10 15:00:16 -07:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01: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
Sebastian Hengst 87626a0ece merge mozilla-central to autoland. r=merge a=merge 2017-10-14 00:02:17 +02:00
Sebastian Hengst 373bdd8602 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9adaYBJ4tlo
2017-10-13 23:37:41 +02:00
Steve Fink 67d7e8dcdc Bug 1406570 - Rooting improvements, r=jonco,bz
--HG--
extra : rebase_source : 48d6fd63e016abe7a6ce22e621d25858560e61f1
2017-10-09 10:59:02 -07:00
Edgar Chen 8dfff5dcef Bug 1407937 - Move mDefinition from CustomElementReacion to CustomElementUpgradeReaction; f=jdai; r=smaug
MozReview-Commit-ID: 3JweEOgKAeo

--HG--
extra : rebase_source : 9ec3a879358b1600197c87931a79ff91205beb46
2017-10-12 17:01:41 +08:00
sotaro 55375630e7 Bug 1391262 - Create TabChild::CreateRemoteLayerManager() r=dvander 2017-10-13 23:32:52 +09:00
sotaro e037507a09 Bug 1391262 - Do not use remote LayerManager when its initialization fails r=dvander 2017-10-13 23:32:36 +09:00
Xidorn Quan 2215d24611 Bug 1407843 part 1 - Introduce a global-level AtomArray type alias. r=froydnj
MozReview-Commit-ID: DbGkWxkPfX7

--HG--
extra : rebase_source : 4f389d544bef98dccbfa694c1b821591bdae4103
2017-10-13 11:59:23 +11:00
Sebastian Hengst 24d5dcb528 Backed out changeset 6f968efadcdc (bug 1400098) for mochitest failing dom/file/tests/test_fileapi_slice_realFile_2.html. r=backout 2017-10-13 13:27:16 +02:00
Sebastian Hengst 951f1d4bf7 Backed out changeset a7b1484b2367 (bug 1400098) 2017-10-13 13:25:44 +02:00
Sebastian Hengst 473d298387 Backed out changeset 856c3889f319 (bug 1305230) 2017-10-13 13:25:38 +02:00
Sebastian Hengst ab8a4b63c4 Backed out changeset f442143b5b90 (bug 1305230) 2017-10-13 13:25:33 +02:00
Sebastian Hengst 046d79d24f Backed out changeset e6afe93a2282 (bug 1305230) 2017-10-13 13:25:27 +02:00
Sebastian Hengst e6ed22f248 Backed out changeset 6c0e229ac2e8 (bug 1305230) 2017-10-13 13:25:22 +02:00
Sebastian Hengst 3909e15a13 Backed out changeset a1407c6e9785 (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_twice.html => dom/file/tests/test_fileapi.html
rename : dom/file/tests/test_fileapi_twice_worker.html => dom/file/tests/test_fileapi_worker.html
2017-10-13 13:24:35 +02:00
Sebastian Hengst 640ac1c343 Backed out changeset b56bf15126d4 (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_slice_realFile_2.html => dom/file/tests/test_fileapi_slice.html
rename : dom/file/tests/test_fileapi_slice_memFile_2.html => dom/file/tests/test_fileapi_slice2.html
2017-10-13 13:24:17 +02:00
Sebastian Hengst 5d1b78e0ba Backed out changeset c4725ef0925b (bug 1305230) 2017-10-13 13:24:03 +02:00
Sebastian Hengst 30598ec65d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-13 11:53:54 +02:00
Sebastian Hengst 1c1a5cef77 Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Andrea Marchesini 8f6aa8bf2e Bug 1305230 - Introducing a SimpleTest.requestLongerTimeout() for fileapi tests, r=me 2017-10-13 10:49:48 +02:00
Andrea Marchesini fba4dcca02 Bug 1305230 - Splitting test_fileapi_slice.html and test_fileapi_slice2.html in multiple files, r=me
--HG--
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_1.html
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_2.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_1.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_2.html
2017-10-13 09:39:54 +02:00
Andrea Marchesini 779edb8453 Bug 1305230 - Splitting test_fileapi.html and test_fileapi_worker.html in multiple files, r=me
--HG--
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_basic.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_basic_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_encoding.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_encoding_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_other.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_other_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_twice.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_twice_worker.html
2017-10-13 09:16:55 +02:00
Andrea Marchesini 94c2a91e70 Bug 1305230 - Splitting test_fileapi_slice in two files, r=qdot 2017-10-13 08:47:42 +02:00
Andrea Marchesini c594363fef Bug 1305230 - Make test_fileapi_slice using promises, r=qdot 2017-10-13 08:47:42 +02:00
Andrea Marchesini a64a4017d5 Bug 1305230 - removing fileutils.js from tests when not needed, r=qdot 2017-10-13 08:47:42 +02:00
Andrea Marchesini df950f8b01 Bug 1305230 - Make test_blobconstructor promise based, r=qdot 2017-10-13 08:47:42 +02:00
Andrea Marchesini fe1b1d27a6 Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-13 08:47:42 +02:00
Andrea Marchesini fdd3d806a5 Bug 1400098 - test_fileapi.html rewritten using Promises, r=qdot 2017-10-13 08:47:41 +02:00
Andrea Marchesini 97f7266ba3 Bug 1407751 - DefineOSFileConstants should return false if OSFileConstants service is not initialized, r=froydnj 2017-10-13 07:11:40 +02:00
Christoph Diehl cff3f0e02e Bug 1349067 - Add crashtest. r=me 2017-10-12 22:41:15 -04:00
Ryan VanderMeulen cc54a93021 Bug 1257700 - Add crashtest. r=me 2017-10-12 22:41:13 -04:00
Ben Kelly 9d8fb37a12 Bug 1380255 P2 Don't fire FetchDriverObserver::OnDataAvailable() for every FetchDriver ODA callback. r=baku 2017-10-12 19:23:16 -07:00
Jeff Gilbert ced2e5986f Bug 1406015 - Enable SH_INITIALIZE_UNINITIALIZED_LOCALS. - r=Lenzak
MozReview-Commit-ID: GZTk80QyVfA

--HG--
extra : rebase_source : f95550094f88ecef66c0ba681b423be0741f3486
2017-10-11 13:02:56 -07:00
Sebastian Hengst 5c00b8540d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AlcL6XYDkf
2017-10-12 23:58:31 +02: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
Tim Taubert cafdee7c62 Bug 1407565 - Add NS_IsMainThread() assertions to WebAuthnManager r=jcj
Bug #: 1407565

Differential Revision: https://phabricator.services.mozilla.com/D116

--HG--
extra : amend_source : 264a25a0343042fe7dfa9f5cc22c05c9b908f93a
2017-10-12 13:16:29 +02:00
Sebastian Hengst f7efb5fc2c Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-12 12:03:15 +02:00
Sebastian Hengst 8ff69604ce merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-12 12:40:23 +03:00
Shawn Huang 9885b4245e Backed out changeset 20571bff3967 (bug 1389561) 2017-10-12 15:57:41 +08:00
Sebastian Hengst bf13779eda Backed out changeset 76fb9cb1078c (bug 1324463) for failing own crashtest in non-stylo builds. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 41a2653de93c450e89a005beb532177cf224eea7
2017-10-12 09:42:53 +02:00
Jason Orendorff 2db41f075d Bug 1396466 - Remove Xray expando chains from the weakmap when transplanting nodes. r=bz
--HG--
extra : rebase_source : aa90385160666b155cc8dbad63bcfa34d3e50d32
extra : amend_source : 6b9ebda268a6198f5e0143e5449f9d62ef1aed76
2017-10-10 10:42:18 -05:00
Andrea Marchesini cc0c227c00 Bug 1404910 - WebSocket should consider the corrent top-level window principal, r=smaug 2017-10-04 14:18:19 +02:00
Nicholas Nethercote c0a1cf9b49 Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen.
This avoids a lot of mismatches between nsAString and char16_t*, thus removing
many getter_Copies() and ToNewUnicode() and get() calls, and generally making
things simpler.

Note: the patch removes GetDefaultPrinterNameFromGlobalPrinters() by simply
inlining it at its two callsites, which is easy with the changed types.

--HG--
extra : rebase_source : 9ab9b3694f093fc9b22c7f8e2394a98674d76c11
2017-10-09 10:08:09 +11:00
Boris Zbarsky fb61ca8219 Bug 1324463. Fix crash when xbl:children is stuck into shadow DOM. r=smaug
MozReview-Commit-ID: C602pPbIfih
2017-10-11 22:19:10 -04:00
Boris Zbarsky 1475bf4ce5 Bug 1407375. Make sure to call NodeInfoChanged whenever we change the nodeinfo on a node. r=peterv
MozReview-Commit-ID: 71k1jv8thFA
2017-10-11 22:19:06 -04:00
Nicholas Nethercote f4bf415086 Bug 1406829 (part 3) - Use `[ptr] native` for nsAtom pointers in .idl files. r=froydnj.
Even though it's more verbose because of the `%{C++` section, it's the proper
way to do this kind of thing, rather than faking it with `interface`.
2017-10-11 08:34:38 +11:00
Catalin Badea 6a9fd06ae6 Bug 1380255 - FetchDriver should have threadsafe refcounting. r=baku 2017-09-26 11:53:00 +01:00
Kris Maglione 98c0c61998 Bug 1407056: Follow-up: Don't try to truncate data URI strings to a longer length. r=me
MozReview-Commit-ID: CDsYXyrhB7T

--HG--
extra : rebase_source : 5647f2d05def805218a2ee45913da4388a4d9647
extra : amend_source : e5015c868db64dce924476600f713b6c3aac1e17
2017-10-12 16:56:37 -07:00
Kris Maglione 84fb189b82 Bug 1407056: Part 2 - Override page CSP for loads by expanded principals. r=bz,krizsa
Per the CSP specification, content injected by extensions is meant to be
exempt from page CSP. This patch takes care of the most common case of content
injected by extension content scripts, which always have expanded principals
which inherit from the page principal.

In a follow-up, we'll probably need to extend the exemption to stylesheet
content loaded by extension codebase principals.

MozReview-Commit-ID: GlY887QAb5V

--HG--
extra : rebase_source : 1371b4e4e7f330b7f7721d4aa169fcb52a7622d0
2017-10-07 14:53:30 -07: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
Sebastian Hengst c2f23c4622 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : browser/base/content/test/general/browser_bug585558.js => browser/base/content/test/tabs/browser_positional_attributes.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm_dollar.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_dollar.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-621644-jsterm-dollar.html => devtools/client/webconsole/new-console-output/test/mochitest/test-jsterm-dollar.html
rename : dom/media/doctor/DDLogClass.cpp => dom/media/doctor/DDLogCategory.cpp
rename : dom/media/doctor/DDLogClass.h => dom/media/doctor/DDLogCategory.h
rename : mobile/android/app/src/main/res/drawable-hdpi/find_prev.png => mobile/android/app/src/photon/res/drawable-hdpi/find_prev.png
rename : mobile/android/app/src/main/res/drawable-hdpi/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-hdpi/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-hdpi/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-hdpi/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-hdpi/url_bar_entry_pressed_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-hdpi-v11/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-large-hdpi-v11/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-large-hdpi-v11/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-large-hdpi-v11/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-hdpi-v11/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-large-hdpi-v11/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-large-hdpi-v11/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-large-hdpi-v11/url_bar_entry_pressed_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-xhdpi-v11/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-large-xhdpi-v11/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-large-xhdpi-v11/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-large-xhdpi-v11/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-xhdpi-v11/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-large-xhdpi-v11/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-large-xhdpi-v11/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-large-xhdpi-v11/url_bar_entry_pressed_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-xxhdpi-v11/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-large-xxhdpi-v11/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-large-xxhdpi-v11/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-large-xxhdpi-v11/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-large-xxhdpi-v11/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-large-xxhdpi-v11/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-large-xxhdpi-v11/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-large-xxhdpi-v11/url_bar_entry_pressed_pb.9.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/find_prev.png => mobile/android/app/src/photon/res/drawable-xhdpi/find_prev.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-xhdpi/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-xhdpi/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-xhdpi/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-xhdpi/url_bar_entry_pressed_pb.9.png
rename : mobile/android/app/src/main/res/drawable-xxhdpi/url_bar_entry_default.9.png => mobile/android/app/src/photon/res/drawable-xxhdpi/url_bar_entry_default.9.png
rename : mobile/android/app/src/main/res/drawable-xxhdpi/url_bar_entry_default_pb.9.png => mobile/android/app/src/photon/res/drawable-xxhdpi/url_bar_entry_default_pb.9.png
rename : mobile/android/app/src/main/res/drawable-xxhdpi/url_bar_entry_pressed.9.png => mobile/android/app/src/photon/res/drawable-xxhdpi/url_bar_entry_pressed.9.png
rename : mobile/android/app/src/main/res/drawable-xxhdpi/url_bar_entry_pressed_pb.9.png => mobile/android/app/src/photon/res/drawable-xxhdpi/url_bar_entry_pressed_pb.9.png
extra : rebase_source : 0cff6fa99d9ea3c6ce0bfb1604d4e9533f63ce63
2017-10-13 00:55:27 +02:00
Nicholas Nethercote 159f6b5627 Bug 1406794 - Provide the CSP keywords in both UTF8 and UTF16 forms. r=ckerschb
This avoids the need for numerous 8-to-16-bit and 16-to-8-bit string
conversions.

The patch also introduces a higher-order macro, FOR_EACH_CSP_KEYWORD, which
defines all the stuff about the keywords in a single place and makes the code
nicer.

--HG--
extra : rebase_source : b0f655546aa397749bb18dc7d6d27fbc12fe8fca
2017-10-06 16:16:52 +11:00
Ryan VanderMeulen f5ad9c3d44 Bug 1348882 - Add crashtest. r=me
--HG--
extra : rebase_source : d6dfdc7752b99992f26bca05e983478104b0aebd
2017-10-11 19:54:09 -04:00
Emilio Cobos Álvarez 5fe1768dec Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF
2017-10-14 14:04:39 +02:00
Sebastian Hengst 4359a8ac3b merge mozilla-central to autoland. r=merge a=merge 2017-10-14 12:39:09 +02: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
Kris Maglione 00d7367b44 Bug 1404652: Part 1 - Add ChromeUtils.idleDispatch helper method. r=ehsan
This is similar to Services.tm.idleDispatchToMainThread, but provides an
IdleDeadline argument to its callbacks, the same way that
Window.requestIdleCallback does.

The IdleDeadline argument was necessary for my first attempt at this bug. It's
not necessary for the current version, but I suspect it will be useful in
other areas, and it also avoids some XPConnect overhead, so it's probably
worth keeping.

MozReview-Commit-ID: FtrbNkE7Vz5

--HG--
extra : rebase_source : d28973641e914c8d180f66125669aabc29ab857f
2017-09-23 22:12:32 -07:00
Shawn Huang de06e62bd1 Backed out changeset 20571bff3967 (bug 1389561). r=backout a=backout
MozReview-Commit-ID: 8GLZx2ls2C4
2017-10-12 15:10:16 +02:00
Emilio Cobos Álvarez 2f8b5b12a4 Bug 1407864: Do not thrash the selector cache when parsing the same selector with different backend. r=heycam
Since the presence of an entry with a null selector is different for Gecko and
Servo, this seemed easier, and mimics nsLayoutStyleSheetCache.

Also, this is going away soon anyway as soon as I get to implement the rest of
the methods for stylo.

MozReview-Commit-ID: DtHJbw8C0GX

--HG--
extra : rebase_source : dd450a6972054971eba8bba5bb022b74d07c2a0b
2017-10-12 10:07:25 +02:00
Sebastian Hengst 4c169d4680 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-12 12:00:22 +02:00
Gerald Squelart ae565b2faa Bug 1407917 - Simplify DDLogger string-logging functions - r=jwwang
Removed non-eager DDLogValue() functions, too confusing for not much value;
users should use macros first anyway.

Changed `EagerLogValue(..., const char (&aLiteral)[N])` to take `const char*`,
it's cleaner and simpler.


MozReview-Commit-ID: J7xcoPkp6Nf

--HG--
extra : rebase_source : 41040c98b89c3035c823a4a9775e727038c07590
2017-10-12 17:51:41 +11:00
Alastor Wu b8237a2029 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : ecce8ac75587470c15268ab729b068f049702a8a
2017-10-12 10:49:25 +08:00
Alastor Wu b4c4772190 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 9e455022ba9360fb549222e9ad1238a3ae9d88ad
2017-10-12 10:49:21 +08:00
Alastor Wu 023e34cbe4 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : 0d20f1b8648acaf2ed8e75b2631e905629c2abaf
2017-10-12 10:49:10 +08:00
Alastor Wu 5a164c7e06 Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu d9f5f478d9 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Mike Hommey 404ef7af3e Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn
Bug 1134923 removed the use of those functions in gecko, and left some
for the XPCOM standalone glue. The XPCOM standalone glue was severely
stripped down in bug 1306327, with the effect of removing the
implementation for those functions.

The remains in nsXPCOM.h are:
XPCOM_API(void*) NS_Alloc(size_t aSize);
XPCOM_API(void*) NS_Realloc(void* aPtr, size_t aSize);
XPCOM_API(void) NS_Free(void* aPtr);

With no implementation left, the first arm is never actually used, and
the second arm means every remaining use of those functions in the tree
is a macro expansion to one of moz_xmalloc, moz_xrealloc or free.

--HG--
extra : rebase_source : fd1669abc5a25d8edbd5c3a8522e22a5c3f558e2
2017-10-12 11:08:44 +09:00
Gerald Squelart 6e866f3624 Bug 1407909 - Rename DDLogClass to DDLogCategory - r=jwwang
MozReview-Commit-ID: GOTQnNM3MrV

--HG--
rename : dom/media/doctor/DDLogClass.cpp => dom/media/doctor/DDLogCategory.cpp
rename : dom/media/doctor/DDLogClass.h => dom/media/doctor/DDLogCategory.h
extra : rebase_source : 6275018142832a46c3ad145dd5f0edbc00501cc2
2017-10-12 16:15:35 +11:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Jed Davis a9b7865141 Bug 1316153 - Remove base::ChildPrivileges from IPC. r=billm,bobowen
ChildPrivileges is a leftover from the B2G process model; it's now
mostly unused, except for the Windows sandbox using it to carry whether
a content process has file:/// access.

In general, when sandboxing needs to interact with process launch, the
inputs are some subset of: the GeckoProcessType, the subtype if content,
various prefs and even GPU configuration; and the resulting launch
adjustments are platform-specific.  And on some platforms (e.g., OS X)
it's all done after launch.  So a simple enum used cross-platform isn't
a good fit.

MozReview-Commit-ID: K31OHOpJzla

--HG--
extra : rebase_source : 3928b44eb86cd076bcac7897536590555237b76b
2017-09-08 16:16:50 -06:00
J.C. Jones 26573fc330 Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 3) r=qdot,ttaubert
Reorder WebAuthentication.webidl to match the ordering of the IDL index in
the Web Authentication spec. No normative changes.

MozReview-Commit-ID: 7qPE60Qh7Ly

--HG--
extra : rebase_source : 18f18a85c013528bf9b2ec84165f7a32a134c3d7
2017-10-09 16:48:01 -07:00
J.C. Jones 8622a9216c Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 2) r=qdot,ttaubert
This covers these renames:

* In CollectedClientData, hashAlg => hashAlgorithm
* In CollectedClientData, tokenBinding => tokenBindingId
* In MakePublicKeyCredentialOptions, parameters => pubKeyCredParams
* In MakePublicKeyCredentialOptions, excludeList => excludeCredentials
* In PublicKeyCredentialRequestOptions, allowList => allowCredentials
* Transport (WebAuthnTransport in Gecko) => AuthenticatorTransport

MozReview-Commit-ID: 3FdRnkosy83

--HG--
extra : rebase_source : 22f124c781b03837ad0cd4be4edf34527e3b9d38
2017-10-09 16:28:13 -07:00
J.C. Jones 24696391df Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 1) r=keeler,qdot
This covers these renames:
* In PublicKeyCredentialParameters, algorithm => alg
* MakeCredentialOptions => MakePublicKeyCredentialOptions
* PublicKeyCredentialEntity => PublicKeyCredentialRpEntity
* Attachment => AuthenticatorAttachment

It sets a default excludeList and allowList for the make / get options.

It adds the method isPlatformAuthenticatorAvailable which is incomplete and
not callable, to be completed in Bug 1406468.

Adds type PublicKeyCredentialRpEntity.

Adds "userId" to AuthenticatorAssertionResponse.

Adds "id" as a buffer source to PublicKeyCredentialUserEntity and as a
DOMString to PublicKeyCredentialRpEntity, refactoring out the "id" field
from the parent PublicKeyCredentialEntity.

It also adds a simple enforcement per spec 4.4.3 "User Account Parameters for
Credential Generation" that the new user ID buffer, if set, be no more than
64 bytes long. I mostly added it here so I could adjust the tests all at once
in this commit.

MozReview-Commit-ID: IHUdGVoWocq

--HG--
extra : rebase_source : bc1793f74700b2785d2bf2099c0dba068f717a59
2017-10-06 16:10:57 -07:00
Luca Greco 305df319dc Bug 1390445 - Fix select popup positioning for oop extensions options_ui pages. r=billm,kats,kmag
MozReview-Commit-ID: Izt10SuUK0i

--HG--
extra : rebase_source : d6e302d4fd8b78100d98cbe52c4234bd49de1dfd
2017-09-20 20:03:58 +02:00
J.C. Jones c202064379 Bug 1406469 - Handle the WebAuthn "User Verified" flag r=ttaubert
WebAuthn has added a flag UV to indicate the user was biometrically verified. We
have to make sure not to set that flag for U2F. Turns out we already do that,
but let's add the constant and such.

Ref: https://w3c.github.io/webauthn/#authenticator-data

MozReview-Commit-ID: 6Qtjdkverls

--HG--
extra : rebase_source : 660348596b917d8f461b19298e01dbe19410b63f
2017-10-09 18:10:31 -07:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00
Sebastian Hengst 0ed8d9a86e Backed out changeset 26e324eb052d (bug 1247189) for crashing in /media-source/mediasource-errors.html. r=backout
--HG--
extra : amend_source : 39152d1a0836f9f1e22cc4cc6a0a759f4258e81b
2017-10-11 12:45:50 +02:00
Sebastian Hengst 953fafcc3c Backed out changeset 5b9af87e76a9 (bug 1247189) 2017-10-11 12:45:45 +02:00
Sebastian Hengst 6479b83569 Backed out changeset 36a63b9f8dcb (bug 1247189) 2017-10-11 12:45:40 +02:00
Sebastian Hengst ebb7218fe9 Backed out changeset 85d236f46b00 (bug 1247189) 2017-10-11 12:45:34 +02:00
Sebastian Hengst e80bd4f030 Backed out changeset 9be5bbb35797 (bug 1247189) 2017-10-11 12:45:29 +02: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 044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Sebastian Hengst 01cd7f3d0f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GbmY183Epi2
2017-10-10 23:56:11 +02:00
Kris Maglione 00e91e08fb Bug 1407258: Dowgrade document loads with expanded principals to their last sub-principal. r=bz
There are currently some corner cases where channels that are eventually
loaded into documents (mainly <img src="data:image/svg+xml,") can inherit
expanded principals from a caller. Since documents aren't allowed to have
expanded principals, this causes crashes.

This patch is a short term workaround for the issue, until we have a longer
term solution that prevents the channels from inheriting the expanded
principals to begin with.

MozReview-Commit-ID: JwqqtVynLjj

--HG--
extra : rebase_source : 23199517414428924e9c78629ac794b54bd23c52
2017-10-10 14:08:47 -07: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
Ben Kelly fa33ed763d Bug 1407245 Fix service worker update 24-hour time check conversion from microseconds. r=asuth 2017-10-10 13:50:36 -07:00
Luke Wagner cf897d6fcb Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly)
MozReview-Commit-ID: DXv2MegefDw

--HG--
extra : rebase_source : aca4d6e40ae9af03e05520ec8bdef92889e44acc
2017-10-10 14:41:24 -05:00
Shane Caraveo 3a90ea2602 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 64lIMu6neaD

--HG--
extra : rebase_source : 36fef9a014a7f4bb2db66fb8736de06298008e36
2017-10-10 09:54:22 -07:00
evilpies@gmail.com 06beef32ba Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz,mystor
MozReview-Commit-ID: 1IMi5MqTx7o

--HG--
extra : rebase_source : 373f1928987718fe3bc22306e0dd3ae13fc0cd9f
2017-10-10 09:54:00 -07:00
Catalin Badea d059041927 Bug 1402251 - Assert ranges our not added to multiple common ancestor lists. r=smaug 2017-10-10 12:10:00 +01: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
JW Wang acb1219279 Bug 1406821 - improve error logging to facilitate debugging mochitest timeouts in OPT builds. r=kinetik
MozReview-Commit-ID: KTmGRueZkxF

--HG--
extra : rebase_source : f6eb1fcdf9cda7cb6b9e8610c567451111386686
extra : intermediate-source : f06e68706b55b602ccb650641da8186bf74ad1a3
extra : source : 1ad5c0d65ecc4875bd5dc388606bf42e363f9353
2017-10-09 10:18:37 +08:00
Jean-Yves Avenard d34a7ebdc5 Bug 1407243 - Don't immediately fire canplaythrough for infinite/live streams. r=jwwang
MozReview-Commit-ID: 2LQFa8PHvO5

--HG--
extra : rebase_source : 3534a963202658870221fca9cc238185d7e55156
2017-10-10 16:14:24 +02:00
James Cheng 019e9610a0 Bug 1407523 - Add more detailed message when GetCDM failed. r=cpearce
MozReview-Commit-ID: qEpvjyc6bY

--HG--
extra : rebase_source : 09e0579a76362d409749daf9b53e6a21da3818e3
2017-10-11 14:04:16 +08:00
Alastor Wu 8ef6776c31 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : 44ea3d0eb292e5c285d0aa4e10eefa41f20beed7
2017-10-11 16:12:13 +08:00
Alastor Wu f519e79462 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 0334b71534cfaccaf1d8985d827fe4e5d5bf0e9f
2017-10-11 11:01:08 +08:00
Alastor Wu a4ae0238e3 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : b1dc3193d839ef3776195901339fae24f328207b
2017-10-11 11:00:57 +08:00
Alastor Wu afaf8c616f Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu e750a6aff2 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Emilio Cobos Álvarez e808575ca4 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : e7e0a3f83001813239338bc5b3895252e1fb3ea6
2017-10-07 14:06:44 +02:00
Hiroyuki Ikezoe 2b54925c5c Bug 1407463 - Drop unused pseudo atom argument from GetBaseContextForElement. r=heycam
MozReview-Commit-ID: JJ2Jh1I6y4h

--HG--
extra : rebase_source : 99c458dfffee88103e5f2b01f9ff9ae0256b8c62
2017-10-11 10:00:37 +09: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
Jason Orendorff 65e620a4eb Bug 1404107 - Refactor: Move some reparenting complexity into XPConnect. r=mrbkap,r=bz
--HG--
extra : rebase_source : 817ef532b2fe67bc901339aa19d84bf571adfc71
2017-10-05 11:49:43 -05:00
Sebastian Hengst 4a6ee59701 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-10 06:22:33 -03:00
Sebastian Hengst 1a4a26905f merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Robert Longson 0e21ecb9e3 Bug 1398806 - GetCtx and GetNearestViewport should return the nearest svg or symbol element which is now an SVGViewportElement rather than only returning the nearest svg element because a symbol establishes a viewport too. r=dholbert 2017-10-10 07:58:34 +01:00
Kris Maglione 9c145b38f6 Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
MozReview-Commit-ID: LWMkBcB4WIg

--HG--
extra : rebase_source : fa2daf25c58190cee7e55798347d4eaffa0d5250
extra : histedit_source : f2887c9e53c572aa5e675600cd1aeb6c5a72becc%2Ce7a84ac505319ca24e65c73a4df13014a0a0cdc0
2017-10-05 19:40:48 -07:00
Kris Maglione 6d422a0fcd Bug 1406278: Part 8a - Cleanup some uses of CallQueryInterface. r=bz
MozReview-Commit-ID: 20yDJiKLJav

--HG--
extra : rebase_source : 6ec35274aacb0bda12d6a25b1aeaa993d5cc49f8
2017-10-05 19:06:54 -07:00
Kris Maglione e11ba47925 Bug 1406278: Part 7 - Use subject principal as triggering principal in <input> "src" attribute. r=bz
MozReview-Commit-ID: 8DZOwqBrA2i

--HG--
extra : rebase_source : 9c2b4611f72f4aa18e67ef6f3b144c85a92b59e7
2017-10-05 16:19:19 -07:00
Kris Maglione 34083e453d Bug 1406278: Part 6 - Use subject principal as triggering principal in <source> "srcset" attribute for <picture>. r=bz
MozReview-Commit-ID: DFq3k9PSOgA

--HG--
extra : rebase_source : 03663e599b11c22d6dc3b7e2f826ecb0b147f04c
2017-10-05 15:59:15 -07:00
Kris Maglione ba5df86019 Bug 1406278: Part 5b - Use subject principal as triggering principal in <source> "src" attribute for <audio>/<video>. r=bz
MozReview-Commit-ID: zZCXpvs719

--HG--
extra : rebase_source : 0de7f2abe0f06a0992f7f6c27db5eb67e6085635
2017-10-05 15:28:22 -07:00
Kris Maglione ca83a2c304 Bug 1406278: Part 5a - Use subject principal as triggering principal in <audio>/<video> "src" attribute. r=bz
MozReview-Commit-ID: A1JixlTeZGq

--HG--
extra : rebase_source : 011984908aaacf0b90ea6e67c265dcce7b1779c4
2017-10-05 14:47:09 -07:00
Karl Tomlinson 3a143e4a1f bug 1404220 assign zero to AUDIO_FORMAT_SILENCE enumerator r=padenot
I don't know whether or not another zero initial AudioChunk member value
makes initialization more efficient, but zero for silence is more intuitive
for humans.

MozReview-Commit-ID: JEYv65btMul

--HG--
extra : rebase_source : 3089362ce4773da91c7139a3127e1491cbcf1dc5
2017-10-09 15:48:49 +13:00
Karl Tomlinson 5ea2376fe3 bug 1404220 remove explicit unit volume AudioChunk settings, which are now initialized at construction r=padenot
MozReview-Commit-ID: EahkZtZAb18

--HG--
extra : rebase_source : 15e82320ed6712ebc642deabac9dc1e766c01836
2017-10-06 18:48:12 +13:00
Karl Tomlinson 03ead4bc67 bug 1404220 reset mBufferFormat (and mVolume) when resetting mSharedChannels r=padenot
MozReview-Commit-ID: BP4fJLarEyE

--HG--
extra : rebase_source : 3d1e7550267c4e284aafb869015f63ae3d918e51
2017-10-09 16:56:55 +13:00
Karl Tomlinson f3b25c6e88 bug 1404220 provide default initializers for all AudioChunk members r=padenot
This avoids any risk of undefined behavior when evaluating uninitialized
members, during copies for example, and makes it safe to test mBufferFormat
when null.

MozReview-Commit-ID: IMAyZ1CSHbk

--HG--
extra : rebase_source : b02431634732cf63d6fe9ede5eb1400a2baa6308
2017-10-06 18:28:11 +13:00
Kris Maglione 154e5011a0 Bug 1406278: Part 4 - Use subject principal as triggering principal in <iframe>/<frame> "src" attribute r=bz
MozReview-Commit-ID: AgxZmfRvfTR

--HG--
extra : rebase_source : 5663f54ae3d03870d38107e1703902df5ade4b10
2017-10-04 22:59:44 -07:00
Kris Maglione 0641eb51a8 Bug 1406278: Part 3 - Use subject principal as triggering principal in <script> "src" attribute. r=bz
MozReview-Commit-ID: KwGIE4t7KUx

--HG--
extra : rebase_source : 7bc0f04178c5ea5a2b9b66960280f53e4a10e0cd
2017-10-04 22:16:32 -07:00
Kris Maglione d038453393 Bug 1406278: Part 2c - Use subject principal as triggering principal in <img> "srcset" attribute. r=bz
MozReview-Commit-ID: 784EsgwBcS1

--HG--
extra : rebase_source : 01b701f84c425786b66cd9787d4e570dd9341ae5
2017-10-02 21:30:34 -07:00
Kris Maglione d72aa193c4 Bug 1406278: Part 2b - Use subject principal as triggering principal in <img> "src" attribute. r=bz
MozReview-Commit-ID: DrblTjP99WJ

--HG--
extra : rebase_source : 649cf6757266c9e08a3f5a621c3e9451a7ccef67
2017-10-02 20:28:32 -07:00
Kris Maglione 1e39590f6d Bug 1406278: Part 2a - Rename LoadingPrincipal to TriggeringPrincipal in imgLoader. r=bz
The imgLoader code consistently uses the term 'loadingPrincipal' for the
principal that is called the triggeringPrincipal everywhere else it's used.
This is confusing, and since we need to make changes to how those values are
determined, it should be fixed beforehand.

MozReview-Commit-ID: 8CTHwayzcaD

--HG--
extra : rebase_source : d4405b0ecfe1c8dfb9bfdf61fe6ed6cfb180ba83
2017-10-02 20:38:30 -07:00
Kris Maglione 4275cd1039 Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.

MozReview-Commit-ID: BMDL2Uepg0X

--HG--
extra : rebase_source : 25e438c243700a9368c393e40e3a6002d968d6c8
2017-10-09 14:33:38 -07:00
Jason Orendorff f719f95f29 Bug 1404107 - Fix cloning expando chains when reparenting DOM objects. r=bz,r=mrbkap
--HG--
extra : rebase_source : fac045a54af8fba9e3ac46012aaf3b8a4b7b480c
extra : source : 53838f13462feb5db5542ee6d5bc7e24172fb51f
2017-09-29 10:33:13 -05: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
Stone Shih bf6e9eb7e8 Bug 1404273 - [Pointer Event] Coalescing mousemove for different pointers. r=smaug.
MozReview-Commit-ID: HfjRiUlBy3L
2017-09-20 11:57:56 +08:00
Kyle Machulis 669ff05b49 Bug 1406525 - Remove nsIDOMHTMLLinkElement; r=bz
MozReview-Commit-ID: 4xUSQ8SiIqX
2017-10-09 16:09:38 -07:00
Tobias Schneider 1e70d2c43e Bug 1406102 - [intersection-observer] Calculate areas using int64_t. r=dholbert
--HG--
extra : rebase_source : 00202f13b33d74bb686a3eb8103543e5a68f88d8
2017-10-09 15:08:41 -07:00
Ehsan Akhgari 7df8d7beeb Bug 1406493 - Remove the rest of the attribute deprecation warnings; r=baku f=annevk 2017-10-09 18:26:11 -04:00
Ehsan Akhgari c148b7bfeb Bug 1404022 - Remove the deprecation warnings for Element.setAttribute/setAttributeNS; r=baku 2017-10-09 18:26:04 -04:00
Sebastian Hengst aa7c8d6587 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 23:58:00 +02:00
Sebastian Hengst c2d6023454 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Boris Zbarsky 591c9f864b Bug 1405878. Make sure to notify for our kids, if needed, before calling DoneAddingChildren in the XML content sink. r=hsivonen
Once we call DoneAddingChildren, random code of various sorts will run, which
can flush our notification state.  If that happens before we've notified on our
kids, but after we've popped the element we're closing off the element stack,
we will fail to ever notify on the kids.

MozReview-Commit-ID: Ei7v5OobX8R
2017-10-09 14:49:19 -04:00
Jeff Gilbert da2ce929ea Bug 1394265 - Set MAX_COMBINED_TEXTURE_IMAGE_UNITS to 0 if GetIntegeriv fails. r=daoshengmu
MozReview-Commit-ID: 6VDKmtVPrVO
2017-10-09 14:28:39 -04:00