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

21236 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen 93c5b51e4a Bug 1303806 - 1. Move classes from geckoview to Fennec; r=nalexander
ANRReporter is a telemetry tool that belongs in Fennec code.

GeckoJavaSampler is a developer tool that belongs in Fennec code.

SwipeDismissListViewTouchListener is only used in FormAssistPopup, which
is no longer referenced in geckoview code.

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/ANRReporter.java => mobile/android/base/java/org/mozilla/gecko/ANRReporter.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoJavaSampler.java => mobile/android/base/java/org/mozilla/gecko/GeckoJavaSampler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/widget/SwipeDismissListViewTouchListener.java => mobile/android/base/java/org/mozilla/gecko/widget/SwipeDismissListViewTouchListener.java
2016-09-20 17:42:08 -04:00
James Willcox c660f5d482 Bug 1301043 - Remove HLS player if you switch tabs in Fennec r=ahunt 2016-09-20 15:54:00 -05:00
Carsten "Tomcat" Book 17d545681a Merge mozilla-central to mozilla-inbound 2016-09-20 12:02:20 +02:00
Nick Alexander b316681623 Bug 1303468 - Follow-up: Unbust Gradle lint. r=me
MozReview-Commit-ID: IWB0CMVuNPr
2016-09-19 14:54:24 -07:00
Nick Alexander 0714ea6615 Bug 1303468 - Follow-up: Unbust Gradle builds. r=me
MozReview-Commit-ID: IbqnIC4L83A

--HG--
extra : rebase_source : 3af27bf38c5e7ec93ba1835fa3f9c6d26675551e
2016-09-19 14:24:13 -07:00
Nick Alexander 2a72ea59a4 Bug 1303468 - Part 2: Move Fennec- and Gradle-specific file back to base/. r=jchen
This is only there to silence the linter.

MozReview-Commit-ID: 8zEDsrbjyeo

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/UnusedResourcesUtil.java => mobile/android/base/java/org/mozilla/gecko/util/UnusedResourcesUtil.java
extra : rebase_source : be9a886cc2d28a4336690255279f9cf50e9ed047
extra : histedit_source : 43c4512d56f5a01f04ecada6a493107b6ac9581f
2016-09-16 15:55:01 -07:00
Nick Alexander 94886d9a99 Bug 1303468 - Part 1: Move more things into GeckoView. r=jchen
MozReview-Commit-ID: CEjyq0TFn6j

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/SysInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/SysInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/JNITarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/JNITarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/ReflectionTarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/ReflectionTarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/RobocopTarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/RobocopTarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/WebRTCJNITarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/WebRTCJNITarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/WrapForJNI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/WrapForJNI.java
extra : rebase_source : aa34c4b5333ed1db01ae5437946e9e48e136c9e4
extra : histedit_source : 75cc1703f895894c1a5a55f1c5cb94d4cbde5b8e
2016-09-16 15:53:39 -07:00
MDTsai f6383735e1 Bug 1301619 - Update Firefox android User Agent override. r=miket
Remove following domains from ua-update.json.in:
 auctions.yahoo.co.jp
 news.yahoo.co.jp
 shopping.yahoo.co.jp
 travel.yahoo.co.jp
 sports.yahoo.co.jp
 mixi.jp

Update bug number inline
2016-09-12 20:57:00 -04:00
Randall Barker 222a065e38 Bug 1294707 - Part 1, Revert Fennec so that it treats mouse clicks as touch events r=kats 2016-09-16 14:37:41 -07:00
Wes Kocher 0677d5dc43 Merge m-c to inbound, a=merge 2016-09-16 14:35:12 -07:00
Wes Kocher 76bf2680e6 Merge inbound to m-c a=merge CLOSED TREE 2016-09-16 14:31:34 -07:00
Jan Henning 9d8c12b79f Bug 1302424 - Check panelStateChangeListener isn't null before using it. r=Grisha
MozReview-Commit-ID: GogUQ4edJvU

