Commit Graph

15329 Commits

Author SHA1 Message Date
Vincent Povirk
11f98b1551 Run 2to3 on source tree. 2019-09-06 15:43:04 +02:00
James Willcox
c3c70f73a5 Bug 1270522 - Guard against a null view in GeckoLayerClient.sendResizeEventIfNecessary(). r=rbarker, a=ritu 2016-05-23 06:41:00 -04:00
Jan Henning
eebbbfc1fe Bug 1274390 - Include isPrivate and desktopMode in the session store data used for initialising new tabs. r=sebastian, a=ritu
Restoring a tab from the Recent Tabs panel, which goes via the session store's _restoreTabs() function and ultimately via BrowserApp.addTab() and a Tab:Added message back to the Java UI requires the value for isPrivate to be present in the session store data for the respective tab - if it isn't, we end up sending isPrivate as "undefined", which breaks the process of adding the new tab in our UI.

When the session store collects the full tab data for a browser, it always includes the values for isPrivate and desktopMode, therefore we now include those values in the basic session store data we use in initialising a new tab object, too.

MozReview-Commit-ID: 5BZ9PL7xDWA
2016-05-21 19:41:07 +02:00
Wes Kocher
cac31df0ae Backed out changeset 410939eae11a (bug 1186522) to disable mandated signing requirements on beta 47 a=ritu,kev 2016-05-23 12:02:59 -07:00
Sebastian Kaspari
a3efa43432 Bug 1271698 - Add Switchboard flags for URL bar changes. r=margaret a=ritu
* urlbar-show-origin-only: Only show origin in URL bar instead of full URL (Bug 1236431)
* urlbar-show-ev-cert-owner: Show name of organization (EV cert) instead of full URL in URL bar (Bug 1249594)
2016-05-16 16:23:34 -07:00
Michael Comella
3e4be196a9 Bug 1269407 - Return early from all lifecycle methods if not supported system. r=sebastian a=ritu
This avoids a problem where a lifecycle method may assume a previous lifecycle
method initialized some values but we returned early (e.g. on a not supported
system) so these values were never initialized and the application may crash.

I tested this patch by forcing HardwareUtils.isSupportedSystem to return either
true or false (but both were in a supported device configuration).

MozReview-Commit-ID: 1WvOId8CLjP
2016-05-12 15:59:34 -07:00
Michael Comella
cf14182869 Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu
MozReview-Commit-ID: Gzb2qdm3TuT
2016-05-11 17:30:34 -07:00
Margaret Leibovic
9ece805213 Bug 1256415 - Replace FENNEC_GECKOAPP_STARTUP_ACTION histogram with UI telemetry. r=mfinkle a=ritu
MozReview-Commit-ID: ElmELmp7baV
2016-03-18 19:07:18 -04:00
Nick Alexander
9662973be4 Bug 1248066 - Use separate Adjust token for Firefox for Android release and beta builds. r=nalexander a=ritu
The token is only used for release and beta builds, so it's better not
to define it inadvertently for all builds.

MozReview-Commit-ID: 3DLem4PhXD7
2016-02-12 14:34:18 -08:00
Margaret Leibovic
fdf500eede Bug 1267837 - Update grid item telemetry to indicate whether an item is pinned. r=mfinkle a=ritu
MozReview-Commit-ID: 9Et4AhCzAr9
2016-05-11 11:40:49 -04:00
Michael Comella
8bdb91e01d Bug 1271805 - Update color of pressed item in the long-press back history menu. r=ahunt a=ritu
MozReview-Commit-ID: 5q45HtRfv1l
2016-05-10 14:43:54 -07:00
Michael Comella
fb5592d751 Bug 1268603 - Set history background color to @null. r=ahunt a=ritu
See added comment (and bug it references) for details.

MozReview-Commit-ID: CqS5Oy7MPln
2016-05-10 14:19:02 -07:00
Xidorn Quan
1f629dddbb Bug 1268749 followup - Avoid querying :fullscreen selector for context menu. r=margaret a=ritu
MozReview-Commit-ID: A2Tn7I6h81Y
2016-05-13 21:18:29 +10:00
Sebastian Kaspari
63aa195010 Bug 1270529 - lookupProxy(): Return null if port is -1. r=ahunt, a=lizzard
We already return null if the host is empty and all callers seem to handle null values.

