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

499951 Коммитов

Автор SHA1 Сообщение Дата
David Anderson 4664a9b713 Finish initializing TabChild rendering state even if compositing IPC is lost. (bug 1314520 part 2, r=billm) 2016-11-14 14:58:22 -08:00
David Anderson 35a5efddda Don't trigger a ProcessingError when we fail to send a PAPZConstructor. (bug 1314520 part 1, r=rhunt) 2016-11-14 14:58:18 -08:00
David Anderson 4d70e0e711 Fix MessageChannel when constructed with a broken Transport. (bug 1316473, r=billm) 2016-11-14 14:54:00 -08:00
David Major a70b85d44a Bug 1317471: Add the sandbox's interceptors_64.cc to Windows ASan blacklist. r=froydnj DONTBUILD
For the same reason as bug 1200740#c0: this code runs before ASan initializes shadow memory.

MozReview-Commit-ID: 9fIB6tyfSEl
2016-11-14 16:43:51 -06:00
Jeff Gilbert (:jgilbert) 7fa6343d06 Bug 1308057 - GPU_DISJOINT is false unless we have the ext. - r=ethlin
MozReview-Commit-ID: vvBJZV4DcW
2016-11-14 14:05:25 -08:00
Jeff Gilbert (:jgilbert) 42a8668d88 Bug 1308057 - Use pointer-to-query-slot for is-active status. DeleteQuery should clear its slot if it has one. - r=ethlin
MozReview-Commit-ID: 9xY6NzwKOz3
2016-11-14 14:05:19 -08:00
Jeff Gilbert (:jgilbert) ae22cd7d19 Bug 1308057 - GetQuery(CURRENT_QUERY) should return null for target mismatch, for targets that share the same slot. - r=ethlin
MozReview-Commit-ID: 27HPXBjBQ6k
2016-11-14 14:05:14 -08:00
Jeff Gilbert (:jgilbert) 175d62e1af Bug 1308057 - Fix errors. - r=ethlin
MozReview-Commit-ID: I7bd7xOa2YR
2016-11-14 14:05:08 -08:00
Jeff Gilbert (:jgilbert) 08d994ea5d Bug 1308057 - WebGL objects should not be no-interface. - r=qdot
MozReview-Commit-ID: E4ez6Km9fQl
2016-11-14 14:05:03 -08:00
Jeff Gilbert (:jgilbert) da9ef5ebbd Bug 1308057 - Update tests. - r=ethlin
MozReview-Commit-ID: Fl3ofikbPdP
2016-11-14 14:04:57 -08:00
Jeff Gilbert (:jgilbert) ce6d0809a4 Bug 1308057 - EXT_disjoint_timer_query is no longer Draft. - r=ethlin
MozReview-Commit-ID: ETtrxQcwPgg
2016-11-14 14:04:52 -08:00
Jeff Gilbert (:jgilbert) 79d1dbc149 Bug 1308057 - Update bindings. - r=qdot
MozReview-Commit-ID: AA79s0qaRzT
2016-11-14 14:04:47 -08:00
Jeff Gilbert (:jgilbert) b054199751 Bug 1308057 - Merge WebGLTimerQuery into WebGLQuery. - r=ethlin
MozReview-Commit-ID: 88b8DLd2uJ6
2016-11-14 14:04:41 -08:00
Jeff Gilbert (:jgilbert) bd6c33a960 Bug 1308057 - retvals should start null, and missing return. - r=ethlin
MozReview-Commit-ID: FEOoKQBy7Hk
2016-11-14 14:04:35 -08:00
Jeff Gilbert (:jgilbert) 339b4f9e3a Bug 1308057 - Convert WebGLExtensionDisjointTimerQuery.cpp to 4-space.
MozReview-Commit-ID: A9llSqU5ghR
2016-11-14 14:04:30 -08:00
Jeff Gilbert (:jgilbert) d945e6a8f8 Bug 1316778 - Update IDL and bindings. - r=qdot
MozReview-Commit-ID: COMYaZMv5GI
2016-11-14 14:00:17 -08:00
Jeff Gilbert (:jgilbert) f753eb7394 Bug 1316778 - Update ES3 compressed format ext name to _etc. - r=ethlin
MozReview-Commit-ID: CEBhyYXkLKa
2016-11-14 14:00:12 -08:00
Jeff Gilbert (:jgilbert) d4f208dbfa Bug 1316829 - DataViews are part of ArrayBufferView. - r=waldo
MozReview-Commit-ID: L0Xauoo2nJh
2016-11-14 13:02:48 -08:00
James Willcox 7a2672f6a2 Bug 1314974 - Make GeckoView on Android work again r=jchen
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/ScreenManagerHelper.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/ScreenManagerHelper.java
2016-11-14 14:55:29 -06:00
Ben Kelly a0edcc6fcb Bug 1316837 P2 Verify that navigating to a window with an iframe right after sync xhr does not trigger assertions. r=smaug 2016-11-14 12:51:44 -08:00
Ben Kelly 4332e670f2 Bug 1316837 P1 Only allow suspend/resume/freeze/thaw on current inner windows. r=smaug 2016-11-14 12:51:43 -08:00
J. Ryan Stinnett 4d124db085 Bug 1277805 - Longer timeout for browser_toolbox_tool_remote_reopen.js. r=me
MozReview-Commit-ID: ClRBY52rBDF
2016-11-14 14:30:05 -06:00
David Anderson 2c5e03e62e Don't reset devices for each tab when the compositor resets. (bug 1316788, r=rhunt) 2016-11-14 11:47:01 -08:00
David Anderson c7859ea378 Remove assertions in TextureClient that IPC is open. (bug 1316599, r=mattwoodrow) 2016-11-14 11:46:34 -08:00
Eric Rahm fa2367d041 Bug 1316732 - Remove TestMinStringAPI. r=bsmedberg
This GeckoSimpleProgram is not run and tests a feature we're removing.

