Commit Graph

399140 Commits

Author SHA1 Message Date
Jim Chen
6032b19e9b Bug 1227706 - Remove unused GLController calls and events; r=snorp
Remove GLController calls and events in GeckoAppShell and GeckoEvent
that were made obsolete by the new native calls.
2015-12-23 22:03:34 -05:00
Jim Chen
7ed136b880 Bug 1227706 - Get rid of compositor singletons in nsWindow; r=snorp
Now that we properly support individual compositors for nsWindows, we
should get rid of the static singletons that held the compositor
objects.
2015-12-23 22:03:34 -05:00
Jim Chen
97742ebb77 Bug 1227706 - Implement nsWindow::GLControllerSupport; r=snorp
This patch adds native method implementations in GLControllerSupport to
manage compositor creation/pause/resume.
2015-12-23 22:03:34 -05:00
Jim Chen
37c52714f3 Bug 1227706 - Let GeckoView manage GLController instances; r=snorp
GLController instances are associated with a particular nsWindow, rather
than a particular View. Therefore, we need to let GeckoView manage
GLController instances, as part of GeckoView's handling of saving and
restoring states.
2015-12-23 22:03:34 -05:00
Jim Chen
4f33c5cc40 Bug 1227706 - Add native methods to GLController; r=snorp
One nsWindow will have one corresponding GLController, and using native
GLController methods instead of GeckoEvents lets us control the
compositor for each nsWindow separately.
2015-12-23 22:03:34 -05:00
Jim Chen
aca6a4eb06 Bug 1227706 - Rename nsWindow::Natives to nsWindow::GeckoViewSupport; r=snorp
GeckoViewSupport better reflects the purpose of the class and will match
the GLControllerSupport class that another patch is adding. This patch
also changes the way GeckoViewSupport is constructed in order to be more
encapsulating.
2015-12-23 22:03:34 -05:00
Jim Chen
682b337441 Bug 1227706 - Make EGL initialization static; r=snorp
GLController will no longer be a singleton, but we should keep
initializing EGL only once, so this patch makes EGL initialization
static.
2015-12-23 22:03:34 -05:00
Jim Chen
0315bb47a5 Bug 1227731 - Add ability to redirect proxied native calls; r=snorp
This patch adds a way to set the target of a proxied native call, so the
call goes to another C++ function / class member than the original
target.
2015-12-23 22:03:34 -05:00
Jim Chen
3f01663cd3 Bug 1227728 - Properly order queued native calls; r=snorp
Right now, code that queues native calls through GeckoThread can
encounter a race condition, after the GeckoThread state changes but
before we flush the existing queued calls.  In that case, the new call
will be made before existing queued calls are made, and the order of
calls is disrupted. This patch moves flushing existing calls to before
the state changes, to avoid this race condition.
2015-12-23 22:03:33 -05:00
Jim Chen
0d3def1392 Bug 1227727 - Remove geckoConnected method in LayerView; r=snorp
Right now LayerView depends on geckoConnected being called by GeckoApp
or GeckoView during its initialization. However, we can get rid of it
and let LayerView handle the task itself. As part of this change, screen
depth overriding is moved to native code in nsAppShell.
2015-12-23 22:03:33 -05:00
Jim Chen
f73723d923 Bug 1227727 - Destroy LayerView in GeckoView; r=snorp
Right now, we destroy LayerView as part of GeckoApp, but we should do it
from inside GeckoView.
2015-12-23 22:03:33 -05:00
Jim Chen
45fe3d456a Bug 1227719 - Autogenerate LayerRenderer.Frame; r=snorp
This patch adds auto-generated bindings for LayerRenderer.Frame, and
uses the new bindings in nsWindow, in place of the old manual bindings
in AndroidJavaWrappers.
2015-12-23 22:03:33 -05:00
Jean-Yves Avenard
cf09fd969f Bug 1234553: Always request 16 bits audio for libavcodec 53. r=kentuckyfriedtakahe
LibAV 0.8 produces rubbish floating point data. We had restricted LibAV 0.8 to produce 16 bits audio instead, unfortunately some ubuntu version appears to have bumped the minor version.
2015-12-24 13:53:37 +11:00
Ting-Yu Lin
bd367507a5 Bug 1234744 - Fix build errors in ImageBitmap.h. r=roc 2015-12-23 11:49:19 +08:00
JW Wang
2dcb704743 Bug 1233630 - Remove MediaDecoderStateMachine::AudioDecodedUsecs. r=kikuo. 2015-12-24 10:00:47 +08:00
Jason Duell
09e835b8b0 Bug 1203430 - Intermittent crash in PNeckoChild::SendHTMLDNSPrefetch. r=jdm 2015-12-23 20:00:54 -05:00
Patrick McManus
d743918eb2 Bug 1234591 - Use channel.asyncOpen2 within netwerk/test/unit/test_http2.js r=ckerschb 2015-12-23 17:46:31 -05:00
Patrick McManus
e78496812e Bug 1234366 - Convert netwerk/test/unit/test_spdy.js to use asyncOpen2 r=ckerschb 2015-12-23 17:36:33 -05:00
Daniel Holbert
313055111d Bug 1234707: Make nsDOMCSSValueList::AppendCSSValue() take an already_AddRefed arg (instead of a raw pointer, usually with refcount of 0). r=heycam 2015-12-23 16:25:43 -08:00
Ben Kelly
52818207b9 Bug 1231798 Mass disable custom-elements wpt tests since they are not actually testing anything currently. r=jgraham 2015-12-23 15:46:56 -08:00
Jean-Yves Avenard
34a85f41c5 Bug 1234778: Mark all audio frames as keyframes. r=kentuckyfriedtakahe 2015-12-24 09:05:50 +11:00
Chris Manchester
c6915ad943 Bug 1229598 - Add a mode to browser-chrome tests to summarize per-test code coverage. r=ahal 2015-12-23 14:04:49 -08:00
Eitan Isaacson
0a61d5d796 Bug 1211974 - Implement nsIObserver in SpeechDispatcherService. r=smaug 2015-12-23 13:44:11 -08:00
Aaron Klotz
88d4302972 Bug 1233237: Backout a882a8c92a28 for causing winsock connectivity problems; r=backout 2015-12-23 14:35:42 -07:00
Sylvestre Ledru
2969753b16 Bug 1047395 - Add a link to the release notes from the about page, fix the alignment r=florian 2015-12-23 22:07:50 +01:00
Sylvestre Ledru
c98de7eded Bug 1047395 - Add a link to the release notes from the about page r=florian 2015-12-23 20:38:31 +01:00
Andrew McCreight
720e278561 Backed out changeset 18eec0849a1f (Bug 1195295) for leaking.
This changeset is causing shutdown leaks (bug 1234697 and bug 1220517).
2015-12-23 15:59:15 -05:00
Jakob Stoklund Olesen
f411ca0548 Bug 1233111 - Implement saturating arithmetic for SIMD. r=bbouvier
The functions addSaturate() and subSaturate() are defined on the 8x16 and 16x8
integer SIMD types only.

