Commit Graph

18606 Commits

Author SHA1 Message Date
Jim Chen
3dc603713a 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
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
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
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
Wes Kocher
1f00d8d838 Backed out 4 changesets (bug 1218996) for talos svg failures CLOSED TREE
Backed out changeset ba750628c4f3 (bug 1218996)
Backed out changeset 2205cce34824 (bug 1218996)
Backed out changeset 9410cbc0545e (bug 1218996)
Backed out changeset 7839222071ac (bug 1218996)

--HG--
extra : commitid : Ju4TBTVoAIr
2015-12-23 11:09:05 -08:00
Olivier Yiptong
6070b36fc1 Bug 1218996 - Fuse aboutNewTabService and RemoteNewTabLocation and return resource URLS r=marcosc,oyiptong
--HG--
extra : rebase_source : 15564dee02ae241c7f563ba7e362c5c2e0f37ded
2015-12-21 16:14:29 -05:00
Carsten "Tomcat" Book
719ce6825c merge mozilla-inbound to mozilla-central a=merge 2015-12-23 12:00:09 +01:00
Mark Capella
81e809bbaf Bug 1233709 - Action bar overflow menu sometimes appears with only one item, r=mcomella 2015-12-22 21:47:50 -05:00
Michael Comella
7129df93f8 Bug 1232773 - Call Adjust.onPause/onResume. r=mfinkle
--HG--
extra : commitid : CkePbvprGrW
extra : rebase_source : 1b7dc91a174838239f7fdbc16a268262cd061848
2015-12-22 14:29:51 -08:00
Michael Comella
96ea9c62d8 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.

--HG--
extra : commitid : 23AwrEm4oaZ
extra : rebase_source : d1b1aa228878d18ef01091b0c5b693972237e3c8
2015-12-22 09:47:08 -08:00
Michael Comella
76182d7de7 Bug 1233614 - Adjust.setEnabled before upload can occur. r=mfinkle
See the added comment for motivations.

--HG--
extra : commitid : CxIUmGoVbSl
extra : rebase_source : 4bdaf53ef2ba87709fdd236c3217d72186c3ad69
2015-12-22 09:45:49 -08:00
Michael Comella
5e922a0ccb Bug 1233614 - Remove health report flags in favor of Adjust.setEnabled. r=mfinkle
--HG--
extra : commitid : 9FWaV9LQv9b
extra : rebase_source : f38e885e907a8250766683d44c4a5faa3b901dd9
2015-12-22 09:05:28 -08:00
Margaret Leibovic
72e76f303f Bug 1234238 - Restore FFB theme. r=sebastian
--HG--
extra : commitid : FODpzH00bto
extra : rebase_source : b2849c8bed9e123c33a8c209515e31fe9fb9a584
2015-12-21 17:09:05 -05:00
Mark Finkle
e98309db11 Bug 935190 - Try to show cached pages when Fennec is offline r=sebastian 2015-12-22 14:28:49 -05:00
Mark Finkle
dc103b9bc7 Bug 1234453 - More complete save.1 UI Telemetry probes r=margaret 2015-12-22 09:32:13 -05:00
Mark Finkle
6b02f47b5b Bug 1234449 - Cleanup reader telemetry r=margaret 2015-12-22 09:32:10 -05:00
Mark Finkle
6e8b5669d6 Bug 1234449 - Cleanup import telemetry r=margaret 2015-12-22 09:32:07 -05:00
Mark Finkle
0969383180 Bug 1234449 - Cleanup homescreen telemetry r=margaret 2015-12-22 09:32:04 -05:00
Carsten "Tomcat" Book
8dfa44c1a4 Merge mozilla-central to fx-team 2015-12-22 12:28:35 +01:00
Carsten "Tomcat" Book
069e2428a4 merge fx-team to mozilla-central a=merge 2015-12-22 11:42:20 +01:00
Wes Kocher
ff9fee15f4 Backed out changeset 050fbc311d98 (bug 1232632) for android build bustage 2015-12-21 13:06:49 -08:00
Sebastian Kaspari
445ddd60b5 Bug 1232632 - Restricted profiles: Hide 'Clear private data' if needed. r=margaret
--HG--
extra : commitid : Cut33kSG4cZ
extra : rebase_source : 0192090f4a3f36b5911bed03d7cb8afe00c1565d
2015-12-21 16:33:36 +01:00
Sebastian Kaspari
43744ef829 Bug 1232632 - Restricted profiles: Hide 'Clear private data' if needed. r=margaret
--HG--
extra : commitid : 908SwiMfx19
extra : rebase_source : 46c24aa8e897cd130b4892581ae19141a82d9cbe
extra : histedit_source : 5a71f14ea6d1cfb382695fabde021beecf0b801c
2015-12-21 16:33:36 +01:00
Carsten "Tomcat" Book
aaad85ab2f Merge mozilla-central to b2g-inbound 2015-12-21 12:01:32 +01:00
Carsten "Tomcat" Book
7ad45c0d65 merge mozilla-inbound to mozilla-central a=merge 2015-12-21 11:52:31 +01:00
Sebastian Kaspari
d1bd470212 Bug 1233467 - Dismiss snackbar when user taps outside. r=mcomella
--HG--
extra : commitid : LknJ4olRj2C
extra : rebase_source : 3a468831a836029e6b79e5f0e79c70fa5081c225
2015-12-18 17:32:21 +01:00
Margaret Leibovic
c763154973 Bug 1232761 - Expose telemetry/fhr settings directly in restricted profile admin UI. r=sebastian
--HG--
extra : commitid : FE0KvI9RjIO
extra : rebase_source : 9ce1d4296aff0435cb27a977fab9b5ca52bcc271
2015-12-18 11:37:26 -05:00
Margaret Leibovic
d59e4ae5e8 Bug 1228090 - Update traacking protection telemetry histogram to represent user setting. r=mfinkle
--HG--
extra : commitid : ID0STPnNMfB
extra : rebase_source : 205146246a35eee158845fec4b788edd7018dafa
2015-12-18 14:30:24 -05:00
Michael Comella
ff52ccbbc3 Bug 1232773 - Backout 3 changesets for build errors.
This build configuration doesn't appear to run in automation which is why it
wasn't caught.

