Commit Graph

486819 Commits

Author SHA1 Message Date
Nicholas Nethercote
3b0485fcdb Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.

--HG--
extra : rebase_source : c15d85298e0975fd030cd8f8f8e54501f453959b
2016-08-12 17:36:22 +10:00
Eddy Bruel
569162ecf7 Bug 1291685 - Fix regression caused by bug 1271650. r=jimb 2016-08-14 09:54:20 +02:00
Eddy Bruel
e71cf33c06 Bug 1271650 - Implement a C++ interface for DebuggerFrame.eval(WithBindings). r=jimb 2016-08-14 09:49:58 +02:00
Eddy Bruel
e430a1e3bd Bug 1271650 - Move EvaluateInEnv and DebuggerGenericEval. r=jimb 2016-08-14 09:49:54 +02:00
Eddy Bruel
d125232b98 Bug 1271650 - DebuggerGenericEval should return both trap status and value. r=jimb 2016-08-14 09:49:09 +02:00
David Anderson
45cab1b1db Initialize COM in the GPU process. (bug 1294350 part 2, r=aklotz) 2016-08-13 12:25:26 -07:00
David Anderson
7d910bdf74 Ensure gfx-related services are started and shutdown properly in the GPU process. (bug 1294350 part 1, r=rhunt) 2016-08-13 12:25:18 -07:00
David Anderson
4257f1eff2 Remove fallback to WARP, but keep the force pref for testing. (bug 1294343, r=jrmuizel) 2016-08-13 12:18:50 -07:00
David Anderson
e12140216e Don't use nsIGfxInfo in CompositorD3D11. (bug 1294339, r=mattwoodrow) 2016-08-13 12:12:51 -07:00
David Anderson
eade90a86b Clean up D3D11 device creation. (bug 1292680, r=mattwoodrow) 2016-08-13 12:04:03 -07:00
Sebastian Hengst
90c084383b merge mozilla-central to mozilla-inbound. r=merge a=merge 2016-08-13 13:50:00 +02:00
Sebastian Hengst
9ec085584d Backed out changeset 0c4f81bc2b52 (bug 1252224) for permafailing in browser_ext_browserAction_popup_resize.js on Linux after merge to mozilla-central. r=backout a=backout
MozReview-Commit-ID: KUARkl7QxB7
2016-08-13 13:27:15 +02:00
Sebastian Hengst
e079c23731 Backed out changeset 6cd485867a7d (bug 1293845) for test failure in test_sab_with_webgl.html on OSX. r=backout 2016-08-13 12:39:05 +02:00
Sebastian Hengst
765223d123 Backed out changeset ca7b62d9efb7 (bug 1293845) 2016-08-13 12:38:25 +02:00
Sebastian Hengst
78c59974bb Backed out changeset b2cad6d22d75 (bug 1293845) 2016-08-13 12:38:21 +02:00
Sebastian Hengst
d8a319fe07 Backed out changeset 2b9a31603e34 (bug 1293845) 2016-08-13 12:38:17 +02:00
Tooru Fujisawa
0d2445332d Bug 1294102 followup - Fix reftest.list syntax. r=bustage 2016-08-13 18:30:23 +09:00
Tooru Fujisawa
f313312659 Bug 1291488 - Do not apply |margin: 0px| and |padding: 0px| to text-link outside of description in about dialog. r=dao 2016-08-13 15:34:57 +09:00
Tooru Fujisawa
b9da2b39b7 Bug 1294102 - Use the original height that is not affected by the top to decide the button style on OSX. r=mstange 2016-08-13 15:34:57 +09:00
Robert Strong
f829bffa9d Bug 1287176 test code - Status file not written for staging errors. r=mhowell 2016-08-12 22:52:45 -07:00
Robert Strong
fffeb50078 Bug 1287176 client code - Status file not written for staging errors. r=mhowell 2016-08-12 22:52:24 -07:00
Jim Chen
ac1b87c36f Bug 1292323 - Optimize native call dispatching; r=snorp
Refactor the dispatching code to be more streamlined, and add two
optimizations to the way we dispatch a call:

* avoid a pair of unnecessary calls to add/delete the global class ref,
  when dispatching a static call to the Gecko thread without a class ref
  parameter.

* avoid an extra allocation when dispatching to a proxy function.
2016-08-12 23:15:53 -04:00
Jim Chen
0ca0344ec2 Bug 1292323 - Merge NativeStubImpl into NativeStub; r=snorp
Merge all the NativeStubImpl specializations in jni/Natives.h into one
NativeStub, which makes it more organized and facilitates code sharing.
2016-08-12 23:15:53 -04:00
Jim Chen
347603e672 Bug 1292323 - Update usage of UsesNativeCallProxy; r=snorp
Remove uses of UsesNativeCallProxy and UsesGeckoThreadProxy, now that
they are not needed.

Remove cases where we had to invoke a call in a proxy, because the call
is now specified to be invoked directly in the WrapForJNI annotation,
without the need to go through the proxy.

