Commit Graph
2909 Commits
Author SHA1 Message Date
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Iris Hsiao 87d8f82bc0 Backed out changeset 4f5a93b89b2b (bug 1344892) for Mochitest rc4 failures in Android 2017-03-15 17:37:39 +08:00
Jim Chen 22f9885110 Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-14 17:47:16 -04:00
Carsten "Tomcat" Book 811b1bab9a merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Julian_Chu ad635dc1d7 Bug 1315937 - Add share item to menu if necessary r=sebastian
3rd-party app could ask to add default share item to menu, and share
the data url to other activities if user click the share-menu-item.

MozReview-Commit-ID: HkDyENJtFn9
2017-03-02 17:05:28 +08:00
Julian_Chu a06f500f39 Bug 1315937 - Add custom items to menu of CustomTabsActivity r=sebastian
If 3rd-party app provides any custom menu items, add them to PopupMenu
and handle corresponding pending intent.

MozReview-Commit-ID: 5STg49hsCWF
2017-03-02 16:44:56 +08:00
Julian_Chu 1fa7906a3e Bug 1315937 - Add basic custom menu to CustomTabsActivity r=sebastian
Besides custom-menu-items from 3-rd party apps, we designed a custom
menu which always has
  * buttons for Forward, Reload
  * One menu item for 'Open by Firefox'
  * a footer 'Powered by Firefox'

This patch adds a button as an anchor to standard menu. Once user click
it, to show a custom menu (GeckoPopupMenu) base on the anchor.

In current design, there is only one style for menu, regardless of Dark
or Light theme.

MozReview-Commit-ID: 5RMiGDlxLTU
2017-03-01 13:42:10 +08:00
Julian_Chu 42337453a1 Bug 1315937 - add theme to CustomTabsActivity r=sebastian
CustomTabsActivity is usually be used by 3rd-party apps. Its look and
feel is usually different from GeckoApp. To give separated themes to
ensure any change to CustomTabs won't effect GeckoApp.

MozReview-Commit-ID: 7aBnnPXv3nQ
2017-03-01 11:43:35 +08:00
Julian_Chu 50ac094455 Bug 1315937 - Only create option menu items once. r=sebastian
Menu items in CustomTabsActivity are static. Not necessary to create
items several times. However `onPrepareOptionsMenu()` will be called
before menu is shown.

Cannot use `onCreateOptionsMenu()` due to GeckoApp overwrited
`onCreatePanelMenu()` and pass different instance to sub-class. Since
CustomTabsActivity does not use custom menu, just overwrite
`onCreatePanelMenu()` should be safe.

MozReview-Commit-ID: 2oTN85GurqS
2017-02-23 18:42:18 +08:00
Wes Kocher 2b3321b10c Backed out changeset 0cbf58746cae (bug 1345267) under suspicion of causing android x86 chrome mochitest failures a=backout
MozReview-Commit-ID: CrUlU8uVeLx
2017-03-10 16:26:10 -08:00
Sebastian Hengst d80f092790 Backed out changeset ffeffef36f34 (bug 1344892) on request of developer for issues with Android reftests. r=backout on a CLOSED TREE 2017-03-10 21:53:00 +01:00
Jim Chen d7172824d0 Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-10 14:10:15 -05:00
Jim Chen 18d9487336 Bug 1346019 - Guard against null GeckoApp in GeckoUpdateReceiver; r=me
Don't dispatch the "Update:CheckResult" event if we don't have an active
GeckoApp. r=me for trivial patch.
2017-03-10 13:48:07 -05:00
Dylan Roeh c2a8f2356b Bug 1325021 - Set mDoorHangerPopup to null after destroying it. r=sebastian 2017-03-09 13:28:35 -06:00
Dylan Roeh cd4cb0c99b Bug 1345267 - Check NEON compatibility in BrowserApp/GeckoApp.onCreate() and fail with an appropriate error message if necessary. r=jchen 2017-03-10 10:29:31 -06:00
Grigory Kruglov c84ce69e9a Bug 1329793 - Re-subscribe for a push channel periodically r=eoger,nalexander
On startup and at the beginning of a sync we check how long it has been since we've subscribed
to a channel for fxa service. If it's been over 21 days, request re-subscription.

