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

534054 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson e2702a6458 Bug 1093835 - Turn unnecessary array.map to array.forEach in pc.js. r=jib
MozReview-Commit-ID: 1oqXtncwUQ1

--HG--
extra : rebase_source : 2aad2e3c19c664ba61a26beb43ef75ee5f05bd03
2017-04-28 11:22:18 +02:00
Andreas Pehrson 845373e84c Bug 1093835 - Check video flow in test_pc_videoRenegotiationInactiveAnswer.html. r=jib
MozReview-Commit-ID: G9JIcAXuiWX

--HG--
extra : rebase_source : e36ca4f5045db7669ce119233150b331c25dad32
2017-04-28 11:15:11 +02:00
Andreas Pehrson 8ef263241b Bug 1093835 - Check video flow in test_pc_replaceVideoThenRenegotiate.html. r=jib
MozReview-Commit-ID: 5zUioH6Q4jw

--HG--
extra : rebase_source : 188cde695bc534c5608057728373553691dbda94
2017-04-28 14:55:26 +02:00
Andreas Pehrson b10edab2e1 Bug 1093835 - Check video flow in test_pc_removeThenAddVideoTrackNoBundle.html. r=jib
MozReview-Commit-ID: IKO31455iCU

--HG--
extra : rebase_source : fcc58d46e29724576e2274fa1fb69e12ded7ad6e
2017-04-28 14:55:15 +02:00
Andreas Pehrson de02fa8eea Bug 1093835 - Check video flow in test_pc_removeThenAddVideoTrack.html r=jib
MozReview-Commit-ID: 1zbTbzMwJH3

--HG--
extra : rebase_source : 2777e0f4e0349ccb0e2435e9fd2a54d606e21a46
2017-04-28 14:55:03 +02:00
Andreas Pehrson 920a2ccbe7 Bug 1093835 - Check video flow in test_pc_addSecondVideoStreamNoBundle.html. r=jib
MozReview-Commit-ID: KnhRdWNZvhs

--HG--
extra : rebase_source : 5ae8e91645b746f20d5db02cb4fe1d5e33323289
2017-05-04 13:25:01 +02:00
Andreas Pehrson e851a86b89 Bug 1093835 - Check video flow in test_pc_addSecondVideoStream.html. r=jib
MozReview-Commit-ID: Aqd4VYhlbBb

--HG--
extra : rebase_source : ec3433b97e99ddc761bf0a8b149b1160acc1504e
2017-05-02 12:01:04 +02:00
Andreas Pehrson c41610f6b8 Bug 1093835 - Commoditize checkVideoPlaying/checkVideoPaused. r=jib
This moves those two functions from a single test to a VideoStreamHelper in a
common file, so they can be used when checking video flow in multiple tests.

It also implements a VideoFrameEmitter that provides tests with an easy to
access video source where VideoStreamHelper can verify flow on the sink.

MozReview-Commit-ID: Fin9eiVmBe

--HG--
extra : rebase_source : 8b62124b0182d7e7bd78788e031b2d2259db9e57
2017-05-04 15:23:36 +02:00
Andreas Pehrson 0fb77b5e31 Bug 1093835 - Check video flow stopping after removing video track and renegotiating. r=jib
MozReview-Commit-ID: Hp3YOki9O5E

--HG--
extra : rebase_source : c7b17cae6cff4dbcfc97f1f24f2e742423284cb1
extra : source : a374c207b11cfdc711da13c71c93c38570d6eb2a
2017-05-04 12:46:20 +02:00
Andreas Pehrson 5a779840a7 Bug 1093835 - Check audio flow in test_pc_removeThenAddAudioTrackNoBundle.html. r=jib
MozReview-Commit-ID: ABkqFUfsoyu

--HG--
extra : rebase_source : 5c33263065d6ab189d578c2bf4330841f64bb86e
2017-05-04 12:44:04 +02:00
Andreas Pehrson 5515940e8a Bug 1093835 - Check audio flow in test_pc_removeThenAddAudioTrack.html. r=jib
MozReview-Commit-ID: 59JXOnjNGyd

--HG--
extra : rebase_source : ef0fb293d5d538b1131b0c2826377abea8bcfbe3
2017-05-04 12:43:53 +02:00
Andreas Pehrson 463b638edc Bug 1093835 - Check audio flow in test_pc_addSecondAudioStreamNoBundle.html. r=jib
MozReview-Commit-ID: I7ZpshtPgAA