MozReview-Commit-ID: FWZdQTZchf3
2016-11-14 11:33:47 -08:00
malayaleecoder f70dec4c3b Bug 1317174 - Fix browser_bug719271.js to run multiple times in a single session: fix eslint failures. r=eslint-fix 2016-11-15 00:28:27 +05:30
Jonathan Kew ea50f33588 Bug 1316262 - Guard against failure applying font-size-adjust to tiny font sizes with GDI backend, where metrics round to zero so we cannot compute aspect ratio. r=mchang 2016-11-14 13:42:06 +00:00
malayaleecoder 92c775f58f Bug 1317174 - Fix browser_bug719271.js to run multiple times in a single session r=jmaher
MozReview-Commit-ID: 6ekLWUV11pt
2016-11-14 23:45:14 +05:30
Jonathan Watt 7222698162 Bug 1316750, part 3 - Add special case code to handle CAIRO_SURFACE_TYPE_WIN32 in PrintTarget::GetReferenceDrawTarget. r=edwin 2016-11-14 17:32:20 +00:00
Jonathan Watt 6330bf5cb7 Bug 1316750, part 2 - Add CairoContentToCairoFormat helper to HelpersCairo.h. r=edwin 2016-11-14 17:32:17 +00:00
David Major 7304bbd490 Bug 1314169: Move the WasmFaultHandler to last priority on Windows ASan builds. r=luke
Win64 ASan relies on a VectoredExceptionHandler to create shadow memory regions on demand. If WasmFaultHandler gets the exception first, it can itself fault while looking at shadow memory, leading to an infinite recursion.

Unfortunately, due to an ordering problem, we also have to disable the MemoryProtectionExceptionHandler when we do this.

MozReview-Commit-ID: aHwnBFI6dG

