Commit Graph

550370 Commits

Author SHA1 Message Date
JW Wang
42dab72def Bug 1385699. P2 - rewrite the code of calculating duration in MDSM. r=cpearce
We pretty much rewrite the whole logic of duration calculation of MDSM.
The new logic is much simpler for we have only one duration to manage
which is mDuration. Below is the details of the code changes:

1. remove the mExplicitDuration mirror since it should be handled in MediaDecoder.
2. remove mObservedDuration and mDuration will take its place.
3. mDuration is updated from:
   a. metadata
   b. playback position as playback progresses.
   c. buffer ranges.
4. change mDuration to be finite when playback reaches the end.

MozReview-Commit-ID: 1EmlWvmw1R2

--HG--
extra : rebase_source : 54110160af6e167cdb59b24e1c6be7901bf56269
extra : source : 6325e6ae2319cae62e4c08cfc38706c9ac056842
2017-08-01 13:54:14 +08:00
JW Wang
b2911ee198 Bug 1385699. P1 - don't adjust playback position to the duration in MDSM at the end of playback. r=cpearce
We will let MediaDecoder do the final adjustment.

MozReview-Commit-ID: NmPD3Cgsta

--HG--
extra : rebase_source : 97f15f7ec330706edb7651c52e2eef128ac427f6
extra : source : 45e94e9edc423de6d53776b70c9c25cc9f40ce30
2017-08-01 11:00:09 +08:00
JW Wang
7f6f26e511 Bug 1386951 - have ChannelMediaDecoder implement CreateStateMachine() and fix includes. r=jya
The implementation will be shared by most of the sub-classes except OggDecoder
which needs to call demuxer->SetChainingEvents().

http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/dom/media/ogg/OggDecoder.cpp#25

This helps reducing code changes whenever we add a field to MediaFormatReaderInit.

MozReview-Commit-ID: 5K8NY1oxol4

--HG--
extra : rebase_source : 7bc2a71ad9bd982ada51fd28d6a5b7c6f1d7395a
extra : source : cccd49795938ce53cd8eee597ec0ea4859543c37
2017-08-03 14:05:28 +08:00
Makoto Kato
0977f948a5 Bug 1386496 - Update web-platfrom-tests meta data after Ahem.ttf is valid. r=jgraham
Since Ahem.ttf is valid now, we should pass wbr-element.html on Windows.
Also, mac doesn't pass this test because MOZ_BUNDLED_FONTS isn't set on macOS build.

MozReview-Commit-ID: 5ylfn8525j7

--HG--
extra : rebase_source : 9e894b4edea52a75c9a13c523679039d7ef0d59c
2017-08-02 13:48:02 +09:00
Makoto Kato
2e5554c883 Bug 1386496 - Ahem.ttf is broken on web-platform-tests. r=jgraham
Ahem.ttf is copied to $(DIST)/bin/firefox/fonts, but this file is broken due to text mode copy.  So we should use binary mode instead.

MozReview-Commit-ID: KP7yNyPiejU

--HG--
extra : rebase_source : 2de749f458a6d4650f9044f1912ff97835c5b795
2017-08-02 12:35:53 +09:00
Zibi Braniecki
929712ae1b Bug 1385416 - Remove Locale.jsm. r=kmag
MozReview-Commit-ID: IeSJKWuIQ2c

--HG--
extra : rebase_source : cfd14d21487070a5fa6583796e3f97f62d836f33
2017-07-28 13:30:51 -07:00
Markus Stange
55ea239b11 Bug 1387155 - Make nsIProfiler::dumpProfileToFileAsync return a promise. r=njn
MozReview-Commit-ID: 5yJMYrcRPBM

