Commit Graph

455065 Commits

Author SHA1 Message Date
Jim Chen
61ae086c99 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
7e8d79c4ee 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
827f34efc0 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
325ee148ee 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
43d7399cf2 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
ffdf60106d 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
009677f91f 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
11f74c6395 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
490941e8d3 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
94b3e4800e 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
b869447037 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
df400b3573 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
2d8ba4fc1e 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
8583cbceaa Bug 1234744 - Fix build errors in ImageBitmap.h. r=roc
--HG--
extra : rebase_source : 6832c025216fd26cdd5932dc1a789b5080621380
2015-12-23 11:49:19 +08:00
JW Wang
2713c37af6 Bug 1233630 - Remove MediaDecoderStateMachine::AudioDecodedUsecs. r=kikuo. 2015-12-24 10:00:47 +08:00
Jason Duell
5c7810f1b0 Bug 1203430 - Intermittent crash in PNeckoChild::SendHTMLDNSPrefetch. r=jdm 2015-12-23 20:00:54 -05:00
Patrick McManus
736aaab8e3 Bug 1234591 - Use channel.asyncOpen2 within netwerk/test/unit/test_http2.js r=ckerschb 2015-12-23 17:46:31 -05:00
Patrick McManus
9f784d6ae1 Bug 1234366 - Convert netwerk/test/unit/test_spdy.js to use asyncOpen2 r=ckerschb 2015-12-23 17:36:33 -05:00
Daniel Holbert
01654b9711 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
95731c7f03 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
b919d97460 Bug 1234778: Mark all audio frames as keyframes. r=kentuckyfriedtakahe 2015-12-24 09:05:50 +11:00
Chris Manchester
45068b730c Bug 1229598 - Add a mode to browser-chrome tests to summarize per-test code coverage. r=ahal
--HG--
extra : commitid : 25ib6OSlxuz
2015-12-23 14:04:49 -08:00
Eitan Isaacson
f7492b24ab Bug 1211974 - Implement nsIObserver in SpeechDispatcherService. r=smaug 2015-12-23 13:44:11 -08:00
Aaron Klotz
f3dd15b3d3 Bug 1233237: Backout a882a8c92a28 for causing winsock connectivity problems; r=backout 2015-12-23 14:35:42 -07:00
Sylvestre Ledru
0c8832d24b 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
c748366850 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
0f12a580d4 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
ab68a2ae94 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.

--HG--
extra : rebase_source : 876bd6ab47ccd007dd15d5b34948ebf33aca4f16
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
4ac36bc255 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.

--HG--
extra : rebase_source : 7852f266a1ad505436c4c1607c17d542d81b2673
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
c265e4ff17 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.

--HG--
extra : rebase_source : 00fa414d32592d8d923d2413a9d0f2082fb899d0
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
314da1b881 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.

--HG--
extra : rebase_source : 7268170538aae82766d661f3936657f368c6363f
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
02e0bb6c58 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.

--HG--
extra : rebase_source : 01f65e7eac8c8c99fb6c869206d75d2e5875002b
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
8d6b23cb6b 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.

--HG--
extra : rebase_source : c7be47268c913134aa9b718000080e1d54a79f9f
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
2d7330a315 Bug 1233111 - Add a new ToUint8() function. r=efaust
This is needed for casting values into a SIMD.Uint8x16 lane.

--HG--
extra : rebase_source : 361feb40a7216cacf9e39c4e264b925cb06da540
2015-12-23 09:52:39 -08:00
Bill McCloskey
84f9789075 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
b9e31d597b Bug 1229552 - [webext] Add test for unregistration (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
755eaf9042 Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
87cc880767 Bug 1223240 - Make it easier to set up top-level protocols (r=jld) 2015-12-23 12:29:39 -08:00
Bill McCloskey
234f2a465f Bug 1213680 - Stop using picker by default when opening inspector (r=pbrosset) 2015-12-23 12:29:39 -08:00
Bill McCloskey
c15d73943a Bug 1224105 - [webext] Use <browser> element for background page (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
ecabf2935c Bug 1224105 - Allow windowless chrome docshells containing content docshells (r=smaug) 2015-12-23 12:29:39 -08:00
Bill McCloskey
a4a149fd8d 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
b6740878e7 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
3972c8300e 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
dd179ed223 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
9230279805 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
14c2c5cced Bug 1220681 P2 Test synthetic responses that trigger downloads. r=ehsan 2015-12-23 12:20:53 -08:00
Ben Kelly
0616535096 Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm 2015-12-23 12:20:53 -08:00
Patrick McManus
29ca4c0e9d Bug 1218297 - eventtokenbucket shutdown leak r=valentin 2015-12-23 10:47:13 -05:00
Patrick McManus
90c978fb27 Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu 2015-12-23 11:43:41 -05:00