Commit Graph

430895 Commits

Author SHA1 Message Date
Kris Maglione
3531e0dc55 Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
MozReview-Commit-ID: E5G0GmVhzLh
2016-02-26 17:56:30 -08:00
Nicholas Nethercote
8f3c6e7c32 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%.
2016-08-12 17:36:22 +10:00
465213526d Bug 1291685 - Fix regression caused by bug 1271650. r=jimb 2016-08-14 09:54:20 +02:00
80c35a0fff Bug 1271650 - Implement a C++ interface for DebuggerFrame.eval(WithBindings). r=jimb 2016-08-14 09:49:58 +02:00
311e2dade7 Bug 1271650 - Move EvaluateInEnv and DebuggerGenericEval. r=jimb 2016-08-14 09:49:54 +02:00
5691593d96 Bug 1271650 - DebuggerGenericEval should return both trap status and value. r=jimb 2016-08-14 09:49:09 +02:00
David Anderson
15efce7005 Initialize COM in the GPU process. (bug 1294350 part 2, r=aklotz) 2016-08-13 12:25:26 -07:00
David Anderson
ae44ebbb23 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
7181628c60 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
ad686ef6cf Don't use nsIGfxInfo in CompositorD3D11. (bug 1294339, r=mattwoodrow) 2016-08-13 12:12:51 -07:00
David Anderson
26e2215c39 Clean up D3D11 device creation. (bug 1292680, r=mattwoodrow) 2016-08-13 12:04:03 -07:00
Sebastian Hengst
6d17717bec merge mozilla-central to mozilla-inbound. r=merge a=merge 2016-08-13 13:50:00 +02:00
Sebastian Hengst
10c1305bca 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
21f62ee327 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
e57392c50d Backed out changeset ca7b62d9efb7 (bug 1293845) 2016-08-13 12:38:25 +02:00
Sebastian Hengst
274e097394 Backed out changeset b2cad6d22d75 (bug 1293845) 2016-08-13 12:38:21 +02:00
Sebastian Hengst
b803c6ca5e Backed out changeset 2b9a31603e34 (bug 1293845) 2016-08-13 12:38:17 +02:00
Tooru Fujisawa
3604823ba9 Bug 1294102 followup - Fix reftest.list syntax. r=bustage 2016-08-13 18:30:23 +09:00
Tooru Fujisawa
92ca4e264d 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
f3d84b73d4 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
50c4ca52e8 Bug 1287176 test code - Status file not written for staging errors. r=mhowell 2016-08-12 22:52:45 -07:00
Robert Strong
2a38afcb1d Bug 1287176 client code - Status file not written for staging errors. r=mhowell 2016-08-12 22:52:24 -07:00
Jim Chen
d6c2933f29 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
ab270d028e 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
d7d6d9ceda 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
4c84dd5b3f 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
c405849f27 Bug 1292323 - Update auto-generated bindings; r=me 2016-08-12 23:15:52 -04:00
Jim Chen
b22825a884 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
7db9a1b7e6 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
d88b6c6fe2 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
f681b8818c 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
866fcbf92f Bug 1293258 - AddressSanitizer: attempting double-free on 0x614000342640 [@ __interceptor_free] or Crash [@ jemalloc_crash] with TypedArray. r=jandem 2016-08-12 21:38:45 -04:00
Glenn Randers-Pehrson
e1636363c1 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
de837ff088 Bug 1293845 - Update tests to handle new webidl.
MozReview-Commit-ID: 7hcluLAw7gx
2016-08-12 18:08:00 -07:00
Jeff Gilbert
518c3ca49e Bug 1293845 - Handle zero-size TexSubImage. - r=mtseng
MozReview-Commit-ID: J4cT3oqPTLa
2016-08-12 18:07:57 -07:00
Jeff Gilbert
deed5d4def Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-12 18:07:54 -07:00
Jeff Gilbert
3594764cb8 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
8103c69645 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 2016-08-12 18:02:03 -07:00
Jeff Gilbert
0807743eaa 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
2d6422ca12 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
3574abc05b Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-12 17:48:11 -07:00
Wes Kocher
de62d9c40d Merge m-c to inbound, a=merge 2016-08-12 16:29:24 -07:00
Wes Kocher
9247be04ab Merge fx-team to central, a=merge CLOSED TREE 2016-08-12 14:37:49 -07:00
Wes Kocher
b9d5a32ad5 Merge inbound to central, a=merge 2016-08-12 13:44:29 -07:00
Wes Kocher
fb066b6566 Merge autoland to central, a=merge 2016-08-12 09:45:06 -07:00
Alexander Surkov
335b0e62f6 Bug 1294086 - remove debugging printf 2016-08-12 10:20:45 -04:00
Florian Quèze
fe52d79334 Bug 1294680 - instrument the 'Settings page' button, r=past. 2016-08-12 16:16:41 +02:00
Florian Quèze
c0a9a7965a Bug 1294680 - remove the engine drop down, r=past. 2016-08-12 16:16:39 +02:00
J. Ryan Stinnett
6f8104c75f 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
a3f6c24c77 Bug 1294404 - Merge PerThreadDataFriendFields and ContextFriendFields, clean up APIs. r=terrence,bz 2016-08-12 11:39:16 +02:00