MozReview-Commit-ID: 4utRbvf7To3
2016-05-09 20:08:12 +02:00
Margaret Leibovic
c60a0cf73f Bug 1259186 - Send DOM event when feedback page is automatically loaded, instead of custom URL params. r=grisha a=ritu
MozReview-Commit-ID: 6swre6VYpdz
2016-03-23 16:03:42 -04:00
Sebastian Kaspari
42ac72259d Bug 1268455 - Restore <activity-alias> to avoid disappearing home screen shortcuts. r=margaret, a=ritu
This patch restores our previous <activity-alias> with all intent filters. Changing the alias
will cause that existing home screen shortcuts disappear.

I tested this patch with:
* Upgrading old state (2016-02-06) to current state: Icon disappears (expected)
* Upgrading old state to fixed state (this patch): Icon remains

As this patch changes the activity-alias again, releasing this patch will lead to the home
screen shortcut disappearing once more for all released version with the current state:
* Upgrading current state to fixed state: Icon disappears (expected)

MozReview-Commit-ID: 1crKmkp4G1L
2016-05-03 11:16:20 +02:00
Sebastian Kaspari
88d97feeb4 Bug 1269832 - Only show base domain for http/https URLs. r=margaret,kats, a=ritu
MozReview-Commit-ID: Dzk6vN2cyVb
2016-05-04 13:30:48 +02:00
Jan Henning
275cf64dfa Bug 1229259 - Always initialise new tabs with basic session store data. r=margaret a=ritu
When opening a new tab, there is a small window between tab creation and the DOMTitleChanged event firing where the tab - if it is not created as a delay loaded zombie tab right away - won't have any session store data. However a number of functions (tab zombification and restoring of zombified tabs, undo close tabs) depend on the session store data always being available, so things can fall apart if e.g. a zombification is triggered immediately after opening a new tab.
This also means that a tab which is zombfied immediately after its creation (e.g. when a number of tabs are opened through tab queues on startup) is not included in a session save and will therefore get lost if Firefox is killed.

Therefore, we now always intialise new tabs with some basic session store data.

MozReview-Commit-ID: 9248jJFUaq5
2016-04-07 22:02:05 +02:00
Mark Capella
73d8e7a5a3 Bug 1252465 - Link taps don't work at the bottom of reader view page, r=margaret a=ritu 2016-03-22 10:50:04 -04:00
Andrzej Hunt
80f16b2a9b Bug 1269481 - Update suggestClient if suggestTemplate changes r=mkaply a=ritu
MozReview-Commit-ID: LmsgSFda6Nv
2016-05-04 11:25:59 -07:00
Chenxia Liu
062e899f3c Bug 1263941 - History is not displayed in the 3-dot menu if History panel is set as default after it was hidden. r=sebastian a=ritu
MozReview-Commit-ID: 1hSKJd0r0fv
2016-04-20 11:03:35 -07:00
Margaret Leibovic
d913b4153e Bug 1248399 - Update browser.snippets.geoURL and handling code to use MLS instead of geodude. r=giorgos,grisha a=ritu
MozReview-Commit-ID: wm4ZYbRCcq
2016-03-22 15:50:43 -04:00
Michael Comella
f6d7d53b5a Bug 1245493 - Don't animate when showing toolbar when FF is first unhidden. r=margaret, a=ritu
After this patch, I still occasionally see the toolbar positioned part
way down from the top of the screen. However, this state looks slightly
less janky without the animation I removed and I can't consistently
reproduce it anymore.  Given the DynamicToolbar.setVisible calls I make,
I'd guess this is likely to be a bug caused by BrowserApp.onTabChanged
(and thus DynamicToolbar.setVisible) not getting called instantly and
so the DynamicToolbar is initialized to a different location on screen.
I'd guess it's a bug in DynamicToolbar as to why it's positioned partially
off-screen.

There is a little bit of code duplication, but that is because the code
to load a url on a new intent is duplicated (i.e. once from GeckoApp.initialize
- the initial load - and once from GeckoApp.onNewIntent). This could
potentially be cleaned up if we moved the app loading code into onResume,
but that may not be possible since we need to wait for Gecko to start
up.

Additionally, this patch adds a lot of hard-to-follow global state, which is
also not good.

Preferred solution (bug 1269041): show the toolbar each time onStart is
called (i.e.  FF is unhidden).  This is good for the user - they'll be
more aware which page they're on - but it's janky with the current
implementation, where the page content does not scroll when the toolbar
is shown so previously visible content is hidden. Thus, I went with the
other approach.  fwiw, Chrome does this behavior, but scrolls the toolbar
offscreen shortly after it is shown.

This solution is blocked on bug 1245523.