--HG--
extra : rebase_source : 7ceda2b9592f84687e0abaadf2bffb3a90dfbaff
2017-08-03 21:12:45 -04:00
Wes Kocher
9b971049a6 Backed out changeset 31db4b302143 (bug 1344519) for android xpcshell test_basic.js failures a=backout CLOSED TREE
MozReview-Commit-ID: KUR8cqMGGDJ
2017-08-03 19:04:09 -07:00
Wes Kocher
949b1032a9 Backed out changeset 4c8cc6044599 (bug 1382570) because it might have caused the spike in browser_page_action_menu.js failures a=backout CLOSED TREE
MozReview-Commit-ID: HCTskH7e4RF
2017-08-03 18:42:02 -07:00
Wes Kocher
db7d003ae0 Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: Ko3lhAvzMJN
2017-08-03 18:22:09 -07:00
Wes Kocher
2196b718d3 Merge inbound to central, a=merge
MozReview-Commit-ID: DlSLhaepjeU
2017-08-03 18:06:53 -07:00
Wes Kocher
2ac35c1849 Merge autoland to central, a=merge
MozReview-Commit-ID: 3z14qa3d9bt
2017-08-03 17:01:15 -07:00
Wes Kocher
bb9cb9182f Backed out changeset 3f96fc2c078c (bug 1366363) for failures in browser_ext_browserAction_contextMenu.js and browser_page_action_menu.js a=backout
MozReview-Commit-ID: D8GuspkNCWN
2017-08-03 16:30:54 -07:00
Wes Kocher
afc6533b2c Backed out changeset a35f3b534eb9 (bug 1355451) for frequent failures in browser_urlbar_search_speculative_connect_mousedown.js a=backout
MozReview-Commit-ID: JExIufpYeF7
2017-08-03 16:16:43 -07:00
Manish Goregaokar
efbe3a9af8 Bug 1386887 - Clean up FFI lifetimes to work on nightly; r=emilio
MozReview-Commit-ID: 5WAIVd6p2du
2017-08-03 15:49:25 -07:00
Mike Hommey
a38177ad5a Bug 1386920 - Use a versioned dependency on GCC to build clang. r=gps
The lesson learned from bug 1356926 and bug 1386588 is that the version
of gcc used to build clang matters, and that we can't bind the version
we use to build clang to the version we use to build Firefox.
2017-08-04 06:07:43 +09:00
Mike Hommey
0dd063a9dd Bug 1386589 - Remove the linux64 tooltool manifests that look the same as releng.manifest. r=gps 2017-08-04 06:07:43 +09:00
Mike Hommey
03806583f5 Bug 1356926 - Enable stylo on static analysis builds. r=gps 2017-08-04 06:07:43 +09:00
Mike Hommey
bfb16d4b7f Bug 1356926 - Use the same clang as normal builds for static analysis. r=gps
In practice, this upgrades from clang 3.8 to 3.9.
2017-08-04 06:07:42 +09:00
Mike Hommey
118fd76cf0 Bug 1356926 - Make all stdc++compat symbols weak. r=froydnj
In some cases, we can end up linking some things with
--static-libstdc++. The notable (only?) example of that is for the
clang-plugin, and that happens because it gets some of its flags from
llvm-config, which contains --static-libstdc++ because clang itself is
built that way.

When that happens, the combination of --static-libstdc++ and
stdc++compat breaks the build because they have conflicting symbols,
which is very much by design.

There are two ways out of this:
- avoiding either -static-libstdc++ or stdc++compat
- work around the symbol conflicts

The former is not totally reliable ; we'd have to accurately determine
if we're in a potentially conflicting case, and remove one of the two in
that case, and while we can do that for the cases we explicitly know
about, that's not future-proof, and might fail just as much in the
future.

So we go with the latter. The way we do this is by defining all the
std++compat symbols weak, such that at link time, they're overridden by
any symbol with the same name. When building with -static-libstdc++,
libstdc++.a provides those symbols so the linker eliminates the weak
ones. When not building with -static-libstdc++, the linker keeps the
symbols from stdc++compat. That last assertion is validated by the
long-standing CHECK_STDCXX test that we run when linking shared
libraries and programs.