MozReview-Commit-ID: GzvPecZ9hTy
2017-03-08 18:14:43 -08:00
Tom Klein f4e311c28f Bug 1331154 - 7. Update the tab strip after tabs are moved in the tabs tray. r=sebastian
The tabs tray is drawn on top of the tab strip, not instead of it, so the tab
strip needs to be updated after tabs are moved in the tabs tray before the tab
strip becomes user-visible again.

This introduces a slight change in behavior: *if* a move (of a tab matching the
privacy state of the tab strip) occurs while the tabs panel is open, the tab
strip will be scrolled to the currently selected tab when the tabs panel is
closed - previously the tab strip maintained its old scroll position if a tab
wasn't closed or added while the tabs panel was open.

MozReview-Commit-ID: Ipy5huthNYB
2017-02-25 19:22:01 -06:00
Tom Klein c848c451a6 Bug 1331154 - 5. Notify browser.js when a tab gets moved. r=sebastian
Session store will be notified in the next patch.

MozReview-Commit-ID: APTJykdnMF2
2017-02-02 21:02:51 -06:00
Tom Klein 145bf22c98 Bug 1331154 - 3. Add a cache to remember the position of the last tab move. r=sebastian
MozReview-Commit-ID: 5gEpwYuphKm
2017-02-02 15:55:25 -06:00
Tom Klein 04db4f07f8 Bug 1331154 - 2. Update the tabs list in Tabs when a tab is moved. r=sebastian
A cache to remember the position of the tab that was just moved will be added in
the next commit.

MozReview-Commit-ID: 5V4FSpcJ69Z
2017-02-05 10:47:47 -06:00
Tom Klein 1869ce4542 Bug 1331154 - 1. Add TabsLayout support for reordering tabs. r=sebastian
Future commits will update the tabs lists in Tabs and gecko; for now we're just
updating the TabsLayoutAdapter list.

When considering some of the changes in TabsTouchHelperCallback, note that
TabStripView uses the new drag and drop, but not swipe to close.

MozReview-Commit-ID: EEseqmVIZmY
2017-02-02 17:15:27 -06:00
Dylan Roeh 3b13a0f9c1 Bug 1338055 - Prevent crash from destroying PromptService multiple times. r=sebastian 2017-03-07 08:59:10 -06:00
John Lin f197a2279a Bug 1340160 - catch more local and remote Java exceptions. r=snorp
MozReview-Commit-ID: JkfIFsKc5oe
2017-03-06 14:30:00 +08:00
Wes Kocher d0cbad485e Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7cTf6LvHTEo
2017-03-07 16:44:35 -08:00
Jim Chen 78ccd0611f Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian
Bug 1337467 - 1. Convert "Window:Resize" observer to event; r=rbarker

Bug 1337467 - 2. Convert "ScrollTo:FocusedInput" observer to event; r=rbarker

Bug 1337467 - 3. Convert "Update:CheckResult" observer to event; r=sebastian

Also remove notifyCheckUpdateResult from GeckoInterface.

Bug 1337467 - 4. Convert "GeckoView:ImportScript" observer to event; r=sebastian

Bug 1337467 - 5. Convert accessibility observers to events; r=sebastian

Bug 1337467 - 6. Convert media/casting observers to events; r=sebastian

Bug 1337467 - 7. Convert "Sanitize:ClearData" observer to event; r=sebastian

Bug 1337467 - 8. Convert "Notification:Event" observer to event; r=sebastian

Bug 1337467 - 9. Convert BrowserApp observers to events; r=sebastian

Bug 1337467 - 10. Convert Tab observers to events; r=sebastian

Bug 1337467 - 11. Convert "Passwords:Init" and "FormHistory:Init" observers to events; r=sebastian

Bug 1337467 - 12. Convert Reader observers to events; r=sebastian