MozReview-Commit-ID: 7JjCrIf4KTm
2016-03-28 18:50:52 -07:00
Kim Moir
b4757a3686 Bug 1186522 - force per checkin and release desktop firefox builds to require signed add-ons on beta 47 r=mshal a=ritu 2016-05-04 10:28:55 -04:00
Wes Kocher
e682e39dfd Backed out changeset 40dc7dd5bdbf (bug 1186522) for breaking all android reftests and mochitests and more a=backout
MozReview-Commit-ID: DXmGm51OpZc
2016-05-02 15:20:40 -07:00
Kim Moir
86e0e15ae4 Bug 1186522 - force per checkin and release desktop firefox builds to require signed add-ons on beta 47 r=mshal a=ritu 2016-05-02 16:03:04 -04:00
Kartikaya Gupta
535c7568c4 Bug 1268122 - Guard against layerview destruction between the compositor update task being posted and it running. r=snorp a=ritu
MozReview-Commit-ID: HJIFbcduj6E
2016-04-28 15:03:02 -04:00
Mark Capella
ab76a1e9da Bug 1267383 - Followup Telemetry from Bug 1257843, Text Selection Probe, r=sebastian a=ritu
MozReview-Commit-ID: E3srlwsZE0h
2016-05-02 12:32:10 -07:00
Margaret Leibovic
14bd66948d Bug 1268729 - Telemetry probe for synced tabs panel empty view. r=liuche a=ritu
MozReview-Commit-ID: GkKSru8neAm
2016-04-28 17:39:44 -07:00
Jim Chen
30f2e468db Bug 1256147 - Fix keyboard swipe function on Galaxy S7; r=esawin a=ritu 2016-04-29 13:59:31 -07:00
ffxbld
efbd73db65 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-04-25 09:34:48 -07:00
Geoff Brown
9b58b5c1b6 Bug 1247468 - Increase timeout for testBookmarklets. r=margaret, a=test-only 2016-04-11 11:31:33 -06:00
Michael Comella
311c58550b Bug 1260758 - Add distribution field to Fennec core ping. r=mfinkle, r=mkaply, a=lizzard 2016-04-13 15:31:36 -05:00
Michael Comella
3d346a43d2 Bug 1263758 - Correct NPE when using a custom search engine as the default. r=liuche, a=ritu
MozReview-Commit-ID: hpGUIu9yP2
2016-04-11 16:10:48 -07:00
Sebastian Kaspari
7756a55f6b Bug 1244722 - TabQueueHelper.canDrawOverlays(): Implement workaround for Android bug. r=ahunt, a=ritu
Android's Settings.canDrawOverlays() returns true/false for one of the packages with the same
sharedUserId. There's no guarantee that this is actually the current package.

Instead of relying on Settings.canDrawOverlays() we just try to add and remove an invisible
view through WindowManger. If this succeeds then we obviously can draw overlays and if this
fails then we seem to not have the permission.
2016-04-22 16:30:57 +02:00
Michael Comella
eebbe6072e Bug 1264492 - Increment core ping version to 4. r=mkaply, a=ritu
Distribution ID was uplifted to Beta (-> v2) and we landed two new measurements
on Aurora (-> v4).

MozReview-Commit-ID: LLRxNJeZyTi
2016-04-21 14:07:19 -07:00
Carsten "Tomcat" Book
d69564c713 Backed out changeset 5b3bc1699878 (bug 1244722) backed out for bustage 2016-04-22 05:52:45 +02:00
Andrzej Hunt
70429f76c7 Bug 1264138 - Upgrade FxAccountStatusActivity to use AppCompatActivity too r=sebastian a=ritu
Our theming inheritance around Preferences still seems quite messy, however given we'll
need to uplift this I'm planning to tackle this in a separate bug.

We add the LocaleAwareAppCompatActivity in order to avoid affecting other consumers
of LocaleAwareFragementActivity (primarily the SearchActivity). We will investigate
those separately.

MozReview-Commit-ID: KVEZbDdza1s
2016-04-14 08:35:13 -07:00
Andrzej Hunt
99cd8b1747 Bug 1205124 - use AppCompatActivity for GeckoPreferences r=sebastian a=ritu
This patch introduces consistent theming for all supported devices (Android 4+).
Previously we had Jellybean theming on Android 4, and Lollipop theming on 5+.

Note that dialogs will be based on the native device dialogs (i.e. Jellybean on 4,
Lollipop on 5+). This is because we use native Fragments (and not support library
Fragments), which inflate their own (native) Dialogs. Introducing consistent
dialogs would involve replacing the use of native Fragments (and native
PreferenceFragments), and replacing our self-inflated dialogs.

(We have a few self-built dialogs - these could easily be switched to the AppCompat
 AlertDialog, but then we'd have a mix of new and old dialogs on Android 4 devices,
 since PreferenceFragment constructed dialogs would still be the native Android
 dialogs - overall this would be a worse experience.)