That still leaves the symbols weak in the final shared
libraries/programs, which is a change from the current setup, but
shouldn't cause problems because when using versions of libstdc++.so
that do provide those symbols, it's fine to use the libstdc++.so version
anyways.
2017-08-04 06:07:42 +09:00
Ehsan Akhgari
cf4e6a817c Bug 1386411 - Part 7: Inline EditorBase::GetSelection(); r=masayuki 2017-08-03 17:06:31 -04:00
Ehsan Akhgari
dd8fbce0c9 Bug 1386411 - Part 6: Add a more efficient nsISelectionController::GetSelection() API for retrieving native Selection objects; r=bzbarsky
This API avoids needless refcounting and QueryInterface overhead.
2017-08-03 17:05:24 -04:00
Ehsan Akhgari
ad87011a1d Bug 1386411 - Part 5: Make BaseEditor::GetSelectionController() return nsISelectionController*, and inline it; r=masayuki
This method can be extremely hot, so we need to remove all sources of XPCOM
overhead from it.  This includes the usages of weak pointers (thanks to the
previous parts), refcounting, and QueryInterface.

I kept the callers hold the selection controller alive by assigning the
return value to an nsCOMPtr in places where the methods called on it could
have a remote chance of messing with the lifetime of objects.
2017-08-03 17:05:22 -04:00
Ehsan Akhgari
697fb3f83d Bug 1386411 - Part 4: Don't store the document as a weak reference on EditorBase; r=masayuki
This one also doesn't need to be a weak reference, and can be a strong
reference that the cycle collector knows about instead.
2017-08-03 17:05:21 -04:00
Ehsan Akhgari
7fe0be04ed Bug 1386411 - Part 3: Inline some helper functions in Selection.cpp; r=bzbarsky 2017-08-03 17:05:19 -04:00
Ehsan Akhgari
1774c1cc7d Bug 1386411 - Part 2: Devirtualize and inline nsISelection::AsSelection(); r=bzbarsky
nsISelection is builtinclass, so this method doesn't need to be virtual.
2017-08-03 17:05:17 -04:00
Ehsan Akhgari
ace85f9311 Bug 1386411 - Part 1: Don't store the selection controller as a weak reference on EditorBase; r=masayuki
This doesn't need to be a weak reference, and can instead be a simple strong
reference that we introduce to the cycle collector.
2017-08-03 17:05:15 -04:00
Ehsan Akhgari
064dd8f2a2 Bug 1386468 - Only register SelectionChangeListener for plaintext controls when dom.select_events.textcontrols.enabled is turned on; r=mystor 2017-08-03 17:01:40 -04:00
Gregory Szorc
4ebde530ea Bug 1382729 - Call proper mach command to uploads docs; r=dustin, a=bustage
--HG--
extra : amend_source : ee3ab660f758c21574dec86a98b20e44d9969bd5
2017-08-03 11:05:37 -07:00
Mason Chang
68b377c1ce Bug 1383916 Prep a DrawTarget to be drawn to on the paint thread. r=dvander 2017-08-03 08:50:32 -07:00
Axel Hecht
30a47c4339 bug 1370506: fix remaining mozharness configs MOZ_OBJDIR, r=Callek, a=bustage
MozReview-Commit-ID: KwAjWvJ55Xr
2017-08-03 15:20:48 +02:00
Sebastian Hengst
50d2d60772 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5MywkQxECqB
2017-08-03 11:46:00 +02:00
Marco Castelluccio
c4a3a89783 Bug 1386997 - Log both URL and source file when we can't find a mapped file. r=chmanchester
--HG--
extra : rebase_source : 7bad85c2aaebea9916ca0670bea53d6fb864bff8
2017-08-03 11:44:14 +02:00
Justin Wood
533bfbf492 Bug 1386251 - Disable win8 xpcshell, because we now have win10 xpcshell as tier 1. r=catlee
MozReview-Commit-ID: 1CzI4Q0lpts

