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

467466 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson b22c76c625 Bug 1258175 - Remove broken -Wunreachable-code-return and -Wunreachable-code-aggressive checks. r=glandium
compiler-opts.m4's check for `MOZ_CXX_SUPPORTS_WARNING(-W, unreachable-code-return, ac_cxx_has_wunreachable_code_return)` is broken. The C/C++ code that configure emits for MOZ_CXX_SUPPORTS_WARNING() actually contains a -Wunreachable-code-return warning and, thus, doesn't actually detect that clang supports the -Wunreachable-code-return flag.

This configure code in MOZ_CXX_SUPPORTS_WARNING():

  AC_TRY_COMPILE([],
                 [return(0);],
                 $3="yes",
                 $3="no")

generates something like:

  int main() {
  return(0);
  ; return 0; }

where the second return, automatically emitted by configure, is unreachable and causes a -Wunreachable-code-return warning.

The fix is to remove the redundant return(0) from MOZ_CXX_SUPPORTS_WARNING(). This allows clang's -Wunreachable-code-return flag to be detected, but then -Wunreachable-code-return breaks other configure checks, including third-party libraries' configure checks (in particular jemalloc) that also have redundant `return(0)`. So all the third-party libraries' configure checks would need to be fixed upstream, which seems like more hassle than the value of the -Wunreachable-code-return warnings.
2016-03-19 00:10:37 -07:00
Chris Peterson a3e7f3388f Bug 1258087 - Fix -Wunreachable-code warning in StartupCache.cpp on macosx64-mulet. r=froydnj 2016-03-19 00:10:16 -07:00
Mike Hommey a8db2a2c62 Bug 1258619 - Properly sandbox functions inside a template. r=chmanchester
The way functions are being sandboxed in moz.configure land is that
their global namespace is being replaced with a limited and identifiable
dict. And we avoid re-wrapping a function that already received this
treatment.

The problem is that template functions have their global namespace
replaced, and any function that is defined within the template inherits
that global namespace. So when it comes time to wrap those functions
defined in templates with e.g. depends, we detect that they're already
wrapped although they are not, because we look if their global namespace
is of the recognizable type we use when replacing it.

So instead of looking at the global namespace type, keep track of all
functions that are wrapped.
2016-03-23 13:24:54 +09:00
Mike Hommey 2ee885572e Bug 1258785 - Return a None value when check_prog doesn't find a program. r=ted 2016-03-23 13:24:49 +09:00
Daisuke Akatsuka 07d9c95713 Bug 1254761 - Part 3: Add tests for AnimationFilter. r=birtles
--HG--
extra : rebase_source : 188cd7bc49e9c143540b874945ab6a3bbfbf79bf
2016-03-22 09:33:09 +09:00
Daisuke Akatsuka ed48c0cba4 Bug 1254761 - Part 2: Removes extra whitespaces. r=birtles
--HG--
extra : rebase_source : 18299c47072d972e9b40c7e0f848584ac976e01e
2016-03-22 09:33:05 +09:00
Daisuke Akatsuka c89239f3ad Bug 1254761 - Part 1: Implement getAnimations({ subtree: true }). r=smaug
--HG--
extra : rebase_source : 3079ffea84919cb6b43dce8c28b256edddce4746
2016-03-22 09:33:02 +09:00
Nick Fitzgerald 78a56fafbd Bug 1258847 - Set PTHREAD_MUTEX_ERRORCHECK for js::Mutex in debug builds. r=sfink
--HG--
extra : rebase_source : 0aa29d45838d9452fbc2b1c5249878ab62a580e3
2016-03-22 15:51:00 -04:00
Nick Fitzgerald c24a33f5b9 Bug 1258818 - Fix bad search/replace from b411b94f8d91 (from bug 956899). r=terrence
--HG--
extra : rebase_source : 8114621d6bf163626fc14530ef455f5c65103a0c
2016-03-22 12:58:00 -04:00
Cykesiopka c343159d73 Bug 1253108 - Enable ESLint "strict" rule for PSM. r=keeler
MozReview-Commit-ID: 4wElZ8Guq9z

--HG--
extra : rebase_source : 60fb87c33d041994f35cbf9fd2fb3a55bd753bc6
2016-03-19 03:07:13 -07:00
Eden Chuang 7fce480440 Bug 772528 - Remove nsFileInputStream::Seek() from nsPartialFileInputStream::Init(). r=baku
--HG--
extra : rebase_source : 9050f4f38f64d9e7f8532377661e6d2e6052417e
2016-03-21 10:48:59 +08:00
Jim Chen dfd67cc6c8 Bug 1257934 - Make the GeckoPreferences pref handler a static class; r=sebastian
The pref handler class in GeckoPreferences doesn't need a reference back
to GeckoPreferences, so it's better to make it a static class rather
than a (non-static) anonymous inner class, in order to avoid leaking
the GeckoPreferences instance inadvertently.