It is also usable on 2.3. There, we retain GB theming, however the checkboxes
are replaced with orange checkboxes (as on 4+).

MozReview-Commit-ID: AXbyAfpvfKi
2016-03-28 14:32:07 -07:00
Sebastian Kaspari
213d63f4ee Bug 1244722 - TabQueueHelper.canDrawOverlays(): Implement workaround for Android bug. r=ahunt a=ritu
Android's Settings.canDrawOverlays() returns true/false for one of the packages with the same
sharedUserId. There's no guarantee that this is actually the current package.

Instead of relying on Settings.canDrawOverlays() we just try to add and remove an invisible
view through WindowManger. If this succeeds then we obviously can draw overlays and if this
fails then we seem to not have the permission.

MozReview-Commit-ID: 1jdrQ7iV3ek
2016-03-30 12:58:27 +02:00
Michael Comella
ad23ebeaa0 Bug 1246816 - Add unit tests for profile creation date. r=sebastian a=ritu
MozReview-Commit-ID: 5ONkG2MzHfc
2016-03-31 15:22:09 -07:00
Michael Comella
0b95e5f7e8 Bug 1246816 - Get core ping profile creation date from application install time. r=sebastian a=ritu
MozReview-Commit-ID: Bo07XuqQDWl
2016-03-31 15:30:39 -07:00
Michael Comella
5e42c38afb Bug 1246816 - Add ContextUtils.getPackageInstallTime. r=sebastian a=ritu
MozReview-Commit-ID: JjGcoSwahUF
2016-03-31 14:32:12 -07:00
Michael Kaply
bb7ca40347 Bug 1265742 - Update Google search plugin; r=margaret, a=lizzard 2016-04-19 15:57:50 -05:00
Andrzej Hunt
4a743fd4c7 Bug 1261907 - Reintroduce (necessary) table-created checks in BrowserDatabaseHelper. r=nalexander, a=ritu
Removing these checks causes crashes when trying to upgrade a <= 17 db to >= 23:
(A) upgradeDatabaseFrom17to18 calls createReadingListTable, and we create the table using the new (>=23 schema).
    This schema has no "read" column.
(B) upgradeDatabaseFrom22to23 migrates the same table. As part of the migration it tries to select the "read"
    column, and we crash because that doesn't exist. This was prevented by an early return if didCreateReadingListTable
    was set.

It looks like removing the didCreateTablsTable checks is OK because the migration only adds a foreign-key constraint,
and doesn't depend on any columns that didn't exist in the initial version of the migration. However it seems wasteful
to run the migration on a table that is already in the expected state. Moreover not having table-created checks is
not safe in most cases, and having these checks should be the default pattern - especially in case any future migrations
affecting the same table are added.

MozReview-Commit-ID: 4j1PlQc6LLN
2016-04-08 15:29:44 -07:00
Sebastian Kaspari
fcdaa31bf9 Bug 1264869 - Request STORAGE permission before downloading images. r=liuche, a=lizzard
MozReview-Commit-ID: KJGugrRw5iI
2016-04-15 10:22:22 +02:00
Michael Comella
4f8c8b64aa Bug 1249288 - review: Correct concurrency issues with searchEngineManager. r=sebastian a=ritu
Additionally, added WeakReferences to the SEM in its callbacks so we can
GC ASAP if the Activity (and thus the SEM) gets GC'd. This is important
since we hold a reference to Context which can be a rather large object.

Furthermore, I added some related thread annotations where I felt they
were useful.

MozReview-Commit-ID: KaWlw14uOoN
2016-03-24 11:18:58 -07:00
Michael Comella
11d215048c Bug 1249288 - Don't call SearchEngineManager change callback if it's null. r=margaret a=ritu
The callback may be null if setChangeCallback is never called and would cause
a crash.

MozReview-Commit-ID: BNd16Db1A8Q
2016-02-23 18:11:57 -08:00
Michael Comella
98f1f216a4 Bug 1249288 - Add default search engine to core ping. r=rnewman a=ritu
The default search engine attribute may be null in the core ping if we haven't
been able to retrieve the value yet. It's unclear when this might be, but the
possibility is in the javadoc of `SearchEngineManager.getEngine`.

MozReview-Commit-ID: IrJB6GyjyTO
2016-03-10 16:00:15 -08:00
Michael Comella
7592e0616f Bug 1249288 - Move om.search.providers.SearchEngine\* to omg.search. r=nalexander a=ritu
We want to reuse this code for the main Activity.

MozReview-Commit-ID: BZxIrgmJI2r
2016-02-23 17:27:24 -08:00