--HG--
extra : rebase_source : f0b089653e6e0dc31aaedca6db4def1f637af1c8
2017-05-04 11:38:19 +02:00
Andreas Pehrson ddd79a635f Bug 1093835 - Check audio flow in test_pc_addSecondAudioStream.html. r=jib
MozReview-Commit-ID: AzCeaL5wKLV

--HG--
extra : rebase_source : e48f155330e22a26cf261741b932e91b56449d5c
2017-05-04 11:38:06 +02:00
Andreas Pehrson 2827d03e31 Bug 1093835 - Check audio flow stopping after removing audio track and renegotiating. r=jib
MozReview-Commit-ID: 2lx6jUON3jU

--HG--
extra : rebase_source : 4caee72edbc678ba9bb5d7a35c04a4eadfe6005d
extra : source : bb77023e0e7f4399e57dd2be2f331ee19c1a874a
2017-05-04 11:37:02 +02:00
Manish Goregaokar e3f9211a25 servo: Merge #16721 - Set vector properties via iterator in stylo (from Manishearth:vector-iter); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1360882

Avoids transient allocations

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : fcb18bb9881d5004656877d228e5aad663425fd0
2017-05-04 11:23:05 -05:00
David Keeler f821131b3b bug 1361893 - remove two unnecessary mutexes and a cast from SSLServerCertVerification.cpp r=kmckinley
gSSLVerificationPK11Mutex isn't used at all - it can be removed
gSSLVerificationTelemetryMutex is unnecessary because telemetry has its own lock:

https://dxr.mozilla.org/mozilla-central/rev/a748acbebbde373a88868dc02910fb2bc5e6a023/toolkit/components/telemetry/TelemetryHistogram.cpp#1135
https://dxr.mozilla.org/mozilla-central/rev/a748acbebbde373a88868dc02910fb2bc5e6a023/toolkit/components/telemetry/TelemetryHistogram.cpp#1984

The nsNSSSocketInfo* cast in SSLServerCertVerificationResult::Run() is
unnecessary because mInfoObject is a RefPtr<nsNSSSocketInfo>.

MozReview-Commit-ID: DG7qWGg2amQ

--HG--
extra : rebase_source : 0a475d7aba75ba4debecc7cec2ed14319082d9ab
2017-05-03 16:44:17 -07:00
Hemant Singh Patwal d0a8596e13 Bug 1354520 - De-duplicate already ESLint recommended rules in toolkit/components/reader/.eslintrc.js r=standard8
MozReview-Commit-ID: GD8JBz4DLds

--HG--
extra : rebase_source : b3450cf775c5f60a98168b390c6548213129d15c
2017-05-03 22:56:58 +05:30
Dan Banner 7e986db6b0 Bug 1351091 - Remove unreferenced Profiler.jsm file r=BenWa
MozReview-Commit-ID: 7nlrsdmEwS8

--HG--
extra : rebase_source : 38259896ef39a9694dbd985714ae430ac245b96f
2017-05-04 17:03:49 +01:00
Tom Tromey cdba52c5a8 Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv

--HG--
extra : rebase_source : 86ba1dbdc32a02d3ac46e3fc0f1cf2063b2a2291
2017-05-02 12:51:51 -06:00
Thom Chiovoloni 20f27ffe75 Bug 1361818 - Make sure TPS is aware sync's collection.get method is asynchronous now r=markh
Ideally we'd convert this to promises, but this function is already full of
promiseSpinningly's and removing them all is too much work for this bug.

MozReview-Commit-ID: 144JFRwejTb

--HG--
extra : rebase_source : 40371c6cfeee9fddffe4b737cbb98fecb424b719
2017-05-03 15:12:30 -04:00
Martin Giger df5c55c05d Bug 1299371 - Show context menu in WebExtension popups; r=mixedpuppy
MozReview-Commit-ID: 5bty8uurFns

--HG--
extra : rebase_source : 6b49e37b6173d1d5c219f554ac48c04942060daf
2017-02-19 11:02:14 +01:00
Luca Greco 99ef55dcc5 Bug 1358314 - Fix 'Open Link in New Tab' context menu item after tab navigated in non-e10s mode. r=kmag
MozReview-Commit-ID: KIG3QTx4J6b

--HG--
extra : rebase_source : 302b896c87b2516bd7181493abf70fda0d390ee7
2017-04-24 16:22:31 +02:00
Michael Ratcliffe 9ecf43e1e4 Bug 1353379 - Remove unused GCLI strings r=gl
MozReview-Commit-ID: 4NWuWhPTKEl