Bug 1337467 - 13. Convert Distribution observers to events; r=sebastian

Bug 1337467 - 14. Convert "Fonts:Reload" observer to event; r=sebastian

Bug 1337467 - 15. Convert RecentTabsAdapter observers to events; r=sebastian

Bug 1337467 - 16. Convert "Session:Prefetch" observer to event; r=sebastian

Bug 1337467 - 17. Convert "Browser:Quit" and "FullScreen:Exit" observers to events; r=sebastian

Bug 1337467 - 18. Convert SessionStore observers to events; r=sebastian

The "Session:NotifyLocationChange" observer is sent by browser.js and
requires passing a browser reference, so it's left as an observer.

Bug 1337467 - 19. Remove unused "Tab:Screenshot:Cancel" notifyObserver call; r=me

Bug 1337467 - 20. Convert "Session:Navigate" observer to event; r=sebastian

Bug 1337467 - 21. Convert "Locale:*" observers to events; r=sebastian

Bug 1337467 - Add log for unhandled events; r=me

Add back the log indicating no listener for an event, which can be
useful when reading logcat. r=me for trivial change.

Bug 1337467 - Don't return error from EventDispatcher when OnEvent fails; r=me

When a listener's OnEvent method returns an error, continue to dispatch
to other listeners and don't return an error from the dispatch function.
This avoids unexpected errors when dispatching events. r=me for trivial
patch.
2017-03-07 12:34:04 -05:00
Carsten "Tomcat" Book 83fd6f4ab4 Merge mozilla-central to mozilla-inbound 2017-03-07 15:18:32 +01:00
Carsten "Tomcat" Book 708777dd78 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
suman 696fa91d46 Bug 1326374 Changed the method spelling from Lollopop to lollipop. r=sebastian,walkingice
MozReview-Commit-ID: FSOglE5UuRa
2017-02-25 22:06:07 +05:30
Randall Barker b6d0ae6183 Bug 1344517 - Keep dynamic toolbar visible while page is loading r=kats 2017-03-06 14:01:46 -08:00
Jan Henning 8f7117de99 Bug 1344464 - Part 1 - Restart input after removing autocomplete text for keyboards that require it. r=jchen
When we detect text being deleted from the URL bar via setComposingText while we're displaying an autocomplete suggestion, we clear the autocomplete text and prevent the keyboard's delete from having any effect on the URL bar by returning false.

Some keyboards might not handle this correctly and assume that they've in fact successfully set the new text, so the next time the user presses a key can lead to weird behaviour. As a workaround, we therefore additionally restart the input for affected keyboards.

MozReview-Commit-ID: DucveafL3AB
2017-03-04 21:09:15 +01:00
Jan Henning 12f1f6a333 Bug 1344464 - Part 0 - Remove unneeded code. r=jchen
MozReview-Commit-ID: 2mPPx4fMTM2
2017-03-04 21:59:35 +01:00
Jan Henning f7fb4a61aa Bug 743662 - Restore session once when addons require a restart. r=sebastian
MozReview-Commit-ID: C5Q9cYnxnhj
2017-03-03 19:05:49 +01:00
Sebastian Kaspari 4ba60280b0 Bug 1330973 - Use website description length for highlights ranking. r=Grisha
MozReview-Commit-ID: 7kZjNb2MSJ7
2017-02-02 17:08:30 +01:00
Sebastian Kaspari 26ee58e85c Bug 1312016 - Activity Stream: Implement highlights ranking to mirror desktop add-on behavior. r=Grisha
This patch has multiple changes folded into:
* Remove old highlights query
* Add new query for retrieving recent history to consider for highlights
* First version of highlights ranking implementation
* Add new loader implementation that will return a list of Highlight objects instead of a Cursor
* Modify UI code to work with Highlight objects instead of a Cursor.

