Commit Graph
166 Commits
Author SHA1 Message Date
Eugen Sawin d5b3689c83 Bug 1073224 - [3.2] Add fallback mechanics for device orientation sensors on Android (and fix style). r=snorp 2016-01-07 15:23:40 +01:00
Carsten "Tomcat" Book 9584b60b0c merge mozilla-inbound to mozilla-central a=merge 2016-01-07 11:50:57 +01:00
Andrzej Hunt 70324ac29a Bug 1228590 - Always show location bar when switching tabs r=margaret 2015-12-17 15:26:14 -08:00
Andrzej Hunt 36b97abc6f Bug 826400 - Part 3: Simplify homescreen shortcut creation, and use apple-touch-icon if available r=nalexander,jchen 2015-12-29 11:49:54 -08:00
Andrzej Hunt 3bc40fa494 Bug 826400 - Part 2: Extract and store optimal apple-touch-icon during page load r=nalexander 2016-01-05 14:49:43 -08:00
Andrzej Hunt 720a562073 Bug 826400 - Part 1: Add touchIcon to URLMetadataTable r=nalexander 2015-12-21 17:26:52 -08:00
Margaret Leibovic 45a0b5477b Bug 1218942 - Add histogram probe to measure state of different restrictable items in restricted profiles. r=sebastian p=mfinkle 2015-12-24 14:37:29 -05:00
Michael Comella 957770712e Bug 1022464 - review: Make changes for review comments while liuche is out. r=me
There is one review comment questioning a change that, upon testing, seems to
be necessary upon testing - I didn't make any changes for that change but I
still don't entirely understand why it's necessary.
2016-01-05 10:46:59 -08:00
Chenxia Liu f3225d2765 Bug 1022464 - Returning to URL bar containing search terms doesn't re-enter search mode. r=mcomella 2015-12-21 14:51:26 -08:00
Jim Chen 579c634b7a Bug 1236654 - Properly shut down GLController on nsWindow closing; r=snorp
When nsWindow closes, notify GLController to shut down. To ensure any
pending calls on the UI thread are processed first, post a Runnable to
the UI thread that disposes the GLController on the UI thread.
2016-01-06 21:33:18 -05:00
Jim Chen cf9c1babd9 Bug 1236643 - Reorder GeckoEditable destruction sequence; r=esawin
To guarantee that GeckoInputConnection and GeckoEditable are not used by
GeckoView after GeckoEditable has been destroyed, we need to make sure a
certain sequence is followed. We should first unset the
InputConnectionListener in GeckoView on the UI thread; then unset the
GeckoEditableListener on the IC thread; and finally finish destroying
the GeckoEditable instance through disposeNative. This patch merges this
logic with the initialization logic in GeckoEditable.onViewChange, so
that onViewChange can be used for both initialization and destruction.
2016-01-06 21:33:18 -05:00
Jim Chen 7a0be89c07 Bug 1236643 - Let GeckoInputConnection keep its view; r=esawin
Right now GeckoInputConnection uses GeckoAppShell to get its view, but
it should be keeping its own View reference to support multiple
GeckoViews.
2016-01-06 21:33:18 -05:00
Jim Chen 8703060dd6 Bug 1236705 - Correctly handle all text change scenarios; r=esawin
Handle all text change scenarios efficiently but correctly. In
particular, when we have a pending "replace text" action, make sure we
preserve old and new spans as much as we can, and make sure we merge the
text from the pending action with the actual changed text.
2016-01-06 21:33:18 -05:00
Jim Chen 309b4012f3 Bug 1236049 - Be smarter about which Context to use for opening Intent; r=sebastian
Use an Activity as the Context when we have one. This avoids the crash
and also avoids an ugly black flash when you cancel the intent chooser.
When we don't have an activity, use an application context and add the
new task flag.
2016-01-06 21:33:18 -05:00
Jim Chen d70fe064b6 Bug 1235246 - Configure GeckoLayerClient after GLController is initialized; r=snorp
LayerView used to call GeckoLayerClient.onGeckoReady directly if Gecko
is sufficiently loaded. However, onGeckoReady indirectly calls
GLController.createCompositor, and it's possible for the
createCompositor event to be prioritized so that it happens before we
initialize GLController, causing a crash. This patch moves the
onGeckoReady call to the Gecko thread, after GLController is
initialized, to avoid this race condition.
2016-01-06 21:33:18 -05:00
Jim Chen 874263de34 Bug 1235246 - Always execute a queued call if it's overdue; r=me
GeckoThread.queueNativeCallLocked tries to execute a queued native call
if it's already overdue, but it incorrectly checked that the queue is
not empty. That check is not necessary, and an overdue native call
should always be executed. One-line patch, r=me.
2016-01-06 21:33:17 -05:00
Sebastian Kaspari d84fd8f1a6 Bug 1236507 - DownloadContentService: Skip download if file system is not writable. r=rnewman 2015-12-22 10:28:10 +01:00
Sebastian Kaspari f91baf7945 Bug 1215106 - DownloadContentService: Mark content as permanently failed after multiple errors of the same type. r=rnewman 2015-12-21 09:49:57 +01:00
Sebastian Kaspari 919fa92365 Bug 1220145 - DownloadContentService: Check space on disk before downloading content. r=rnewman 2015-12-19 23:01:11 +01:00
Sebastian Kaspari e7aa62020a Bug 1233785 - DownloadContentService: Skip DownloadAction if no network is available. r=rnewman 2015-12-18 20:10:26 +01:00
Sebastian Kaspari 549d8b71fd Bug 1209513 - DownloadContentService: Add support for resuming downloads. r=rnewman 2015-12-17 11:36:16 +01:00
Sebastian Kaspari dc5b7aa391 Bug 1232984 - Add basic set of tests for downloadable content. r=rnewman 2015-12-16 13:16:23 +01:00
Sebastian Kaspari 94cd965fdd Bug 1232984 - Move functionality from DownloadContentService to testable *Action subclasses. r=rnewman 2015-12-16 13:11:10 +01:00
dominique vincent 16f1dcac11 Bug 1234934 - Update the zoomed view UI only when the view inflation is completed. r=mcomella 2015-12-29 22:14:33 +01:00
Andrzej Hunt 3230ce99d8 Bug 1223983 - Hide recycled search items when suggestions/history are disabled too. r=mcomella 2015-12-16 15:56:02 -08:00
Ryan VanderMeulen 326846d25f Merge inbound to m-c. a=merge 2016-01-01 19:29:16 -05:00
Mark Finkle e67d16aae7 Bug 1072959 - Stop crashing in PinSiteDialog when rotating device r=margaret 2015-12-31 15:07:56 -05:00
Mark Finkle af514b5982 Bug 1235642 - Don't query-then-update to bump history visit counts r=rnewman 2015-12-31 11:06:00 -05:00
Mark Finkle f445412da3 Bug 1235637 - Provide a simple way to update history without needing a cursor r=rnewman 2015-12-29 20:50:46 -05:00
Jim Chen abc7bc1808 Bug 1235341 - Don't request rendering until compositor is created; r=me
Simple patch. Don't call into the compositor to request a rendering
until the compositor has been created.
2015-12-28 17:41:45 -05:00
Ryan VanderMeulen 163ffd64c6 Merge fx-team to m-c. a=merge 2015-12-25 20:33:39 -05:00
Andrzej Hunt 054087712e Bug 1233602 - Don't depend on search suggestions to show search history r=liuche 2015-12-17 17:14:27 -08:00
843fc41878 Bug 1223586 - Hid web content and the home pager before making browser search visible. r=mcomella 2015-11-24 16:42:26 -05:00
Jim Chen 73881b6aa8 Bug 1233812 - Remove obsolete methods in GeckoAppShell; r=snorp
These methods were from the XUL Fennec days and are obsolete.
2015-12-23 22:03:35 -05:00
Jim Chen 163eb40ca3 Bug 1229403 - Use existing states if possible when initializing GeckoView; r=snorp
This patch changes onAttachedToWindow in GeckoView, so that if we have
states that have been restored, we use those states for initialization
instead of creating new states (e.g. opening a new nsWindow). Because
the GLController instance is associated with the nsWindow instance, we
need to keep the GLController instance as part of our saved states. This
patch also adds a reattach method to GeckoView.Window, because
GeckoEditable needs to be notified when its target View changes.
2015-12-23 22:03:35 -05:00
Jim Chen 307d59f724 Bug 1229403 - Implement save and restoring GeckoView states; r=snorp
This patch adds an implementation of onSaveInstanceState and
onRestoreInstanceState to GeckoView, so that when GeckoView is destroyed
and later recreated, we would properly save and restore necessary states
and JNI associations. The patch also fixes onDetachedFromWindow, so that
we keep the nsWindow if we saved states, and close the nsWindow if we
did not save states.
2015-12-23 22:03:35 -05:00
Jim Chen 6fac32ab0b Bug 1229403 - Add GeckoView.StateBinder to keep states across GeckoView instances; r=snorp
As GeckoViews get destroyed and recreated, we want to carry its states
across. In particular, we want to keep a reference to our GLController
instance, and keep the association with the native nsWindow instance.
2015-12-23 22:03:35 -05:00
Jim Chen 02fea99837 Bug 1232456 - Create EGL surface through widget; r=snorp
This patch makes GLContextProviderEGL create EGL surfaces through
nsWindow/nsIWidget on Android. nsWindow then calls GLController in Java
to actually create the surface.
2015-12-23 22:03:34 -05:00
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 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 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
Michael Comella 7c907b82bb Bug 1232773 - Call Adjust.onPause/onResume. r=mfinkle 2015-12-22 14:29:51 -08:00
Michael Comella bb0bb5c72e Bug 1233614 - Remove MOZ_INSTALL_TRACKING branch around Adjust usage. r=mfinkle
We already take care of this in AdjustConstants where we return
StubAdjustHelper if MOZ_INSTALL_TRACKING is not defined.

However, the one downside to this is that we touch SharedPreferences on the
main thread in onCreate even if Adjust is disabled. However, our release and
beta users already have this problem (since Adjust is enabled) so who cares if
our Nightly and Aurora users also have this problem.
2015-12-22 09:47:08 -08:00
Michael Comella a7c3c28bd1 Bug 1233614 - Adjust.setEnabled before upload can occur. r=mfinkle
See the added comment for motivations.
2015-12-22 09:45:49 -08:00