Commit Graph

550383 Commits

Author SHA1 Message Date
James Cheng
45315ad152 Bug 1386972 - Remove NS_DispatchToMainThread and use nsIEventTarget to dispatch instead. r=cpearce
MozReview-Commit-ID: JGPrNw5amqg

--HG--
extra : rebase_source : 3d2fb8114d20d9abf9d3ed0f6ab832f1df61b82e
2017-08-03 18:04:34 +08:00
Daisuke Akatsuka
7f67d2159d Bug 1386963 - Part 3: remove test fail annotations from meta in wpt. r=hiro
Since we make 'image-orientation' and 'paint-order' properties animatable,
remove test fail annotations from meta in wpt.

MozReview-Commit-ID: JRMe8wSxydg

--HG--
extra : rebase_source : f11a0d0d08fd743d373021f498f892a2d07cfb23
2017-08-04 08:52:39 +09:00
Mark Hammond
d382e46b84 Bug 1387303 - fix test_places_guid_downgrade.js to work correctly in the new async-sync world. r=eoger
MozReview-Commit-ID: 4bmu45qUmFA

--HG--
extra : rebase_source : bd610c5cbd8be72c0239dd72122f422bea9d02fa
2017-08-04 11:49:15 +10:00
Chenxia Liu
a869597b17 Bug 1380804: Access Pocket API through loader. r=mcomella
MozReview-Commit-ID: AzYi5oEJ1p

--HG--
extra : rebase_source : e0cc79685b64f4dd87dcc4d0f2bb800b8f121051
2017-08-02 16:40:41 -07:00
Cameron McCormack
a3c755c590 Bug 1381731 - Remove gUnusedAtomCount assertions since they're hard to get right given OMT atom refcounting. r=bholley
MozReview-Commit-ID: ByM6mzL1IgF

--HG--
extra : rebase_source : efa2f0e3c353a316c8035bf28868e0a321e1dfa2
2017-07-29 11:57:32 +08:00
Jared Hirsch
0670329571 Bug 1386333 - Remove Screenshots rollout pref; r=standard8
MozReview-Commit-ID: AW8igzQIDiH

--HG--
extra : rebase_source : b8b6d7bb8237add1f587a76f0a87cb91fa2b7c43
2017-08-01 10:24:43 -07:00
Cykesiopka
ec8581113b Bug 1355692 - Add MOZ_FALLTHROUGH macro definition for gcc 7 to suppress -Wimplicit-fallthrough warnings. r=glandium
The generic fallback MOZ_FALLTHROUGH definition is insufficient for GCC 7 and
above, resulting in --enable-warnings-as-errors builds failing.

The check for clang support is changed to use the __has_cpp_attribute macro,
which is more robust than checking the __cplusplus version.

Also, MOZ_FALLTHROUGH is now only defined in C++ code, since GCC errors out if
it encounters a scoped attribute being used with __has_cpp_attribute in C code.
No C code uses MOZ_FALLTHROUGH or derivatives at the moment.

MozReview-Commit-ID: 4nKFBRD5jSF

--HG--
extra : rebase_source : 0c37ae39c806ca24a3271d3ec19531dd16e05daf
2017-07-28 00:11:28 +08:00
James Cheng
e26f574fc3 Bug 1386971 - Remove NS_DispatchToMainThread and use nsIEventTarget to dispatch instead. r=cpearce
MozReview-Commit-ID: DeN3Cl9fyp2

--HG--
extra : rebase_source : 535bdd4ccf19f766ef65a11fdafc638025e3ebe5
2017-08-03 16:07:15 +08:00
Daisuke Akatsuka
3b1a2364ee servo: Merge #17964 - Make 'image-orientation' and 'paint-order' animatable (from dadaa:bug1386963); r=hiro
<!-- Please describe your changes on the following line: -->

---
<!-- 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

<!-- Either: -->
- [ ] There are tests for these changes. The test code is patch 3 in https://bugzilla.mozilla.org/show_bug.cgi?id=1386963

<!-- 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: 50c9797ddd7b206c96f9436c634d915efe4acc17

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 596da466caf6c5be55db82c0734ee90398f933ec
2017-08-03 18:52:13 -05:00
Ricky Chien
a6fb28df38 Bug 1361954 - Introduce new no search results page for about:preferences r=mconley
MozReview-Commit-ID: 6RIytZmFtoq

--HG--
extra : rebase_source : a95629b9643bec228919de25d280c5dd3dccce9a
2017-07-31 16:04:05 +08:00
JW Wang
c7c29fe527 Bug 1385699. P5 - fix AudioEndTime() and VideoEndTime(). r=cpearce
AudioEndTime() returns 0 if the media sink is not started. This is wrong
because the audio/video end time should be at least the current position
to ensure playback won't go backwards.

http://searchfox.org/mozilla-central/rev/bbc1c59e460a27b20929b56489e2e55438de81fa/dom/media/MediaDecoderStateMachine.cpp#2009-2012
This fix the case where we wrongly set playback position to 0 after seeking
to the end of resource.

MozReview-Commit-ID: 2VnTcqyIvoJ

--HG--
extra : rebase_source : 3abb59053952c018b1bff8c442450e98845a4947
extra : source : 3dc1a61d32e5be587f5f6892217fe9fe25ca533b
2017-08-02 18:00:00 +08:00
JW Wang
17554a637a Bug 1385699. P4 - MediaDecoder::mExplicitDuration doesn't need to be a canonical anymore. r=cpearce
MozReview-Commit-ID: 4FUwQRS2K1m

--HG--
extra : rebase_source : 66b2f1a9fcdf54abd61f071847c1469ad3a3c5c4
extra : source : 0da2d6137100d1cb3ec33d5ce735252eeba3ac62
2017-08-01 15:06:13 +08:00
JW Wang
1ab15ede36 Bug 1385699. P3 - remove MediaDecoder::SetInfinite() and related code. r=cpearce
Since inf can be encoded in MDSM::mDuration, we don't need an additional flag
in MediaDecoder to indicate 'infinite' anymore. Note duration change from infinite
to finite is handled by MDSM, so we can remove the explicit calls to SetInfinite(false).

MozReview-Commit-ID: EoxwZJzPAJl

--HG--
extra : rebase_source : 669d7ed5b99a89b1827f60f89e0a21f08a18dedd
extra : source : a30b614784afe8772b2212728c1e4a2eac67f94b
2017-08-01 14:15:29 +08:00
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