--HG--
extra : commitid : 5qshNdMfM61
extra : rebase_source : 59361d1d143da918cc498cf1725ea9a2604fbde5
2015-12-17 16:30:34 -08:00
Nick Alexander
291705b9d5 Bug 1233599 - Add build dependencies to appcompat-v7. r=mcomella
--HG--
extra : commitid : Ho1lacCiMeG
extra : rebase_source : f250cf22e01a21fce507a2a29822bec5e64757f8
2015-12-16 13:57:05 -08:00
Carsten "Tomcat" Book
ad1ad64972 Merge mozilla-central to fx-team 2015-12-21 12:00:23 +01:00
Mantaroh Yoshinaga
9d36679a2a Bug 1200133 - Part1 - Change mochitest using TV Simulator Service. r=seanlin 2015-12-17 15:41:00 +01:00
Mark Finkle
e3a7f55bbb Bug 1229274 - Investigate tracking when a screenshot is taken in Firefox r=liuche f=nalexander 2015-12-17 13:04:47 -05:00
Sebastian Kaspari
9537e298e8 Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.

--HG--
extra : commitid : KkCCwQrWwUv
extra : rebase_source : 2650328814b9ec5bba64d802b863d0ff7b3cacfc
2015-12-17 14:49:37 +01:00
Samuel Mendes
fb6854f20c Bug 1228037 - GeckoPreferences.PREFS_ZOOMED_VIEW_ENABLED is unused. r=mcomella 2015-12-05 15:44:51 -02:00
Carsten "Tomcat" Book
af252b574e merge mozilla-inbound to mozilla-central a=merge 2015-12-17 11:59:41 +01:00
Phil Ringnalda
8c377a5e03 Back out 3 changesets (bug 1220309) for 2.3 robocop bustage in testPrivateBrowsing and testSessionHistory
CLOSED TREE

Backed out changeset 1cf6f364d319 (bug 1220309)
Backed out changeset f774157cf5f4 (bug 1220309)
Backed out changeset bd4581fe6c9d (bug 1220309)
2015-12-16 22:03:13 -08:00
Michael Comella
09828218c0 Bug 1232773 - review: Comment on Adjust usage. r=me
--HG--
extra : commitid : Co0fhvtIVNB
extra : rebase_source : 7d7eb18a157611d3187fc8862642c94c943c2853
2015-12-16 14:50:02 -08:00
Michael Comella
db456ab02e Bug 1232773 - Check if user is opt out from Adjust before accessing. r=mfinkle
It made sense to me to have this code inside the AdjustHelper so I moved the
existing opt out code inside the AdjustHelper as well.

--HG--
extra : commitid : Bc0yHD6v3UW
extra : rebase_source : f48a555ef71b658deb978808594faa06195ceca9
2015-12-16 16:01:57 -08:00
Michael Comella
22320400aa Bug 1232773 - Add Adjust.onPause/onResume to record session info. r=mfinkle
I added these to BrowserApp to match the use of Adjust.onCreate in BrowserApp.

These sessions don't perfectly match the FHR sessions they replace which get
called in:
  GeckoApp.onPause (session end)
  BrowserHealthRecorder.onEnvironmentTransition (session end)
  BrowserHealthRecorder.checkForOrphanSessions (session start)
    - From BHR.initializeStorage <- BHR.handleMessage. I didn't figure out
      where this message comes from but given "initializeStorage", I assume
      this comes from a startup routine of GeckoApp.

However, the Adjust docs are explicit about adding these values to
onPause/onResume and presumably written under the assumption that those methods
are called in the appropriate places.

The docs also mention these calls should occur in all Activities but I followed
FHR where only the main Activity is logged - I don't predict any negative side
effects from this change.

--HG--
extra : commitid : GxcpliEbSHh
extra : rebase_source : 817fbc5d422e1a3227054fd6276e86d8d441396a
2015-12-15 14:44:02 -08:00
Varun Joshi
b59fb1201d Bug 1128675 - Duplicate indexes in browser.db. r=rnewman
--HG--
extra : commitid : 2jUNdMFxQnM
2015-12-16 15:02:13 -08:00
Nick Alexander
5c2f270233 Bug 1220309 - Follow-up: Add build dependencies to appcompat-v7. r=mcomella
--HG--
extra : commitid : 4OEA71aXBJj
extra : rebase_source : d47b2fb6ff3583d375fbcb81d7e0a15076e6d634
2015-12-16 13:57:05 -08:00
Michael Comella
9763f76ec5 Bug 1220309 - Correct all caps button text in Button from AppCompat. r=sebastian
AppCompat capitalizes all text in `Button`s so we have to override
that behavior to maintain the same UI. Ideally, we do this through
`android:buttonStyle` but the place I found the issue doesn't inherit
from that style so we can't and we change the style directly.

There may be issues with other `Button`s, but this is the only one I found.

--HG--
extra : commitid : JWDZBWuhsYy
extra : rebase_source : 534d09ceca6d15bfd1ad49772ee0f3bfad4751c1
2015-12-15 11:26:33 -08:00
Geoff Brown
8696301230 Bug 1232962 - Use emulator device-serial for android-emulator command only; r=jmaher 2015-12-16 13:59:11 -07:00