--HG--
extra : rebase_source : 315f2551459a7a528279429c11c501383d701a5e
2017-08-03 15:57:17 -04:00
Yura Zenevich
0d362b188c Bug 1377273 - added focus styling for onboarding overlay button. r=mossop, gasolin
MozReview-Commit-ID: BZgx4ODL2at
2017-08-03 15:55:35 -04:00
Richard Marti
f6d589af0d Bug 1387097 - Let the prefernces favicon use the tab text color as fill color. r=dao
MozReview-Commit-ID: LelC9FL3QfD
2017-08-03 19:19:35 +02:00
Kartikaya Gupta
c474e2d82f Bug 1386747 - Put the scroll thumb's animation id in the scroll data for APZ. r=ethlin
MozReview-Commit-ID: fELBQVHky6
2017-08-03 15:32:01 -04:00
Kartikaya Gupta
7a68e63770 Bug 1386747 - Ensure that scroll thumb display items generate animation IDs. r=ethlin
We need to create a WebRenderAnimationData item in order to preserve the
animation id on the frame - this allows to re-use the same animation id
over multiple display list building phases.

MozReview-Commit-ID: 5Uj5sv6FUgt
2017-08-03 15:31:50 -04:00
Christoph Kerschbaumer
432d6fc782 Bug 1366695: Convert dom/bindings/test/test_barewordGetsWindow.html to comply with new data: URI inheritance model. r=smaug 2017-08-03 21:00:41 +02:00
Christoph Kerschbaumer
a00054e565 Bug 1363629: Convert test_bug518104 to comply with new data: URI inheritance model. r=smaug 2017-08-03 21:00:22 +02:00
Joel Maher
049c320cd7 Bug 1383737 - Change talos quantum pageloader test names and job symbols. r=ahal
MozReview-Commit-ID: 9t3cnfdDQFD
2017-08-03 14:47:28 -04:00
Joel Maher
141ab7e8ee Bug 1379810 - Intermittent layout/base/tests/test_scroll_snapping_scrollbars.html. disable for windows. r=gbrown
MozReview-Commit-ID: 86Rgb0QZzlI
2017-08-03 14:47:13 -04:00
Olli Pettay
f785d80029 Bug 1385666, ensure layout is flushed when editor gets focus, r=masayuki
--HG--
extra : rebase_source : 2dd86e64001fa48469a93849516e26c41c9163e4
2017-08-03 19:36:58 +03:00
Sebastian Hengst
b222b68e90 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EarijofwCOJ
2017-08-03 11:43:52 +02:00
Sebastian Hengst
d883695275 Backed out changeset aee8226f7f98 (bug 1380154) for failing OS X and Linux static at xpcom/ds/Dafsa.h:35 with 'constexpr constructor never produces a constant expression'. r=backout on a CLOSED TREE 2017-08-03 09:18:21 +02:00
Sebastian Hengst
3e9d5d2ae0 Backed out changeset 9144fad9aa16 (bug 1380154) 2017-08-03 09:17:55 +02:00
Sebastian Hengst
137f13d2b9 Backed out changeset 27c23e731b01 (bug 1380154) for failing OS X and Linux static at xpcom/ds/Dafsa.h:35 with 'constexpr constructor never produces a constant expression'. r=backout on a CLOSED TREE 2017-08-03 09:15:21 +02:00
David Anderson
79f94b4bc8 Skip over layers with degenerate transforms. (bug 1381352, r=mattwoodrow) 2017-08-02 23:48:44 -07:00
Mike Hommey
6d4d61f76a Fixup after backout of 25420b520b68 (part of bug 1386588). a=bustage 2017-08-03 12:18:12 +09:00
Mike Hommey
3507cf061a Backout changeset 25420b520b68 (part of bug 1386588) for asan bustage. a=bustage. 2017-08-03 12:11:40 +09:00