--HG--
extra : rebase_source : 9b5072ab2b5b8eea5af4023e3f8de79cafe4b8b5
2016-09-16 17:38:41 +02:00
Jim Chen cabea0c515 Bug 1291375 - 3. Separate Fennec JNI binding generation; r=nalexander r=snorp
Separate compiled JARs into GECKOVIEW_JARS and FENNEC_JARS, and run
AnnotationProcessor separately on each set. The GeckoView bindings are
put into widget/android/GeneratedJNI* (same as before), while the
Fennec-specific bindings are put into widget/android/fennec/FennecJNI*.
2016-09-16 15:13:48 -04:00
Jim Chen 3965c7e895 Bug 1291375 - 1. Compile separate gecko-view.jar; r=nalexander
Compile geckoview sources into a separate gecko-view.jar file, apart
from gecko-browser.jar. This lets us separate JNI binding generation,
among other things.
2016-09-16 15:13:47 -04:00
Dylan Roeh 0a42c7bfec Bug 1300574 - Use the back button for navigation in custom tabs when possible. r=snorp 2016-09-16 09:21:09 -05:00
Dragana Damjanovic 28e47547d6 Bug 1277895 - Remove one new line from http auth prompt message. r=dolske 2016-09-16 09:24:26 +02:00
Wes Kocher 447769a520 Merge fx-team to central, a=merge 2016-09-15 16:35:46 -07:00
Carsten "Tomcat" Book e4ded7fc61 Merge mozilla-central to fx-team 2016-09-15 12:07:34 +02:00
Matthew Wein 56c73ad672 Bug 1300808 - Only load options pages on Android for OPTIONS_TYPE_INLINE. r=kmag
MozReview-Commit-ID: DF739YRjxOb

--HG--
extra : transplant_source : %E4M%DB%A6%CB%DC%40%F5%BC%06%84%A0%CB%E3%05%8E%AAC%2A%16
2016-09-14 13:59:40 -07:00
Jim Chen 13d9bdb41d Bug 1258472 - 2. Move guest mode state management to GeckoProfile; r=nalexander
Because guest mode is intimately tied to the profile, it'd be hard to
keep guest mode out of geckoview code entirely, But we also don't want
any dependency on GuestSession from geckoview code, so this patch moves
the part of GuestSession that manages guest mode state to GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen dd14f982bb Bug 1258472 - 1. Start first-run telemetry session outside of GeckoProfile; r=nalexander
Move the first-run telemetry session from GeckoProfile to BrowserApp, so
there is no longer any dependency on Telemetry from inside GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen 5113e2786e Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander
Mass convert GeckoProfile.getDB() calls to BrowserDB.from() calls,
whether using Context or GeckoProfile.
2016-09-14 12:46:50 -04:00
Jim Chen fef2725577 Bug 1291384 - 1. Take BrowserDB out of GeckoProfile; r=nalexander
Remove references to BrowserDB and its factory from GeckoProfile.
Instead of keeping the DB in mDB, GeckoProfile now keeps an arbitrary
object in mData. Using a data object lets us avoid needing another map
to map profiles to DBs. This feature could be very useful for GeckoView
consumers as well.

