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

435064 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen ee3de3a3c3 Bug 1192082 - Iniialize/deinitialize JNI in nsAppShell; r=snorp
First we need to set the Gecko thread JNIEnv* in nsAndroidStartup, but
after that we can initialize and deinitialize the rest of JNI, including
AndroidBridge, in GeckoAppShell. This makes nsAppShell control the
AndroidBridge lifetime. Over time, parts of the AndroidBridge
functionality will be migrated to nsAppShell.
2015-08-13 00:53:40 -04:00
Jim Chen 3921c06e27 Bug 1192082 - De-clutter AndroidBridge init/deinit; r=snorp
Merge all the init code into AndroidBridge constructor and
AndroidBridge::ConstructBridge; merge all the deinit code into
AndroidBridge destructor and AndroidBridge::DeconstructBridge.

In particular, the SetMainThread call is obsolete and removed.
2015-08-13 00:53:39 -04:00
Jim Chen b2e48dacd7 Bug 1192082 - Expose AndroidBridge arguments through GeckoThread; r=snorp
AndroidBridge needed some arguments during its initialization. We'll
provide those arguments in GeckoThread, which AndroidBridge will access.
2015-08-13 00:53:39 -04:00
Jim Chen 1d42b8bea5 Bug 1192082 - Get rid of GeckoAppShell.nativeInit; r=snorp
Instead of letting AndroidBridge be constructed separately, we'll let
Gecko construct AndroidBridge.
2015-08-13 00:53:39 -04:00
Jim Chen b85528ed4a Bug 1192082 - Expose GeckoThread states to C++; r=me 2015-08-13 00:53:39 -04:00
Jim Chen a11aee77b7 Bug 1192079 - Update generated code; r=me 2015-08-13 00:53:39 -04:00
Jim Chen 2bdb7be558 Bug 1192079 - Use unqualified names when possible; r=snorp
To reduce verbosity of the generated code, this patch makes the code
generator use unqualified names when possible, e.g. use State::Ref
instead of GeckoThread::State::Ref. To accomplish that, function
prototypes now use the C++11 -> syntax for return types.
2015-08-13 00:53:39 -04:00
Jim Chen 7595348845 Bug 1192079 - Support inner classes in generated JNI wrapper; r=snorp
Currently, when we generate JNI wrapper for an inner class, the
resulting C++ class will not actually be a nested class of the enclosing
class. As a result, the class can be confusing to use. For example,
wrapping Java class GeckoThread.State results in two unrelated C++
classes, GeckoThread and State, and it'd be confusing to use State by
itself.

This patch adds support for inner classes. We start by scanning only for
top-level classes, and when processing each top-level class, we
recursively scan for inner classes through
JarClassIterator.getInnerClasses() and CodeGenerator.generateClasses().
For each Java inner classes, the resulting C++ class will be a nested
class. For example, wrapping GeckoThread.State will produce
widget::GeckoThread and widget::GeckoThread::State.
2015-08-13 00:53:39 -04:00
Jim Chen d1f529698f Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Jim Chen 3599e8ef4f Bug 1192077 - Move AndroidBridge JNIEnv calls to jni/Utils; r=esawin
Calls like GetJNIForThread should now belong in jni/Utils. Moving the
calls also reduce clutter in AndroidBridge.
2015-08-13 00:53:39 -04:00
Jim Chen 29ee442159 Bug 1189995 - Move GeckoAppShell.pumpMessageLoop to GeckoThread; r=esawin
This method is used by Gecko to pump the Android message loop, and it's
also more suited to GeckoThread than GeckoAppShell.
2015-08-13 00:53:39 -04:00
Jim Chen afb248e2fa Bug 1189995 - Move GeckoAppShell.runGecko to GeckoThread; r=esawin
GeckoAppShell.runGecko really should be in GeckoThread because
GeckoThread already takes care of most of the preparation when running
Gecko. This patch merges runGecko into GeckoThread.run, but split the
argument-building code into its own method.
2015-08-13 00:53:39 -04:00
Jim Chen a73169a9de Bug 1191083 - Merge pending events handling into mechanism for queued native calls: r=snorp
Right now we have a separate way of handling pending events before Gecko
is loaded. We can merge that into the new mechanism for queuing native
calls.
2015-08-13 00:53:38 -04:00
Jim Chen 5027cc3ce3 Bug 1191083 - Add mechanism to queue native calls in GeckoThread; r=snorp
We cannot call native methods until Gecko is loaded. This patch adds a
mechanism in GeckoThread so that other code can queue up native method
calls and have those calls automatically delivered when Gecko is ready.
2015-08-13 00:53:38 -04:00
Jim Chen 3ef08d00ac Bug 1191083 - Implement more GeckoThread states; r=snorp
Implement the MOZGLUE_READY and JNI_READY states in GeckoThread. Also
change GeckoJavaSampler to use the new states instead of a separate
flag.
2015-08-13 00:53:38 -04:00
Jim Chen 3c57710825 Bug 1191083 - Rename and expand GeckoThread.LaunchState; r=snorp
GeckoThread.LaunchState now covers the entire GeckoThread lifetime and
not just launch, so it's renamed to GeckoThread.State. More utility
methods are added to check for the current state.
2015-08-13 00:53:38 -04:00
Jim Chen 6ad20bb7d0 Bug 1191161 - Followup to fix wrong annotation classpath; r=nalexander
Because we switched annoations from gecko-mozglue.jar to constants.jar,
we should update the corresponding classpaths when processing
annotations during code autogeneration.