Theee are no 32x4 variants defined in SIMD.js because current hardware doesn't
support it directly.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
aa0a920f06 Bug 1233111 - Implement SIMD shiftRightByScalar(). r=bbouvier
This is the right shift function that the SIMD.js spec requires. The old
shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() functions will go
away.

These functions perform an arithmetic shift for signed types and a logical
shift for unsigned types.

Add support to Odin and Ion too, at least for the Int32x4 variant.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
ae0cac3763 Bug 1233111 - Add ecma_7 shift tests. r=bbouvier
Fix a bug in ShiftRightArithmetic when the underlying Elem type is unsigned.
Need to cast to a signed type to so it sign-extends to int when shifting.

Implement both logical and arithmetic right shift implementations for both
signed and unsigned integers. This is needed to test our current implementation
where both signed and unsigned SIMD types have the two
shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() functions.

Soon, shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() will be
replaced by a single shiftRightByScalar() function whose behavior is dependent
on the signedness of the underlying type.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
6c5cba83db Bug 1233111 - Add unsigned SIMD types to interpreter. r=bbouvier
- Add new types UInt8x16, UInt16x8, UInt32x4 with all the boilerplate.
- Add corresponding conversion and bitcast functions to existing types.
- Add tests/ecma_7/SIMD tests for all new functions. Mostly boilerplate.
- Add full type coverage in ToSource.js. Fix existing SIMD types that were
  broken.