The new way to get a BrowserDB from a profile/context is through
BrowserDB.from(Context) or BrowserDB.from(GeckoProfile), which takes
care of creating a local DB if necessary and associating the DB with the
profile.
2016-09-14 12:46:50 -04:00
Jim Chen 3a8af38a02 Bug 1301515 - Remove FormAssistPopup dependency in geckoview; r=sebastian
Remove the input method change notification that GeckoInputConnection
sends to FormAssistPopup, so there's no dependency on FormAssistPopup
from inside GeckoInputConnection or GeckoInterface. Instead,
FormAssistPopup now actively queries the current input method, and
performs blocklisting based on that.
2016-09-14 12:43:36 -04:00
Jim Chen cbdc48211c Bug 1291385 - 3. Don't send viewport flush message; r=snorp
We used to use it to sync viewport metrics between Gecko and Java, but I
don't think this is needed anymore.
2016-09-14 12:43:36 -04:00
Jim Chen de52df3d2a Bug 1291385 - 2 .Move restrictions package from geckoview to Fennec; r=nalexander
The restrictions package really belongs in Fennec code rather than in
geckoview code. The move also eliminates some dependency errors because
the restrictions package references some classes in Fennec code.

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/DefaultConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/DefaultConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/GuestProfileConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/GuestProfileConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/Restrictable.java => mobile/android/base/java/org/mozilla/gecko/restrictions/Restrictable.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictedProfileConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictedProfileConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionCache.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionCache.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionProvider.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionProvider.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/Restrictions.java => mobile/android/base/java/org/mozilla/gecko/restrictions/Restrictions.java
2016-09-14 12:43:36 -04:00
Jim Chen fa1430b7fc Bug 1291385 - 1. Remove geckoview dependency on certain GeckoApp constants; r=sebastian
Code in geckoview depends on several string constants in GeckoApp.
This patch moves PREFS_OOM_EXCEPTION and ACTION_ALERT_CALLBACK from
GeckoApp to GeckoAppShell, to reverse the dependency. Ideally, we'd want
those constants to not be used or used differently in geckoview code,
but this is a quick workaround for now. GeckoThread uses
GeckoApp.ACTION_HOMESCREEN_SHORTCUT, but that block of code is actually
obsolete, so this patch removes the code block and the dependency.
2016-09-14 12:43:36 -04:00
Jim Chen c51900d074 Bug 1258470 - 3. Small optimizations in ThumbnailHelper; r=nalexander
This patch includes a small memory optimization of using ArrayList and
`volatile int` for storing the pending thumbnails list and pending
width, instead of using LinkedList and AtomicInteger, respectively.

The patch also fixes a possible race condition due to calling
processNextThumbnail outside of a lock. Now it must be called inside a
lock and its name is changed to reflect that.
2016-09-14 12:43:36 -04:00
Jim Chen 3013200dba Bug 1258470 - 2. Move thumbnail code out of BitmapUtils; r=nalexander
Move the "thumbnail:" handler out of BitmapUtils and into
ThumbnailHelper and PromptListItem.

The patch adds two overloads of the getAndProcessThumbnailFor method in
ThumbnailHelper, which handle the tasks of getting a thumbnail for a
specific tab and calling a given BitmapLoader.

Because only PromptListItem makes use of the "thumbnail:" convention,
the actual handling of "thumbnail:" is moved to PromptListItem, which
calls ThumbnailHelper to get the thumbnail.
2016-09-14 12:43:36 -04:00
Jim Chen bdb35912c7 Bug 1258470 - 1. Remove RTL and ZoomConstraints variables from gfx; r=rbarker
We no longer send viewport metadata, so we don't actually make use of
the RTL and ZoomConstraints variables we keep in Java. There is a single
usage of an RTL flag in ImmutableViewportMetrics.offsetViewportByAndClamp,
but I think the two branches are equivalent, so the RTL flag is not needed
there either.
2016-09-14 12:43:35 -04:00
Kartikaya Gupta 7522e70f83 Bug 1302452 - Rip out the filler view inside LayerView since we don't support older Android versions any more. r=rbarker
MozReview-Commit-ID: In4imULuo1t
2016-09-14 11:02:37 -04:00
Matthew Noorenberghe d5c4cc5f59 Bug 1298543 - Fix test_prompt_http.html for e10s. r=Dolske
Don't actually test doorhanger notifications since they are only on the desktop browser and browser chrome tests already check them.

The Android notifyObservers additions aren't used in this patch but I added them for consistency and because we should start to use them for cross-platform tests that check if a doorhanger appears.

MozReview-Commit-ID: B5wK8oqu0h7

--HG--
rename : toolkit/components/passwordmgr/test/notification_common.js => toolkit/components/passwordmgr/test/chrome/notification_common.js
extra : rebase_source : 741f45a7dd64a1b7043040bec90bef4e5fd86c0e
2016-09-08 02:12:25 -07:00
Jan Henning 380db6505a Bug 1300647 - Part 2 - Test that the session store correctly handles the "Tab:KeepZombified" notification. r=ahunt
MozReview-Commit-ID: 2x9V4o5iPDg