--HG--
extra : rebase_source : 77365c9f3afc9077a52df547c3372653a9d36afb
2016-11-14 10:37:47 -06:00
Jonathan Watt fd2554eca4 Bug 1316750 - Fix CAIRO_SURFACE_TYPE_WIN32 warnings as errors case. r=me CLOSED TREE 2016-11-14 11:52:50 +00:00
Jonathan Kew 7dac7f4e74 Bug 1315642 - Check that font resource decoded/sanitized by OTS is a usable OpenType format (in particular, we do NOT yet support TrueType Collection resources, even though OTS can decode them). r=jrmuizel 2016-11-14 14:54:23 +00:00
Jonathan Watt f1b0a13934 Bug 1316750 - Back out the CAIRO_SURFACE_TYPE_WIN32 code to fix bustage. r=me CLOSED TREE 2016-11-14 10:54:11 +00:00
Nicolas B. Pierron 384aa6e996 Bug 1316830 - FoldLinearArith: Do not set new additions as truncated by default. r=h4writer 2016-11-14 15:18:07 +00:00
Jonathan Watt 64ba82b83c Bug 1316299 - Invert broken logic in DrawTargetSkia::CreateSimilarDrawTarget's warning. r=lsalzman 2016-11-07 15:38:41 +00:00
Jonathan Watt a83ad806e9 Bug 1317295 - Record PrintTarget::GetReferenceDrawTarget DrawTargets. r=edwin 2016-11-04 13:42:18 +00:00
Jonathan Watt ff5502c156 Bug 1316750 - Add special case handling for CAIRO_SURFACE_TYPE_WIN32 and CAIRO_SURFACE_TYPE_QUARTZ in PrintTarget::GetReferenceDrawTarget. r=edwin 2016-11-03 09:47:19 +00:00
Paolo Amadini 5543a483f7 Bug 1316311 - Do not show the login capture doorhanger during generic mochitests. r=MattN
MozReview-Commit-ID: 6TFACISm9Vb

--HG--
extra : source : a29ad5792c609d1e41a3a1391b4c11f26729b35a
2016-11-10 13:47:07 +01:00
Paolo Amadini 10001144bc Bug 1296322 - X button is vertically misaligned on the permission dropdown. r=dao
MozReview-Commit-ID: LkAhzffsc6g

--HG--
extra : rebase_source : 0df846d30e0a848df010fbd5ff6b303fdf555c3c
2016-11-10 11:47:09 +01:00
Jim Chen ff3982e634 Bug 1307820 - Implement per-GeckoView messaging; r=snorp r=sebastian
Bug 1307820 - 1a. Move GeckoApp EventDispatcher to GeckoView; r=snorp

Make it a GeckoView-specific EventDispatcher instead of
GeckoApp-specific, so that GeckoView consumers can benefit from a
per-view EventDispatcher. In addition, a few events like Gecko:Ready are
moved back to the global EventDispatcher because that makes more sense.

Bug 1307820 - 1b. Don't use GeckoApp EventDispatcher during inflation; r=snorp

During layout inflation, we don't yet have GeckoView and therefore the
GeckoView EventDispatcher, so we should not register events until later,
typically during onAttachedToWindow.

Bug 1307820 - 2. Introduce GeckoBundle; r=snorp

The Android Bundle class has several disadvantages when used for holding
structured data from JS.

The most obvious one is the differentiation between int and double,
which doesn't exist in JS. So when a JS number is converted to either a
Bundle int or double, we run the risk of making a wrong conversion,
resulting in a type mismatch exception when Java uses the Bundle. This
extends to number arrays from JS.

There is one more gotcha when using arrays. When we receive an empty
array from JS, there is no way for us to determine the type of the
array, because even empty arrays in Java have types. We are forced to
pick an arbitrary type like boolean[], which can easily result in a type
mismatch exception when using the array on the Java side.

In addition, Bundle is fairly cumbersome, and we cannot access the inner
structures of Bundle from Java or JNI, making it harder to use.