MozReview-Commit-ID: Pdx2YxrZKA
2017-02-13 18:14:23 +01:00
Sebastian Kaspari f0b0b9a66e Bug 1342329 - Only link the "default browser" setting to the default apps screen. r=ahunt
MozReview-Commit-ID: I7mrsbXGng1
2017-03-03 11:12:48 +01:00
Carsten "Tomcat" Book dc21916166 merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Jan Henning 5987351cb3 Bug 1342820 - Reset navigation button state when clearing history. r=ahunt
Clearing history purges a tab's session history as well. Normally, we only update the navigation button state in the UI for a location change, so now we need to start listening for the appropriate message as well.

BrowserApp has already registered a background thread listener for "Sanitize:ClearHistory" - since this can be called during shutdown as well and their listener is more important (clearing the history DB), we defer to them and redispatch to the UI thread ourselves, so BrowserApp doesn't have to do this during shutdown.

MozReview-Commit-ID: C83mk6Z56Oq
2017-03-01 21:08:11 +01:00
Nevin Chen 3defd2cba9 Bug 1342354 - Add pref pref on/off switch for new bookmark features. r=ahunt
MozReview-Commit-ID: 1Rz7rAao5Is
2017-02-24 18:05:10 +08:00
Dylan Roeh 68a41fec08 Bug 1305815 - Issue EOL warning if non-NEON-compatible device detected. r=glandium 2017-03-01 13:26:12 -06:00
Krishna bdaef19a73 Bug 1276588 - Handling Hyphenation-Dictionaries in DownloadAction. r=sebastian
MozReview-Commit-ID: GTuR0IarjGe
2016-12-04 23:06:35 +08:00
Tom Klein 8c1ad00722 Bug 1216489 - 3. Remove unnecessary touch intercept code for TabsPanel. r=sebastian
MozReview-Commit-ID: 7pf9GRLgHXg
2016-11-30 18:30:57 -06:00
Tom Klein bd7e41344d Bug 1216489 - 2. Cleanup width and height calculations in TabsPanel. r=sebastian
MozReview-Commit-ID: I1chEZDnOyR
2016-11-30 17:31:37 -06:00
Tom Klein fb3a754e8c Bug 1216489 - 1. Cleanup TabsPanel includes and remove member variable. r=sebastian
MozReview-Commit-ID: 9eTBEf8xj1l
2016-11-30 17:02:53 -06:00
Tom Klein e925f58b33 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90
2017-02-22 21:54:11 -06:00
Jan Henning 253e87dfb3 Bug 1337115 - Part 2 - Send telemetry if session restore completely fails and we're not on the first run. r=sebastian
For a fresh profile it is expected that there are no session files to restore from, however afterwards we should normally always have a valid - if possibly empty - session file available. We try excluding the first run case by checking the first run pref used by Telemetry so far and see whether we get any reasonable results out of this...

MozReview-Commit-ID: 2ZxmLqwhk32
2017-02-17 20:02:33 +01:00
Jan Henning 05d9f4c323 Bug 1337115 - Part 1 - Make "Is first run" pref generally useable. r=sebastian
This pref could be useful for things outside of the TelemetryCorePingDelegate as well, so we have it live in GeckoApp now.

MozReview-Commit-ID: 2JZ3vNqSzcl
2017-02-23 22:16:26 +01:00
maliu df943b2db0 Bug 1331995 - Reset text direction to locale in order to reveal text hint, checkstyle, r=sebastian 2017-03-01 18:34:59 +01:00
Jan Henning db1496d955 Bug 1348086 - Part 1 - Use distinct R.id for the tabs tray menu button. r=gbrown
Robocop/Robotium gets terribly confused if multiple views use the same R.id, even if they're never shown together at the same time.

Without this patch, opening of the main menu fails once the tabs tray has been opened (and closed again) at least once.

MozReview-Commit-ID: IOyxG4SCyzF
2017-03-16 21:33:44 +01:00
65e4b93acc Bug 1337692 - Ask for permission on input=file/accept. r=sebastian,grisha 2017-02-27 21:02:00 -06:00
Eugen Sawin fe94fff05a Bug 1342508 - [2.1] Make code style consistent across GeckoView. r=jchen 2017-02-27 20:39:45 +01:00