--HG--
extra : rebase_source : 167366635e7fcd751acf1ed05e9a7c6532f5ad44
2016-09-10 23:01:10 +02:00
Jan Henning d54010ee1f Bug 1300647 - Part 1 - Don't bother reloading a zombified tab if we're about to exit the app. r=ahunt
When pressing the back button reaches the beginning of session history for a tab opened from an external app, we both close the tab and send Firefox into background. Closing the tab leads to some other tab getting selected instead - if that other tab was zombified, this means that we'll then start restoring it.

This behaviour is
- visibly distracting, as that other tab will be visible for a split second while it starts reloading before Firefox finally disappears into the background
- wasteful of resources - while restoring a zombified tab is usually done from cache, at the very least we'll waste some CPU cycles reloading a tab even though we're in background

Therefore, in this situation the UI now alerts the session store that it needn't bother restoring that other tab if it's in a zombie state. Instead, we'll restore it the next time Firefox comes into foreground - if the tab is still selected by then.

MozReview-Commit-ID: 3FcjCZrJ0Ds

--HG--
extra : rebase_source : d071884dd1e78b7da470b042e244093e797dde61
2016-09-13 20:46:03 +02:00
Jan Henning d4e73bbc69 Bug 1301016 - Part 2 - Test scroll position restoring on reader mode pages. r=ahunt
MozReview-Commit-ID: D36u8kUD67g

--HG--
extra : rebase_source : d088ab20975dd1babbe6e7e438c371923e6d7139
2016-09-11 16:03:26 +02:00
Jan Henning eaed42e5c6 Bug 1301016 - Part 1 - Wait for custom event instead of pageshow for scroll position restoring in reader mode. r=ahunt
Some further post-processing happens after loading a page in reader mode, so the pageshow event is too early for restoring the scroll position.

The fix is to do the same thing that desktop does in bug 1153393 and wait for a custom event instead.

MozReview-Commit-ID: DuMA0JxnYEY

--HG--
extra : rebase_source : 4b24fedcea974cef4d916fc7e59768c160728b0c
2016-09-08 23:00:08 +02:00
Sebastian Hengst d3a3614688 Backed out changeset 2b996739ade2 (bug 1302452) for failing test_group_mouseevents.html on Android. r=backout on a CLOSED TREE 2016-09-13 23:57:10 +02:00
Kartikaya Gupta e1247cb010 Bug 1302452 - Rip out the filler view inside LayerView since we don't support older Android versions any more. r=rbarker
MozReview-Commit-ID: 5LrWNHmnUR5

--HG--
extra : rebase_source : 7e262a1c15ea014b646da70c731ec36fd9669dfb
2016-09-13 11:13:35 -04:00
Grigory Kruglov 01023ffde8 Bug 1300222 - Trigger heads-up notification mode for incoming tabs r=ahunt
MozReview-Commit-ID: JvEeWIizQVK

--HG--
extra : rebase_source : 8f4d4c5e07b3e2d3044ca8bcb7e6d00ffecbda45
2016-09-09 16:51:40 -07:00
Jan Henning 6e6cb544cc Bug 1277978 - Part 5 - Once we can access the panelStateChangeListener, use it to retrieve the cached tabs count when initialising the HistoryAdapter. r=liuche
While passing the cached tabs count to the HistoryAdapter in its constructor greatly simplifies getting the cached count into the adapter before the RecyclerView initialises, this relies on the History panel having the panelStateChangeListener available before the HistoryAdapter is created in onCreate().

MozReview-Commit-ID: 64IbAe6SaEq

--HG--
extra : rebase_source : fd6f9a4f1ca92804cd0bca4a355abf17bb784572
extra : source : cb1b540364d1846b58fb5f6ac329935d3f5201bc
2016-08-29 20:51:21 +02:00
Jan Henning a9f09e54eb Bug 1277978 - Part 4 - Actually cache the recent tabs count when it updates. r=liuche
MozReview-Commit-ID: JUsM3qdxhIr