To avoid confusion, the patch also renames the class to "PrefCallbacks",
because GeckoPreferences already has an unrelated interface named
"PrefHandler".
2016-03-22 22:26:19 -04:00
Jim Chen 126366bd4a Bug 1257319 - Remove BROADCAST GeckoEvent; r=me
Remove the now-obsolete BROADCAST GeckoEvent.
2016-03-22 22:24:32 -04:00
Jim Chen 92c9a70aa5 Bug 1257319 - Don't use broadcast event in AndroidContentController; r=rbarker
We should use observer service directly instead of broadcast event.
2016-03-22 22:24:31 -04:00
Jim Chen 684d4be80d Bug 1257319 - Convert broadcast event usage in HomeConfig.java; r=margaret
HomeConfig.java saved a list of events to be sent later in a batch. This
patch makes it save a pair of strings instead, and the strings are later
used to make calls to GeckoAppShell.

The patch also makes two small optimizations. It makes the queue an
ArrayList instead of a LinkedList to save memory. It also makes copying
the queue a swap instead of a true copy.
2016-03-22 22:24:31 -04:00
Jim Chen 08f23ae943 Bug 1257319 - Convert existing broadcast events to calls; r=margaret
Convert existing places where we use broadcast events to use
new GeckoAppShell calls.
2016-03-22 22:24:31 -04:00
Jim Chen e4028af97d Bug 1257319 - Update auto-generated bindings; r=me
Update auto-generated bindings. The jni-stubs.inc change is due to the
fact that we still have old-style native methods in GeckoAppShell.
2016-03-22 22:24:31 -04:00
Jim Chen 2025f2f89b Bug 1257319 - Add notifyObservers methods to GeckoAppShell; r=snorp
Add notifyObservers and the synchronous syncNotifyObservers methods to
GeckoAppShell to replace the BROADCAST event.
2016-03-22 22:24:31 -04:00
JW Wang 8be2af10c1 Bug 1258567 - per comment 3, ensure volume is only applied once to the AudioSegment. r=kinetik.
MozReview-Commit-ID: Bks59JySrep
2016-03-23 10:16:15 +08:00
Daisuke Akatsuka 9602fa95af Bug 1256560 - Implement AnimationEffectTiming WebIDL. r=birtles, r=smaug
--HG--
extra : rebase_source : ca188cf8fec37819e90310ca21b9250ac4fe0e0e
2016-03-22 16:43:00 -04:00
Timothy Guan-tin Chien ebce64ec9e Bug 1257783 - mach-bootstrap: ask git user to clone hg.mozilla.org with git-cinnabar. r=gps
MozReview-Commit-ID: 8lkPECJCpEz

--HG--
extra : rebase_source : 835b76638071d8410ac0ed22709092e31cb8bb4f
2016-03-22 11:05:50 +08:00
Jim Mathies 3089b942e0 Bug 1258440 - Don't attempt to hide plugin windows when switching trees if the previous remote layer tree didn't contain plugin windows. Fixes a tpaint regression. r=mconley
MozReview-Commit-ID: 7UDO4RxBRVF

--HG--
extra : rebase_source : ce3835c935a10a0b265e6f4b3930aaf1adb9aed5
2016-03-22 17:30:14 -05:00
Jim Mathies 8782966286 Bug 1241060 - Skip non-2d sibling layers when calculating plugin window clipping under e10s. r=mstange
MozReview-Commit-ID: 4R5h3DeIU0S

--HG--
extra : rebase_source : 9c3fe839afb77e200aaa8736646109675bdb7f3b
2016-03-21 09:52:21 -05:00
Jeff Muizelaar aacbe16708 Bug 1242668 - Hold more references. r=sotaro
--HG--
extra : rebase_source : bc808856afacc93eb472f6a18ca2b791c8bfe7f0
2016-02-25 17:26:10 -05:00
Eric Rahm 1424614c16 Bug 1258231 - Lock while iterating console messages. r=mccr8
--HG--
extra : rebase_source : 3e587ec2b0d7bc8f94a452a6a7ac0d5cff92a716
2016-03-21 12:15:42 -07:00
David Anderson f7210bb6ef Add a driver crash guard to D3D11 DXVA. (bug 1253666, r=mattwoodrow) 2016-03-22 18:45:28 -07:00
Heiher 66f38e521d Bug 1258907 - IonMonkey: MIPS32: Fix MacroAssembler::branchValueIsNurseryObject. r=arai
---
 js/src/jit/mips32/MacroAssembler-mips32.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2016-03-23 09:35:24 +08:00