With these factors in mind, this patch introduces GeckoBundle as a
better choice for Gecko/Java communication. It is almost fully
API-compatible with the Android Bundle; only the Bundle array methods
are different. It resolves the numbers problem by performing conversions
if necessary, and it is a lot more lightweight than Bundle.

Bug 1307820 - 3. Convert BundleEventListener to use GeckoBundle; r=snorp

Convert BundleEventListener from using Bundle to using GeckoBundle.
Because NativeJSContainer still only supports Bundle, we do an extra
conversion when sending Bundle messages, but eventually, as we eliminate
the use of NativeJSContainer, that will go away as well.

Bug 1307820 - 4. Introduce EventDispatcher interfaces; r=snorp

Introduce several new XPCOM interfaces for the new EventDispatcher API,
these interfaces are mostly mirrored after their Java counterparts.

* nsIAndroidEventDispatcher is the main interface for
  registering/unregistering listeners and for dispatching events from
  JS/C++.

* nsIAndroidEventListener is the interface that JS/C++ clients implement
  to receive events.

* nsIAndroidEventCallback is the interface that JS/C++ clients implement
  to receive responses from dispatched events.

* nsIAndroidView is the new interface that every window receives
  that is specific to the window/GeckoView pair. It is passed to chrome
  scripts through window arguments.

Bug 1307820 - 5. Remove EventDispatcher references from gfx code; r=snorp

EventDispatcher was used for JPZC, but NPZC doesn't use it anymore.

Bug 1307820 - 6. General JNI template improvements; r=snorp

This patch includes several improvements to the JNI templates.

* Context::RawClassRef is removed to avoid misuse, as Context::ClassRef
  should be used instead.

* Fix a compile error, in certain usages, in the DisposeNative overload
  in NativeStub.

* Add Ref::IsInstanceOf and Context::IsInstanceOf to mirror the
  JNIEnv::IsInstanceOf call.

* Add Ref::operator* and Context::operator* to provide an easy way to
  get a Context object.

* Add built-in declarations for boxed Java objects (e.g. Boolean,
  Integer, etc).

* Add ObjectArray::New for creating new object arrays of specific types.