--HG--
extra : rebase_source : 71dbe8e64302ee8cc99d08d554ff89cbf6db5eab
2017-05-04 14:07:56 +01:00
James Cheng ac2dea5b4f Bug 1360626 - Create a blacklist for adaptive playback support. r=jolin
On some devices / os combinations, enabling adaptive playback causes decoded frame unusable.
It may cause the decode frame to be black and white or return tiled frames.
So we should do the blacklist according to the report.

MozReview-Commit-ID: j3PZXTtkXG

--HG--
extra : transplant_source : %B0%13%F9%D8i%06d%7B%E3%D7%B1%95%BCCV%DF%D4%EF%93%E7
2017-05-03 13:49:23 +08:00
Dão Gottwald c692f271f7 Bug 1361986 - Update the about:privatebrowsing design for photon. r=johannh
MozReview-Commit-ID: 8czyGdaoyLI

--HG--
extra : rebase_source : 37dc762b1d6781fe6079ea394e6e736ca566231a
2017-05-04 17:02:02 +02:00
k88hudson 0c020ed6f3 Bug 1361797 - Migrate History/Bookmark observers to system add-on r=ursula
MozReview-Commit-ID: 2qK24pez8MZ

--HG--
extra : rebase_source : eb3e8a7e0b8cf4990bb655e49c6a33021cb095dc
2017-05-03 14:32:47 -04:00
Armen Zambrano G. 0d3abd6562 Bug 1359127 - Initial Mozharness support for mitmproxy r=aki
This change allows a script to have mitmproxy set up support.
This will make a Firefox installation to import the cert from the mitmproxy
and selecting it as a proxy.

MozReview-Commit-ID: FweyOCzWyN9

--HG--
extra : rebase_source : 268cd3700ce826bb9c1381f87a0b42f6c1ad3c7a
2017-05-01 14:58:01 -04:00
Armen Zambrano G. 908a36a1d4 Bug 1359127 - Add Firefox autoconfig support r=aki
Autoconfig files allow modify a Firefox installation with Javascript code.

This change has the basic functionality without actually modifying Firefox
in any manner.

MozReview-Commit-ID: DDGnlYJb7iE

--HG--
extra : rebase_source : 94fa4a340fb000063f9951790f8ec7c2eefb746b
2017-05-04 10:16:40 -04:00
Tom Tromey 898ab999bc Bug 1331766 - free childCrashNotifyPipe on XP_MACOSX; r=froydnj
MozReview-Commit-ID: J64NC6b5NrI