For SmsManager and AlarmReceiver, we no longer need to manually dispatch
everything to the Gecko thread because that's now handled automatically.
2016-08-12 23:15:53 -04:00
Jim Chen
36628f0198 Bug 1292323 - Implement JNI thread checking and dispatching; r=snorp
Implement checking the calling thread of a JNI call based on the
calledFrom attribute set in WrapForJNI. Also implement automatic call
dispatching based on the dispatchTo attribute set in WrapForJNI. This
eliminates the use of UsesNativeCallProxy and UsesGeckoThreadProxy.
2016-08-12 23:15:52 -04:00
Jim Chen
7b6a176b60 Bug 1292323 - Update auto-generated bindings; r=me 2016-08-12 23:15:52 -04:00
Jim Chen
0bd1b97d16 Bug 1292323 - Update annotationProcessor to reflect WrapForJNI changes; r=snorp
Update the code generator and related classes in annotation processor to
use the new WrapForJNI flags. Also add some more sanity checking to make
sure the flags are used correctly.
2016-08-12 23:15:52 -04:00
Jim Chen
c800eaab74 Bug 1292323 - Update WrapForJNI usages; r=snorp
Replace old flags in WrapForJNI usages with new flags. The calledFrom
and dispatchTo flags are set based on whether the method is native or
non-native, and how the method is used.

Also fix testEventDipatcher to respect NativeJSObject's calledFrom =
"gekco" flag, by moving a test to Gecko thread.
2016-08-12 23:15:52 -04:00
Jim Chen
4840d7e831 Bug 1292323 - Clean up WrapForJNI and add calledFrom and dispatchTo attributes; r=snorp
WrapForJNI has some flags that are obsolete or confusing. Clean it up so
that there are fewer but more meaningful flags. Add a "calledFrom" flag
to indicate the intended calling thread and add a "dispatchTo" flag to
indicate where a method call may be automatically dispatched.
2016-08-12 23:15:52 -04:00
Jim Chen
75ce4d9aaa Bug 1292323 - Move Java UI thread registration to mozglue; r=snorp
We need to register the Java UI thread in native code very early in the
startup process, before libxul registers its JNI entry points. So it
makes sense to register the Java UI thread in mozglue.
2016-08-12 23:15:52 -04:00
Sander Mathijs van Veen
a53ae2d4c6 Bug 1293258 - AddressSanitizer: attempting double-free on 0x614000342640 [@ __interceptor_free] or Crash [@ jemalloc_crash] with TypedArray. r=jandem
--HG--
extra : amend_source : 686366337724968374c1a981e1031a02b7ede964
2016-08-12 21:38:45 -04:00
Glenn Randers-Pehrson
dc0ab41166 Bug 1288588 - Exit on bad CRC in fcTL or fdAT chunk in an APNG file. r=jrmuizel 2016-08-12 21:31:31 -04:00
Jeff Gilbert
6434d6daf4 Bug 1293845 - Update tests to handle new webidl.
MozReview-Commit-ID: 7hcluLAw7gx
2016-08-12 18:08:00 -07:00
Jeff Gilbert
70dfbdbec9 Bug 1293845 - Handle zero-size TexSubImage. - r=mtseng
MozReview-Commit-ID: J4cT3oqPTLa
2016-08-12 18:07:57 -07:00
Jeff Gilbert
fb75e3bc05 Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-12 18:07:54 -07:00
Jeff Gilbert
9b18a330b4 Bug 1293845 - Update webidl to be forward-compatible with final webgl2 webidl. - r=mrbkap
MozReview-Commit-ID: DrUZODpNSml
2016-08-12 18:07:51 -07:00
Jeff Walden
0c5ac6c90f Bug 1294537 - Don't tag |void* p| in the don't-nullcheck placement operator new overload as MOZ_NONNULL, because that makes a double-checking assertion of non-nullness into a compiler warning. r=froydnj
--HG--
extra : rebase_source : b53a1c5dce924ea030f54bb41e13baf27cd3d823
2016-08-12 18:02:03 -07:00
Jeff Gilbert
843dfc0dea Bug 1290634 - Handle out-of-bounds copyTexImage on D3D9 ANGLE. - r=jerry
MozReview-Commit-ID: DLqI714FBuv
2016-08-12 17:48:17 -07:00
Jeff Gilbert
7129a3b287 Bug 1290634 - Use idealUnpack with CopyTexImage, and always respec now that ZeroTextureData doesn't support respec. - r=mtseng
MozReview-Commit-ID: HYzTfzLxF3X
2016-08-12 17:48:14 -07:00
Jeff Gilbert
02edeadd27 Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-12 17:48:11 -07:00
Wes Kocher
b1e2d2ad52 Merge m-c to inbound, a=merge 2016-08-12 16:29:24 -07:00
Wes Kocher
b44cee8b2a Merge fx-team to central, a=merge CLOSED TREE 2016-08-12 14:37:49 -07:00
Wes Kocher
e9097643d5 Merge inbound to central, a=merge 2016-08-12 13:44:29 -07:00
Wes Kocher
12b12b37dc Merge autoland to central, a=merge 2016-08-12 09:45:06 -07:00
Alexander Surkov
0a78fab1e3 Bug 1294086 - remove debugging printf 2016-08-12 10:20:45 -04:00
Florian Quèze
d99b80b960 Bug 1294680 - instrument the 'Settings page' button, r=past. 2016-08-12 16:16:41 +02:00
Florian Quèze
dcc99335f3 Bug 1294680 - remove the engine drop down, r=past. 2016-08-12 16:16:39 +02:00
J. Ryan Stinnett
67d38931a7 Bug 1250171 - Remove *_PER_USER_FLAG probes from DevTools. r=clarkbw
MozReview-Commit-ID: 2nZxPYrKKai
2016-08-12 06:24:14 -05:00
Jan de Mooij
536f87ca97 Bug 1294404 - Merge PerThreadDataFriendFields and ContextFriendFields, clean up APIs. r=terrence,bz 2016-08-12 11:39:16 +02:00
Heiher
d1eb5b4c7b Bug 1294367 - IonMonkey: MIPS: Move result after overflow checking passed. r=arai
---
 js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp  | 4 ++--
 js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
2016-08-12 16:08:40 +08:00