--HG--
extra : rebase_source : 77803ad4760a09088ce96440ef070ce7582673fe
extra : source : cbb19ca2d2454c1d4f938f96e0e34f54d93bf006
2016-09-10 13:51:35 +02:00
Jan Henning 61e7471407 Bug 1277978 - Part 3 - Allow the RecentTabsAdapter to indicate whether the tab count is reliable. r=liuche
After we've set the cached tabs count to display within the history adapter, we don't want to revise that number downwards as long as the RecentTabsAdapter hasn't yet checked all of its data sources.

MozReview-Commit-ID: BMpiaEb3kGQ

--HG--
extra : rebase_source : 433c041f1073fe8aff1b4dfc5620c4544e8478d8
extra : source : ec7d53dea918724ff888db3327186d6b09a5dfac
2016-08-20 17:49:34 +02:00
Jan Henning 077099afe5 Bug 1277978 - Part 2 - Allow saving a cached recent tabs count in BrowserApp. r=liuche
Getting the total number of recently closed tabs involves waiting for Gecko to actually send the closed tabs to the Java UI. This means that (unless there are some "Tabs from last time" present) when showing the history panel we always start out with the Recently closed folder hidden and then unhide (and animate) it once we've finally received the closed tabs.

Because this is visually distracting, we should cache the closed tabs count somewhere, so we can decide on the smart folder visibility as soon as the CombinedHistoryAdapter initialises.

MozReview-Commit-ID: 8uYCbM7eiSt

--HG--
extra : rebase_source : 1afe3c8a0f184272d5d05913ef3af8050b6e5d06
2016-08-29 20:03:12 +02:00
Jan Henning 35dc8e4b0e Bug 1277978 - Part 1 - Hide Recent Tabs smart folder if there aren't any closed tabs to be shown. r=liuche,rnewman
This involves making the number of visible smart folders dynamic, so the history adapter can properly display its contents.

MozReview-Commit-ID: 6b4V6IHB7BE

--HG--
extra : rebase_source : fc2e70f5ed0aa1961ffe464fcf67a1488f8eb91b
extra : source : 2b9260c4018b1005dea01e2b2c4548643db4264d
2016-09-04 15:16:20 +02:00
Jan Henning 329895d83a Bug 1277978 - Part 0b - Add target api annotation in BrowserApp. r=liuche
Otherwise Android Studio complains because it doesn't recognise our version switch.

MozReview-Commit-ID: 2QpD3nNSryK

--HG--
extra : rebase_source : 6b82ccf8c3fedee10688b4078882222cf231cb33
2016-08-20 16:59:59 +02:00
Jan Henning bababef2dd Bug 1277978 - Part 0a - Fix typo. r=liuche
MozReview-Commit-ID: 50wzRmX7iTz

--HG--
extra : rebase_source : 4e93b0aca605427fa8adfe9a179bd93884a9a7c8
2016-08-16 20:42:20 +02:00
Patrick McManus 1d5bcef263 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Carsten "Tomcat" Book 0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Alastor Wu e9a55e8604 Bug 1290467 - part10 : update audio focus related control operations. r=sebastian
Except controlling audio focus from gecko, the MediaControlService can also
decide whether needs to request or abandon audio focus.

MozReview-Commit-ID: G3iSYwd24JZ

--HG--
extra : rebase_source : dd29207d8c08176cd7a57f08d3361e4f29c4095a
2016-09-09 09:51:12 +08:00
Alastor Wu ff8012b391 Bug 1290467 - part9 : remove 'ACTION_REMOVE_CONTROL'. r=sebastian
Remove 'ACTION_REMOVE_CONTROL' because it's as same as 'ACTION_STOP'.

MozReview-Commit-ID: 6KOj8srEuJA

--HG--
extra : rebase_source : 3b92e0f3d6485af4e9be97b1423804401b1496c7
2016-09-09 09:51:10 +08:00