gecko-mozglue.jar is still needed during the javah step because
gecko-browser.jar has a dependency on
org.mozilla.gecko.mozglue.JNIObject.
2015-08-13 00:53:38 -04:00
Nicholas Nethercote 01a073b5a2 Bug 828844 - Add a "system-heap-allocated" memory report on Linux. r=glandium.
This gives zero when jemalloc is enabled and non-zero when jemalloc is disabled
(e.g. I got 83 MiB at start-up, which sounds plausible).

--HG--
extra : rebase_source : f39a15472d48643f57a77f1df03e4a29543d0867
2015-08-12 17:44:00 -07:00
Edwin Flores b587e1f835 Bug 1135320 - Re-enable voucher.bin generation on Win64 - r=cpearce 2015-08-13 16:08:46 -07:00
Francois Marier 2a4ad76933 Bug 992096 - Implement Sub Resource Integrity [2/2]. r=ckerschb
Mochitests
2015-08-12 20:19:16 -07:00
Francois Marier 34de332db0 Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
Code changes
2015-08-12 20:19:11 -07:00
JW Wang 42dfd9d8d2 Bug 1191192 - Add DecodedStream::SetSameOrigin(). r=roc. 2015-08-13 09:22:59 +08:00
Nathan Froyd 0b70f91001 Bug 1193470 - silence more warnings when building skia with clang/g++; r=glandium
- Several of skia's functions are marked as deprecated, but when
  compiling Gecko, we don't really care about Skia's internal use of
  deprecated functions.

- clang warns about unused private fields, which is a valuable warning
  for Skia developers, but not a useful warning to see during Gecko
  compilations.

- Various macros in Skia are redefined as a result of using unified
  compilation.  clang has a -Wno switch for turning this off; gcc also
  warns about it, but does not have a separate switch, so we can't do
  anything about it.