Masayuki Nakano 3af2033805 Bug 1154183 part.7 Don't dispatch preceding keydown events of reserved keypress events on content in the default event group r=smaug
MozReview-Commit-ID: 5zdkdfNxbxb
2016-03-22 15:05:25 +09:00
Masayuki Nakano ac1b2491bc Bug 1154183 part.6 Add nsXBLWindowKeyHandler::IsExecuteableElement() r=smaug
MozReview-Commit-ID: 8FyDzkfHihH
2016-03-19 23:16:21 +09:00
Masayuki Nakano 5b0e7ecdae Bug 1154183 part.5 Make nsXBLWindowKeyHandler::GetElementForHandler() use early return style r=smaug
MozReview-Commit-ID: CezO0rZBOEl
2016-03-19 23:12:39 +09:00
Masayuki Nakano d62ef1ba67 Bug 1154183 part.4 Implement nsXBLWindowKeyHandler::GetElementForHandler() r=smaug
MozReview-Commit-ID: 9qsOLU3QCnr
2016-03-18 11:25:22 +09:00
Masayuki Nakano 77166dd790 Bug 1154183 part.3 Clean up some variable names in nsXBLWindowKeyHandler::WalkHandlersAndExecute() r=smaug
MozReview-Commit-ID: 17fCUBwFf92
2016-03-18 11:25:08 +09:00
Masayuki Nakano 7bcaf602d0 Bug 1154183 part.2 eKeyDown event should have charCode value of following keypress event r=smaug
MozReview-Commit-ID: 9duzKfCFPro
2016-03-19 20:57:11 +09:00
Masayuki Nakano 963976b46d Bug 1154183 part.1 Move shortcut/access key candidate list creators from nsContentUtils to WidgetKeyboardEvent r=smaug
MozReview-Commit-ID: Ied6qEUc2Kz
2016-03-18 11:22:37 +09:00
Matthew Gregan 358dd6f8a1 Bug 1257699 - Update in-tree libnestegg. r=giles 2016-03-23 13:47:14 +13:00
Brian Birtles 1fa3fa89d4 Bug 1257753 - Extend length of script animation in test to avoid intermittent failures; r=hiro
MozReview-Commit-ID: DHuWqOGWHqw
2016-03-23 09:40:31 +09:00
Sotaro Ikeda a8248d2037 Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel 2016-03-22 17:30:52 -07:00
Mike Hommey aec687f13d Bug 1258618 - Use True instead of '1' for add_old_configure_assignment. r=nalexander 2016-03-23 09:24:53 +09:00
Mike Hommey 9b54a468a9 Bug 1258618 - Use True instead of '1' for set_define. r=nalexander 2016-03-23 09:24:51 +09:00
Mike Hommey 521861c0e2 Bug 1258618 - Use True instead of '1' for set_config. r=nalexander 2016-03-23 09:24:50 +09:00
Mike Hommey b43aae42ec Bug 1258618 - Allow to use bools as values given to add_old_configure_assignment. r=nalexander 2016-03-23 09:24:49 +09:00
Mike Hommey c4eadb8455 Bug 1258618 - Serialize substs/configs and defines bools as '1' or '' in config.status. r=nalexander
This allows to use True and False as values given to
set_config/set_define in moz.configure files, while postponing having to
deal with the long tail of things depending on the values from substs
and defines.

Ideally, everything would handle the bools just fine, but there are too
many things involved to deal with this right now: scripts using
buildconfig.{substs,defines}, scripts using ConfigEnvironment (e.g.
process_define_files.py), ConfigEnvironment itself, etc.
2016-03-23 09:24:47 +09:00
Mike Hommey c5fa99076d Fixup for bug 1256995 after bug 1258615 landed. r=me 2016-03-23 09:24:46 +09:00
George Wright 4718b95edf Bug 1255841 - Explicitly send down the child index when building select popups in the parent r=mconley 2016-03-22 20:20:25 -04:00
Wes Kocher 1922ce7aa8 Merge m-c to inbound, a=merge CLOSED TREE
MozReview-Commit-ID: KCev5FqbsuD
2016-03-22 16:57:35 -07:00
Boris Zbarsky c01ae6afbe Back out bug 1256342 too, for now, still CLOSED TREE. 2016-03-22 19:55:55 -04:00
Wes Kocher c47b5bf99f Merge inbound to central, a=merge
MozReview-Commit-ID: 8nLQgyb8Wfd
2016-03-22 16:45:43 -07:00
Till Schneidereit 7630fb42a2 Bug 911216 - Part 12: Windows build bustage fix on a CLOSED TREE. r=efaust
--HG--
extra : rebase_source : 6ca1428bdf7013c060ce13a6a389903937c4c58e
2016-03-23 00:43:41 +01:00
Boris Zbarsky a107417359 Back out bug 1256376 for now until I can figure out what's going on with it. I am sorry for the CLOSED TREE. 2016-03-22 19:27:47 -04:00
Shu-yu Guo b004031f7c Bug 1258000 - Make jit_test.py print a nice error message if test list is empty after filtering. (r=sfink) 2016-03-22 16:19:52 -07:00