Commit Graph

76 Commits (382ca721c4788c348da1bc4c24f702a26fdbe707)

Author SHA1 Message Date
Titouan Thibaud 3e1cab43dd Bug 1871548 - Add telemetry for Open PDF in Fenix 6 months ago
GitStart b5e24ffc3f Bug 1810629 - Add an Android shortcut to go straight to the login and passwords 1 year ago
Ryan VanderMeulen 0df448b78d Revert "Bug 1810629 - Add an Android shortcut to go straight to the login and passwords" due to UI test failures.
This reverts commit 341fef9f30b4f215c2d6e62350455b0c75c660e0.
1 year ago
GitStart 162a81137b Bug 1810629 - Add an Android shortcut to go straight to the login and passwords 1 year ago
Jonas Konrad fdfc155a2d Bug 1807531 - Honor private_browsing_mode value from external intents
Change IntentReceiverActivity so that if the incoming intent has the private_browsing_mode extra set to true, it overrides the openLinksInAPrivateTab setting. This allows external apps to set this flag for sites they want opened in a private app explicitly.

External apps cannot force the link to open in a non-private tab if openLinksInAPrivateTab is enabled, in that case the extra will be ignored.

This is similar to an old fennec feature ( https://bugzilla.mozilla.org/show_bug.cgi?id=1347583 ), however I used the "private_browsing_mode" extra name since it already appears in the code, instead of the "private_tab" extra that fennec used.

Bugzilla bug is 1807531, GitHub bug is #26158
1 year ago
mcarare c34d4a6d0d [fenix] For https://github.com/mozilla-mobile/fenix/issues/25808: Handle PackageManager methods deprecation. 2 years ago
mcarare 932823c871 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Fix ktlint issues and remove them from baseline. 2 years ago
Mugurell f2b6af4f6a [fenix] For https://github.com/mozilla-mobile/fenix/issues/24618 - Add WebNotificationIntentProcessor to IntentReceiverActivity
The processor from Android-Components will know how to handle the intent
specific to web notifications clicks.
2 years ago
mcarare 8128c95710 [fenix] For https://github.com/mozilla-mobile/fenix/issues/24210: Remove wrapper from opened link event. 2 years ago
Roger Yang 31d5ef750b [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/24502: Sanitize external intents 2 years ago
Sebastian Kaspari 51f88636e9 [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/22489: Remove "Fennec to Fenix" migration code 2 years ago
Sarah Khan ab9bc7c071 [fenix] For https://github.com/mozilla-mobile/fenix/issues/23596 and https://github.com/mozilla-mobile/fenix/issues/23309 - Add deeplink to wallpaper settings 2 years ago
Michael Comella 91e7121fa8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/21921: rename MarkersLifecycleCallbacks to ...ActivityLifecycle...
This is to disamibugate with the MarkersFragmentLifecycleCallbacks that
we'll be adding.
3 years ago
Michael Comella 4a132b958b [fenix] For https://github.com/mozilla-mobile/fenix/issues/21299: add duration marker for IntentReceiverActivity.onCreate.
We only instrument onCreate because it's the only one with an
implementation.

While declaring this as a function that accepts a lambda is less
fragile, we've previously had issues with it such as suspected memory
leaks when used for telemetry. Therefore, we go with the simpler
approach.
3 years ago
Michael Comella f53adc5b12 [fenix] For https://github.com/mozilla-mobile/fenix/issues/21299: add markers for all activity lifecycle callbacks.
We implement these all in the same track because between it'd create a
lot noise between this and fragment lifecycle callbacks.
3 years ago
Grisha Kruglov 39561f3644 [fenix] External source support
Adds handling of information about external referrer (package, category)
when dealing with external intents.
3 years ago
Michael Comella 6895920bde [fenix] For https://github.com/mozilla-mobile/fenix/issues/17816: add profiler marker for 2x Activity.onCreate.
The IntentReceiverActivity one is particularly useful to quickly determine
when we can begin executing code in the WARM VIEW case (i.e. "Set selection
begin here").

The HomeActivity one is useful for COLD start up analysis in similar
ways and to see the Activity transitions in WARM VIEW.
3 years ago
Michael Comella 8a9472e540 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: move resetAfter into StrictModeManager.
In a followup PR, we need to add state to strictModeManager (the
number of suppressions). This is much simpler to do when this is defined
as a class rather than an object. However, when this is defined as a
class, `resetAfter` needs access to the strictModeManager. Instead of
passing it in as an argument, it made sense to move this function onto
the strictModeManager instead.

Since folks are used to calling:
```
StrictMode.ThreadPolicy.allowThreadDiskReads().resetAfter
```

We're going to have to add a lint check to prevent them from doing that.
4 years ago
Tiger Oakes 5049ed496d [fenix] For https://github.com/mozilla-mobile/fenix/issues/11903: Fix private custom tabs (https://github.com/mozilla-mobile/fenix/pull/13327) 4 years ago
Michael Comella e85dd6a09c [fenix] No issue: correct position of StartupTimeline; add warning. 4 years ago
Marc Leclair 890963491c [fenix] Added A-C version 48.0.20200626213814 4 years ago
Sachin 028299cf96 [fenix] for https://github.com/mozilla-mobile/fenix/issues/11615 allowed strictMode disk read for violations made by the OS. (https://github.com/mozilla-mobile/fenix/pull/11658) 4 years ago
Tiger Oakes 110771d077 [fenix] Remove Mockito 4 years ago
Sebastian Kaspari c0d229404a [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/9815: Allow Intents to set HomeActivity.OPEN_TO_BROWSER. 4 years ago
Mugurell e53fd401d3 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10844 - Fennec page shortcuts will open in normal tabs
This comes to resolve a small regression in which they were opened in new
custom tab.
4 years ago
Michael Comella 3dc6e1d215 [fenix] For https://github.com/mozilla-mobile/fenix/issues/7781: instrument visual completeness for top sites.
Eyeballing my output in *Debug builds on my P2, this adds approximately 115ms
or slightly less from first frame drawn to visually complete time.
4 years ago
Sebastian Kaspari fdc85bf82e [fenix] IntentReceiverActivity: Simplify intent handling.
This patch removes the need to process() and then match() on every intent processor.
A successful process() means that we already matched. Doing this in two steps caused
issues when the process() failed but later the simple check in match() returned true.

After this patch lands I intent to remove the match() API from the IntentProcessor
interface in AC:
https://github.com/mozilla-mobile/android-components/issues/6097
4 years ago
ekager c61501b72f [fenix] Removes FragmentPreDrawManager changes in BrowserFragment 4 years ago
Roger Yang 0da13d7f00 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/8544: Activity should be reused when opening intents from other apps (https://github.com/mozilla-mobile/fenix/pull/8547) 4 years ago
mcarare 9292ff600f [fenix] For https://github.com/mozilla-mobile/fenix/issues/8354 Fix opening custom tabs and links directly in private mode 4 years ago
mcarare bea5d85173 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8354 Remove unsetting open links in private if not default browser 4 years ago
Jonathan Almeida 5c1dc2bbdc [fenix] For https://github.com/mozilla-mobile/fenix/issues/7092: Add initial Migration UI 5 years ago
Mugurell e470001a48 [fenix] For https://github.com/mozilla-mobile/fenix/issues/4977: Migrate fennec shortcuts (https://github.com/mozilla-mobile/fenix/pull/7251)
* For https://github.com/mozilla-mobile/fenix/issues/4977 - Support opening Fennec pinned website shortcuts in Fenix

Fennec's pinned website shortcuts are set to open the BrowserApp activity.
So we need a new activity alias to actually catch such Intents. Otherwise they
would open "org.mozilla.firefox/.App" without any way to inform that this is
the result of the user clicking on a pinned shortcut.
For actually checking if the newly received Intent is of a Fennec pinned
shortcut we introduce a new FennecBookmarkShortcutsIntentProcessor which will
prepare the Intent to open the shortcut's URL in a new tab.

* For https://github.com/mozilla-mobile/fenix/issues/4977 - Don't keep IntentReceiverActivity on the back stack

For successive Fennec pinned shortcuts to create a new IntentReceiverActivity
and be processed as normal we need to not keep this as our task root.

* For https://github.com/mozilla-mobile/fenix/issues/4977 - Test the FennecBookmarkShortcutsIntentProcessor
5 years ago
Emma Malysz eb02fcfcd7 [fenix] For issue 7192: move unsetOpenLinksInAPrivateTabIfNecessary off main thread. (https://github.com/mozilla-mobile/fenix/pull/7246)
Move method to Settings. There are two instances when we want to call this method: either
processing an intent, or within DefaultBrowserPreference
5 years ago
Tiger Oakes 19b362d4fd [fenix] Extract IntentProcessorType to its own file and add tests (https://github.com/mozilla-mobile/fenix/pull/7012) 5 years ago
Severin Rudie 53b4d6714e [fenix] For https://github.com/mozilla-mobile/fenix/issues/5334: added private custom tab processor (https://github.com/mozilla-mobile/fenix/pull/6845)
* For https://github.com/mozilla-mobile/fenix/issues/5334: added private custom tab processor

* For https://github.com/mozilla-mobile/fenix/issues/5334 - Fixes up IntentReceiverActivity for handling intents

* For 5334: update styling for private custom tabbs

* For 5334: update tests to account for new processors

Note that two are still failing. These appear to be true failures, and will be corrected in a later commit.

* For 5334: fixes bug introduced by changes to IntentReceiverActivity

RCA: intent className and extra were previously set based on which processors matched, not which successfully processed. This patch reintroduces that behavior.

* For 5334: add tests for custom tabs processing
5 years ago
Jeff Boek 11b8410367 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5972 - Fixes bugs when launching in private mode on Android 5 (https://github.com/mozilla-mobile/fenix/pull/6702) 5 years ago
Sawyer Blatz 8314b378d7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5737: Adds telemetry for open links in a private tab (https://github.com/mozilla-mobile/fenix/pull/5975) 5 years ago
Tiger Oakes 1eac564f52 [fenix] Cleanup shortcut code 5 years ago
Tiger Oakes d5c8f813d3 [fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/5225 - Hide AuthCustomTabActivity 5 years ago
Sawyer Blatz 5581b61e60 [fenix] No issue: fixes master (https://github.com/mozilla-mobile/fenix/pull/5777) 5 years ago
Sawyer Blatz dee2e653dd [fenix] For https://github.com/mozilla-mobile/fenix/issues/514 & https://github.com/mozilla-mobile/fenix/issues/5742: Updates "launch links in private tab" functionality (https://github.com/mozilla-mobile/fenix/pull/5721)
* For https://github.com/mozilla-mobile/fenix/issues/514 & https://github.com/mozilla-mobile/fenix/issues/5742: Updates "launch links in private tab" functionality

* Fixes comments
5 years ago
Sawyer Blatz 37254bd908 [fenix] No issue: Updates naming of launch links privately var (https://github.com/mozilla-mobile/fenix/pull/5701)
The previous name was pretty confusing
5 years ago
Sawyer Blatz bc4e241dc6 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5681: Sets OPEN_TO_BROWSER false when using new tab shortcut 5 years ago
Tiger Oakes 5a5913265f [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/4711 - Extract VoiceSearchActivity (https://github.com/mozilla-mobile/fenix/pull/5502) 5 years ago
Christian Sadilek c683e1616a [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/5444: IntentReceiverActivity: Add tests for intent processing 5 years ago
Tiger Oakes e4e9a44e29 [fenix] For https://github.com/mozilla-mobile/fenix/issues/778 - Rename CustomTabActivity 5 years ago
Sawyer Blatz a18a9af1c7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5396: Adds "always launch in private mode" to settings 5 years ago
Sawyer Blatz 3c61270af5 [fenix] For https://github.com/mozilla-mobile/fenix/issues/1744: Adds tests for clipboard 5 years ago
Sawyer Blatz 24abe8b9d8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5396: Reverts broken activity alias 5 years ago