2015-08-11 23:23:26 -04:00
Brian Hackett 2a5db2f814 Bug 1179242 - Avoid unnecessary moves to dead stack slots, tweak regalloc heuristics for bundles required to be in a specific register, r=sunfish. 2015-08-12 18:20:41 -06:00
Randell Jesup efb47b11df Bug 1189040: add a whitelist for network interfaces to use with ICE/webrtc r=ekr 2015-08-12 19:45:36 -04:00
EKR e92a0a38f4 Bug 1189041 - Add option to only gather addresses for default route. r=bwc 2015-08-12 10:53:15 -04:00
Shu-yu Guo 7f315a501d Bug 1193046 - Clear prevUpToDate on younger frames when toggling frame debuggeeness off->on. (r=jimb) 2015-08-12 16:37:07 -07:00
Shu-yu Guo 0e31403032 Bug 1161332 - Don't save the JSContext when saving FrameIter::Data. (r=jimb) 2015-08-12 16:37:07 -07:00
Shu-yu Guo 05a01ff244 Bug 1188334 - Fix this one weird case with creating debug block scopes of 0-variable block scopes that come from deprecated let exprs inside generators. (r=jimb) 2015-08-12 16:37:07 -07:00
Shu-yu Guo 22067a94a8 Bug 1188878 - Ensure RematerializedFrames are cleared from Debugger instances on Ion bailout failure. (r=jandem) 2015-08-12 16:37:07 -07:00
Shu-yu Guo bbd18bfb28 Bug 1191499 - Trace the arguments object in RematerializedFrames. (r=jandem) 2015-08-12 16:37:07 -07:00
Jonathan Griffin 97fb05e7fd Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester
--HG--
extra : commitid : Dylb8zPXhh4
2015-08-12 16:25:56 -07:00
Milan Sreckovic 0f7c78e833 Bug 1160295: Bad DisplayLink drivers -> no acceleration. r=jrmuizel 2015-08-12 15:57:43 -07:00
Seth Fowler 688a7b4ccc Bug 1191114 (Part 4) - Add tests for metadata decoding, including that we always deliver HAS_TRANSPARENCY during the metadata decode. r=tn
--HG--
extra : rebase_source : a75678990dfe110dcafed02591da45854a0b2c92
2015-08-12 10:41:11 -07:00
Seth Fowler 2293f110ab Bug 1191114 (Part 3) - Add flags to image test cases. r=tn
--HG--
extra : rebase_source : ae18f059f8dcd70959567631afac9436f3214b6f
2015-08-12 10:41:08 -07:00
Seth Fowler b83a44287a Bug 1191114 (Part 2) - Add support for creating an anonymous metadata decoder, for use in tests. r=tn
--HG--
extra : rebase_source : 465523f87fda3ac80484fd368c9bbfe3daca2afc
2015-08-12 10:41:05 -07:00
Seth Fowler c012dc0aa9 Bug 1191114 (Part 1) - Always detect HAS_TRANSPARENCY during the metadata decode. r=tn
--HG--
extra : rebase_source : 97c8568f33abd1f2a8d9ef5679ce3ac904f0758f
2015-08-12 10:41:02 -07:00
Xidorn Quan f63a930fb6 Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc
--HG--
extra : source : b3015229dd6997970ce2634b6fcf393f2f702e85
2015-08-13 08:53:53 +10:00
Eric Rahm e2ce0103de Bug 1193914 - Properly check ide type when deciding whether or not to package. r=benwa 2015-08-12 13:59:05 -07:00
Wes Kocher 928a195f43 Merge inbound to central, a=merge 2015-08-12 15:16:16 -07:00
Wes Kocher 8d78b6eed8 Merge b2ginbound to central, a=merge 2015-08-12 14:52:11 -07:00
Fabrice Desré 16dfbc45e6 Bug 1129882 - backout 9c6fde246f6e and 847b57aaeff7 for causing 1193840 on a CLOSED TREE r=szchen, r=htsai 2015-08-12 14:35:41 -07:00
Wes Kocher 57007ff5f7 Backed out changeset 87356283d9f2 (bug 443811) for mac xpcshell permacrashes CLOSED TREE 2015-08-12 14:27:55 -07:00
Ryan VanderMeulen 51207442bd Backed out changesets 41e3f27dd893 and efaeac1575a1 (bug 1186273) for causing frequent test_fs_app_permissions.html timeouts.
CLOSED TREE
2015-08-12 16:23:38 -04:00
Andrew McCreight 547d66402f Bug 1193917 - Paper over web audio leaks revealed by event loop changes. r=erahm CLOSED TREE 2015-08-12 12:47:43 -07:00
David Major 546a607a91 Bug 1193459 review follow-up: Copy the comment from TraceKind.h. DONTBUILD CLOSED TREE 2015-08-12 15:38:10 -04:00
David Major 048b96a697 Backed out changeset d0e096ad1856. DONTBUILD CLOSED TREE 2015-08-12 15:35:12 -04:00
David Major faab46edc3 Bug 1193459 review follow-up: Copy the comment from TraceKind.h. DONTBUILD CLOSED TREE
--HG--
extra : amend_source : 8dfc5ad94bd1784c6be9ac8ae863eedfcbe04e83
2015-08-12 15:31:33 -04:00
B2G Bumper Bot d11b889ea7 Bumping manifests a=b2g-bump 2015-08-12 10:17:05 -07:00
B2G Bumper Bot 39190c918d Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/5c7a65a42656
Author: Martijn <martijn.martijn@gmail.com>
Desc: Merge pull request #30893 from lusob/Bug-1100411-status-bar-icons

Bug 1100411 - Create test to verify status bar icons appear when home…

========

https://hg.mozilla.org/integration/gaia-central/rev/84cf9bc4f4a5
Author: lusob <luis@sobrecueva.com>
Desc: Bug 1100411 - Create test to verify status bar icons appear when home screen is scrolled R=lusob

Fixed reviewers issues
2015-08-12 10:15:27 -07:00