* Add lvalue qualifiers to LocalRef::operator= and GlobalRef::operator=,
  to prevent accidentally assigning to rvalues. (e.g.
  `objectArray->GetElement(0) = newObject;`, which won't work as intended.)

Bug 1307820 - 7. Support ownership through RefPtr for native JNI objects; r=snorp

In addition to direct ownership and weak pointer ownership, add a third
ownership model where a native JNI object owns a RefPtr that holds a
strong reference to the actual C++ object. This ownership model works
well with ref-counted objects such as XPCOM objects, and is activated
through the presence of public members AddRef() and Release() in the C++
object.

Bug 1307820 - 8. Implement Gecko-side EventDispatcher; r=snorp

Add a skeletal implementation of EventDispatcher on the Gecko side.
Each widget::EventDispatcher will be associated with a Java
EventDispatcher, so events can be dispatched from Gecko to Java and vice
versa. AndroidBridge and nsWindow will implement
nsIAndroidEventDispatcher through widget::EventDispatcher.

Other patches will add more complete functionality such as
GeckoBundle/JSObject translation and support for callbacks.

Bug 1307820 - 9. Implement dispatching between Gecko/Java; r=snorp

Implement translation between JSObject and GeckoBundle, and use that for
dispatching events from Gecko to Java and vice versa.

Bug 1307820 - 10. Implement callback support; r=snorp

Implement callback support for both Gecko-to-Java events and
Java-to-Gecko events.

For Gecko-to-Java, we translate nsIAndroidEventCallback to a Java
EventCallback through NativeCallbackDelegate and pass it to the Java
listener.

For Java-to-Gecko, we translate EventCallback to a
nsIAndroidEventCallback through JavaCallbackDelegate and pass it to the
Gecko listener.  There is another JavaCallbackDelegate on the Java side
that redirects the callback to a particular thread. For example, if the
event was dispatched from the UI thread, we make sure the callback
happens on the UI thread as well.

Bug 1307820 - 11. Add BundleEventListener support for Gecko thread; r=snorp

Add support for BundleEventListener on the Gecko thread, so that we can
use it to replace any existing GeckoEventListener or NativeEventListener
implementations that require the listener be run synchronously on the
Gecko thread.

Bug 1307820 - 12. Add global EventDispatcher in AndroidBridge; r=snorp

Add an instance of EventDispatcher to AndroidBridge to act as a global
event dispatcher.

Bug 1307820 - 13. Add per-nsWindow EventDispatcher; r=snorp

Add an instance of EventDispatcher to each nsWindow through an
AndroidView object, which implements nsIAndroidView. The nsIAndroidView
is passed to the chrome script through the window argument when opening
the window.

Bug 1307820 - 14. Update auto-generated bindings; r=me

Bug 1307820 - 15. Update testEventDispatcher; r=snorp

Update testEventDispatcher to include new functionalities in
EventDisptcher.

* Add tests for dispatching events to UI/background thread through
  nsIAndroidEventDispatcher::dispatch.

* Add tests for dispatching events to UI/background thread through
  EventDispatcher.dispatch.

* Add tests for dispatching events to Gecko thread through
  EventDispatcher.dispatch.

Each kind of test exercises both the global EventDispatcher through
EventDispatcher.getInstance() and the per-GeckoView EventDispatcher
through GeckoApp.getEventDispatcher().
2016-11-14 21:29:50 +08:00
Olli Pettay 40390feb7f Bug 1317030 - Removing/reattaching an element from the DOM triggers spurious mouseenter events, r=masayuki
--HG--
extra : rebase_source : 16852ef14f57b5133484db9a03bad5c4be78740b
2016-11-14 13:19:11 +02:00
Andrea Marchesini 9f4ca5a041 Bug 1310483 - Implement nsIURIWithQuery for having query part in simple URI, r=valentin 2016-11-14 13:04:33 +01:00
Jonathan Kew b809e13f8d Bug 1281448 - part 1+2 - Update character property table generator script for Unicode 9 (in particular, security/xidmodifications.txt is replaced by security/IdentifierStatus.txt and IdentifierType.txt), and adjust APIs to fit the new identifier-type property model; update the generated data files. r=m_kato 2016-11-14 09:23:49 +00:00
Nicolas B. Pierron 40ea799982 Bug 1314614 - Replace GetCurrentProcessId calls by getpid. r=h4writer 2016-11-14 11:18:14 +00:00
Gijs Kruitbosch 43556f1270 Bug 1313751 - fix direction of URLs and/or page titles in a number of UI elements, r=enndeakin
MozReview-Commit-ID: KmWeWD0MLBM

--HG--
extra : rebase_source : 49f110627d6da1eab1c70c8f37aaeaef1d0bacfa
2016-11-08 17:20:05 +00:00
Sebastian Hengst 4f23e5acc2 Backed out changeset 5d9a785a37c4 (bug 1281448) for Android bustage. r=backout 2016-11-14 10:45:52 +01:00
Matt Woodrow a78fd07ed0 Bug 1315141 - Enable OOP video decoding for Nightly builds. r=cpearce 2016-11-08 16:07:45 +13:00
Carsten "Tomcat" Book b2a4dc4f2f Merge mozilla-central to mozilla-inbound 2016-11-14 10:35:18 +01:00
Jonathan Kew 51e4a42011 Bug 1281448 - part 1+2 - Update character property table generator script for Unicode 9 (in particular, security/xidmodifications.txt is replaced by security/IdentifierStatus.txt and IdentifierType.txt), and adjust APIs to fit the new identifier-type property model; update the generated data files. r=m_kato 2016-11-14 09:23:49 +00:00