--HG--
extra : rebase_source : 82002ad66e6fb24194ff5cb60833eed91c295193
2017-05-03 13:55:24 -06:00
Anthony Ramine 522c502e60 servo: Merge #16725 - Implement -moz-osx-font-smoothing (from nox:moz-osx-font-smoothing); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 36f26148e6f3decfac7858455c3170d7bf7d8b3f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d9773f0a389585ff51fd30f42885b9835b4248cc
2017-05-04 07:42:43 -05:00
Paul Adenot 16a32f974b Bug 1361475 - Remove proprietary constructor on AudioContext. r=baku
This was used only for B2G, was proprietary, and is causing issues, because
`AudioContext` can now have a parameter that is a property bag, per spec
(although we haven't implemented it at the moment).

MozReview-Commit-ID: 6LOlNp0cbfV

--HG--
extra : rebase_source : 48aa342213dba201c1062a08c7453acd16b8baea
2017-05-04 13:43:14 +02:00
Timothy Guan-tin Chien 134de88706 Bug 1356507 - Workaround defineLazyServiceGetter() as described in bug 1361929, r=mikedeboer
MozReview-Commit-ID: Ixwr8RNwJzJ

--HG--
extra : rebase_source : 7def5e5e8129014c857b78de2c675e48147bd0b3
2017-05-04 11:33:16 +08:00
Timothy Guan-tin Chien a08fe4a1c0 Bug 1356507 - Show version and updater in the preferences update pane. r=jaws
This change includes unmodified aboutDialog-appUpdater.js into
preferences.xul, so we could enable the updater UI there. Also,
copied code on version/distribution strings from aboutDialog.js.

MozReview-Commit-ID: 7o24az7Tn28

--HG--
extra : rebase_source : 9fe1ce4762904818216893298097672c3604c9ee
2017-04-27 19:59:14 +08:00
Alice Maz c0292d3464 servo: Merge #16706 - Bump base64 to 0.4.2 (from alicemaz:master); r=nox
<!-- Please describe your changes on the following line: -->
we have just released a security patch for base64 (preventing integer overflow when sizing a buffer for encoded output). this bumps the version in the three Cargo.toml files that pull it in. there should be no observable difference in behavior, no non-malicious input should be able to trigger this state

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is a small fix to a dependency with no practical difference in operation from previous.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 6aa552d59f21644ed93b17b1cec4197cd354b882

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d5d59c0fff40d88c12de844ab50cc0f9249f46ab
2017-05-04 06:08:37 -05:00
Cameron McCormack c328195796 Bug 1356103 - Part 12: Allow OMT heap writes under Gecko_GetFontMetrics. r=bholley
This isn't great, since although we know that Servo style worker threads
have exclusive write access to the main thread heap due to the use of
the Servo font metrics Mutex, we don't know that we're not modifying
data on the heap that other style worker threads want to read from.

MozReview-Commit-ID: CbSzQFkKG95

--HG--
extra : rebase_source : 89664873ab964a321e62d458ee8f5577677e552e
2017-04-30 17:03:15 +08:00
Cameron McCormack d7a98f45a2 Bug 1356103 - Part 11: Adjust text expectations. r=bholley
MozReview-Commit-ID: 7psm1XCGQ8I

--HG--
extra : rebase_source : cf638bbbe982fa366562b135c098c8e960e8b984
2017-04-30 15:20:42 +08:00
Cameron McCormack a3bfc246a5 Bug 1356103 - Part 10: Re-enable font metrics querying for ch and ex units in Servo traversal. r=bholley
MozReview-Commit-ID: 9rKsTyfgEIl

--HG--
extra : rebase_source : 818937cb2ca540cd78fce82e3d432e95cfe4d8b6
2017-05-04 16:20:14 +08:00
Cameron McCormack 756d5f5a9a Bug 1356103 - Part 9: Use a PostTraversalTask to deal with downloadable fonts in gfxUserFontSet. r=bholley,jfkthame
Here we add a new UserFontLoadState value, STATUS_LOAD_PENDING, which
represents the state just after a gfxUserFontEntry's url()-valued source
would being loading, except that we can't start the load due to being
on a Servo style worker thread.  In that case, we defer the work of
initiating the load until just after the Servo traversal is finished.

URLs that can normally be loaded synchronously, such as data: URLs
and script-implemented protocols marked as synchronous, must be
handled asynchronously when encountered during Servo traversal, since
various main-thread only work (in FontFaceSet::SyncLoadFontData) must
happen.  This is a user visible change from stock Gecko, but should
only happen when font metrics for a data: URL font are requested
due to ch/ex unit resolution when layout hasn't previously requested
the font load.  Hopefully nobody relies on synchronous resolution of
ch/ex units with data: URLs.

We unfortunately also can't pick gfxUserFontEntry objects out of the
UserFontCache during Servo traversal, since validating the cache
entry involves doing content policy checking, which is not thread-safe
(due in part to taking strong references to nsIPrincipals).

Platform fonts and ArrayBuffer-backed DOM FontFace objects continue
to be handled synchronously.

The PostTraversalTask does not take a strong reference to the
gfxUserFontEntry object, since it is held on to by the DOM FontFace
object, which itself won't go away before the PostTraversalTask
is run.

MozReview-Commit-ID: J9ODLsusrNV

--HG--
extra : rebase_source : d3e3d1dc187cb252750b57bcecd0b1ed77a15a7c
2017-04-30 14:57:25 +08:00
Cameron McCormack cbeb477e95 Bug 1356103 - Part 8: Use PostTraversalTasks to deal with FontFaceSet's Promise and DOM event dispatch during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFaceSet
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFaceSet is held on to
by the nsIDocument, and only cleared during cycle collection, which
should not occur between the font metrics request and the
PostTraversalTask running.

MozReview-Commit-ID: 5aKIg4DIQ4w

--HG--
extra : rebase_source : a7b63582b3610491fbcb4e2b931d55681e626513
2017-04-30 14:55:22 +08:00
Cameron McCormack 23a9137f03 Bug 1356103 - Part 7: Use PostTraversalTasks to deal with FontFace's Promise during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFace
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFace objects that we
encounter are all held on to by the FontFaceSet, and none of the
work that we do during font loads should drop FontFace objects
from the FontFaceSet.  (That only happens under
nsIDocument::FlushUserFontSet, which is only called on the
main thread.)

MozReview-Commit-ID: 5CdtGQYC9aL

--HG--
extra : rebase_source : 8ce5ff0c4ca306ccc240a86e7cacb588cc6c94c7
2017-04-30 14:51:29 +08:00
Cameron McCormack cdf2cb66eb Bug 1356103 - Part 6: Make gfxUserFontSet refcounting thread-safe. r=bholley
As with a few other gfx* font-related classes, during font metrics
calculations we end up taking strong references to gfxUserFontSet,
and it would be difficult to restructure the code to not do this.

MozReview-Commit-ID: L1GbZnf4825

--HG--
extra : rebase_source : 3bc2deb24e282f4a76f0a270d28771016052f9ec
2017-04-30 14:48:17 +08:00
Cameron McCormack 8fa01566a1 Bug 1356103 - Part 5: Allow access to WeakPtr<UnscaledFont> when the Servo font metrics mutex is locked. r=lsalzman
We need to grab UnscaledFont objects through WeakPtrs during metrics
calculations, but this only happens on Servo style worker threads
while the Servo font metrics mutex is locked (and while the main
thread is paused).  So we use WeakPtrTraits to override the
thread safety assertion to allow OMT access through the WeakPtr
if the mutex is locked.

Since we can end up creating UnscaledFont objects from the style
worker threads too, we additionally need to allow the main thread
to access them through WeakPtrs.

It would be nice to avoid the dependency on layout/style/ here, but
I can't see a way to do that without putting the burden of the
annotation that the more permissive thread safety checks are allowed
on the WeakPtr<> declarations themselves.

MozReview-Commit-ID: AbHNZEhE7L8

--HG--
extra : rebase_source : 48fba82778c1015a764a3cd921475966b67bf70a
2017-04-30 14:47:22 +08:00
Cameron McCormack 1eb02fae6c Bug 1356103 - Part 4: Add a mechanism for C++ functions to perform post-Servo traversal tasks. r=bholley
MozReview-Commit-ID: 5Gx1qZzQxAK

--HG--
extra : rebase_source : af569f460fb7039faf481e393a34c04bc4c36bb9
2017-04-30 14:45:32 +08:00
Cameron McCormack b23bdd20ae Bug 1356103 - Part 3: Make it easy to access the ServoStyleSet currently in traversal. r=bholley
In a later patch, we'll want to queue up some tasks to run when the
Servo traversal is one, and the ServoStyleSet seems like the natural
place to store those tasks.  We could probably find the ServoStyleSet
by chasing a bunch of pointers from the task-adding call sites, but
it seems simpler just to make it available directly.

MozReview-Commit-ID: AJoFZEoNaGm

--HG--
extra : rebase_source : 78389d72ba6dfb4301ba75bd39bbdc51d13cb4d5
2017-04-30 14:41:11 +08:00
Cameron McCormack 115e900d63 Bug 1356103 - Part 2: Add functions to assert the Servo font metrics mutex is locked. r=bholley
MozReview-Commit-ID: QtydYSYvxW

--HG--
extra : rebase_source : 50adc555668ae7c24fc01b6a32fc006fe609b0d5
2017-04-30 13:15:42 +08:00
Cameron McCormack a5624c6f9d Bug 1356103 - Part 1: Add WeakPtrTraits to allow SupportsWeakPtr classes to opt in to more permissive thread ownership assertions. r=bholley
MozReview-Commit-ID: 62pJc2N8aIo

--HG--
extra : rebase_source : b1fed73b2c03d1cc1261a674a44fe578c2fe7d99
2017-04-30 12:14:06 +08:00
Alastor Wu 8c7f357d42 Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows

--HG--
extra : rebase_source : cb21f8dc19fb9368f789d46d38ed46ad2b916df1
2017-05-04 15:24:00 +08:00
Alastor Wu 337b087df8 Bug 1357639 - part7 : add check for notification's content. r=sebastian
Add check for media notification's small icon, title and content text.

MozReview-Commit-ID: AOhag8gQVqs

--HG--
extra : rebase_source : 95ba0378056c997855af0d0dceffed7dbdb90f03
2017-05-04 15:23:56 +08:00
Alastor Wu 3e170812fe Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test.

MozReview-Commit-ID: DdtFp4pOXlC

--HG--
extra : rebase_source : 3618c4fe0037b16fb6e8727c1523d9121732a61a
2017-05-04 15:23:50 +08:00
Alastor Wu 8ac7ff6fae Bug 1357639 - part5 : create new type test class for media playback. r=sebastian
Create new test class for reducing the redundant code and can provide more
flexibility for adding new related test in the future.

MozReview-Commit-ID: 2f3O8vfHo12

--HG--
extra : rebase_source : 6b503816d9ac75d9269d8f81b2dad300bf1e9702
2017-05-04 15:22:40 +08:00