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

550612 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa e7dc33e772 Bug 1379525 - Part 1: Await on the value before yielding or returning inside async generator. r=shu 2017-08-04 13:04:31 +09:00
Mason Chang 7dc5a03ec2 Bug 1386073 Don't set RotatedBuffer's returned DrawTarget transform with omtp. r=dvander 2017-08-03 20:51:30 -07:00
Nicholas Nethercote 4f49ba4241 Bug 1386962 - Remove template code from XPIDL generated header files. r=froydnj.
XPIDL generated header files contain a |#if 0| block for every interface,
providing the skeleton of the class as it must be implemented in C++. This is
potentially useful, but also very verbose.

This patch removes this code. In a Linux64 debug build, this reduces the total
size of the $OBJDIR/dist/include/nsI*.h files from 11,023,499 bytes to
8,442,350 bytes, a 23.5% reduction. It didn't speed up compilation, though.

--HG--
extra : rebase_source : 65e1e46cffe7c831d83c3308d7ce58c801618dda
2017-08-03 17:05:01 +10:00
Ed Lee 64170b63af Bug 1386445 - Early about:newtab pages are missing message APIs because RemotePages registers too late. r=mossop
This moves AboutNewTab.init from nsBrowserGlue.js handling of "browser-delayed-startup-finished" into aboutNewTabService.js so that when the service is loaded once from the main thread probably by browser.js towards the beginning of _delayedStartup just before potentially calling gBrowser.loadTabs, the service triggers the attaching of RemotePages(about:newtab) before any about:newtab pages load.

Additionally even when RemotePages starts early enough, Activity Stream might not borrow the RemotePages instance early enough to catch the RemotePage:Load message, so to simulate that, RemotePages now remembers when a port has been loaded for consumers to check. Adds tests to confirm the expected properties on the port and value of loaded at the various RemotePage:* messages.

MozReview-Commit-ID: IXJLvFCgbEH

--HG--
extra : rebase_source : 2b53c4e58f4cb8cbd4ea10741f3f609693989010
2017-08-01 12:30:33 -07:00
Ting-Yu Chou fe98b4e219 Bug 1385181 - Avoid excess copying when return from HashTable::lookupForAdd(). r=luke
MozReview-Commit-ID: F95DCc1wvkE

--HG--
extra : rebase_source : 42edaf41d53e9c7646206cc6ea9c9ce976846eb1
2017-08-01 17:00:39 +08:00
Ehsan Akhgari 22c17c93c9 Bug 1386472 - Only register the AccessibleCaretEventHub when the accessible caret is enabled; r=bzbarsky 2017-08-03 23:06:15 -04:00
Ehsan Akhgari ce1eea874c Bug 1385182 - Try to avoid dynamic allocations for most arrays created inside nsDisplayList::Sort(); r=mstange 2017-08-03 23:05:26 -04:00
Ehsan Akhgari 8673ee6cd6 Bug 1379344 - Avoid traversing the display list twice inside nsDisplayList::UpdateBounds(); r=mstange 2017-08-03 23:04:48 -04:00
Ehsan Akhgari fd868a0072 Bug 1387158 - Silence the -Wcomma compiler warnings in Types.h macros iterating over Corners and Sides; r=dholbert 2017-08-03 23:04:47 -04:00
Yoshi Huang c39a8b9f4f Bug 1340974 - To make data-url.html pass. r=smaug
The original test in [1] will throw Syntax error, due to we strip whitespace in
[2]. The test 'else postMessage(..)' will become 'elsepostMessage(...)'
and cause ReferenceError: elsepostMessage is not defined. So I added {}
to fix the error.

Also in the last test [3], it will trigger error handler in the testing
framework, and the TestHarness will fail if there's an error thrown. So I
added 'setup({allow_uncaught_exception:true});' to fix this.

[1]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/testing/web-platform/tests/workers/data-url.html#53
[2]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/netwerk/protocol/data/nsDataHandler.cpp#92
[3]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/testing/web-platform/tests/workers/data-url.html#56
2017-08-04 10:58:01 +08:00
Wes Kocher e371c2bbf3 Merge m-c to inbound, a=merge CLOSED TREE
MozReview-Commit-ID: AHCROxMdKPB
2017-08-03 18:13:23 -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
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
Alexander J. Vincent 8e8d3afeee Bug 1383630 - ScriptedProxyHandler should report which first property a TypeError is thrown for. r=jandem 2017-08-03 13:33:02 -07:00
Jim Blandy f5a2166003 Bug 1383158 - Document that Debugger.Object methods may throw on exotic objects. r=tromey 2017-08-03 12:48:38 -07:00
Jim Mathies 57d9bf0aee Bug 1360666 - Update IME state when nsObjectLoadingContent content changes type from 'loading' to a valid content type. r=masayuki
MozReview-Commit-ID: JC3YGS75gpN
2017-08-03 14:07:14 -05:00
Bill McCloskey 75f4342e31 Bug 1364821 - Fix bustage
MozReview-Commit-ID: 3Z5A1FmvBm3
2017-08-03 15:17:11 -07:00
Bill McCloskey 5466ff7e51 Bug 1386893 - Update AbstractThread thread safety assertions to work with cooperative threading (r=jwwang)
MozReview-Commit-ID: 72xKyWOUXL5
2017-08-03 14:19:04 -07:00
Bill McCloskey 2273c53b75 Bug 1364821 - Introduce AbstractThread::AutoEnter and remove main thread's AbstractThread::GetCurrent() (r=jwwang)
MozReview-Commit-ID: FSLVn7xe3sq
2017-08-03 14:19:02 -07: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