- Use shared test vectors for all the 32x4 integer binary-op test cases.
- Fix a bug in the 32-bit multiplication reference implementation for Int32x4
  and Uint32x4. A simple 'a*b' double multiplication loses precision to rounding
  for some inputs.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
8adf60da49 Bug 1233111 - Share method lists for SIMD types. r=bbouvier
The lists TypeDescriptorMethods and TypedObjectMethods are identical for all
SIMD types, so save a bit of memory and source code by sharing a single list.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
d2839ef567 Bug 1233111 - Remove geometry altering SIMD conversions. r=bbouvier
In the current SIMD.js spec, value conversions are only defined between types
with the same number of lanes:

  Float32x4.fromInt32x4()
  Float32x4.fromUInt32x4()
  Int32x4.fromFloat32x4()
  UInt32x4.fromFloat32x4()

Remove existing conversion operators between vectors with different numbers of
lanes:

  Int32x4.fromFloat64x2()
  Float32x4.fromFloat64x2()
  Float64x2.fromInt32x4()
  Float64x2.fromFloat32x4()

Add a static assertion to FuncConvert.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
753ed45716 Bug 1233111 - Add a new ToUint8() function. r=efaust
This is needed for casting values into a SIMD.Uint8x16 lane.
2015-12-23 09:52:39 -08:00
Bill McCloskey
74fc2770d5 Bug 1205886 - [webext] Allow content scripts to do cross-origin XHRs if they have permission (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
2bdd8818a2 Bug 1229552 - [webext] Add test for unregistration (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
994bef148c Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
af46afe715 Bug 1223240 - Make it easier to set up top-level protocols (r=jld) 2015-12-23 12:29:39 -08:00
Bill McCloskey
db41c07a5f Bug 1213680 - Stop using picker by default when opening inspector (r=pbrosset) 2015-12-23 12:29:39 -08:00
Bill McCloskey
f112fccc0f Bug 1224105 - [webext] Use <browser> element for background page (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
2d207be517 Bug 1224105 - Allow windowless chrome docshells containing content docshells (r=smaug) 2015-12-23 12:29:39 -08:00
Bill McCloskey
05ed92a7f4 Bug 1211401 - Use global message manager as parent of <iframe mozbrowser> MM (r=smaug,ahal) 2015-12-23 12:29:39 -08:00
Ben Kelly
223cb28553 Bug 1220681 P6 Use clients.claim() in browser_download.js to avoid worker unregister race. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
80e942d104 Bug 1220681 P5 Don't double suspend parent channel during synthesized divert to parent. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
5d318d35fd Bug 1220681 P4 Automatically suspend the parent channel after synthesizing the response for diverison. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
b2d4063f89 Bug 1220681 P3 Delay diversion on parent side until response head has been synthesized. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
682d9b7d03 Bug 1220681 P2 Test synthetic responses that trigger downloads. r=ehsan 2015-12-23 12:20:53 -08:00
Ben Kelly
70f6cd6b79 Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm 2015-12-23 12:20:53 -08:00
Patrick McManus
ef174f147a Bug 1218297 - eventtokenbucket shutdown leak r=valentin 2015-12-23 10:47:13 -05:00
Patrick McManus
a56ebe0754 Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu 2015-12-23 11:43:41 -05:00