Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Wait to load URI from intent until after session restore.#3443

Merged
keianhzo merged 1 commit intomasterfrom
intent-launch
Jun 3, 2020
Merged

Wait to load URI from intent until after session restore.#3443
keianhzo merged 1 commit intomasterfrom
intent-launch

Conversation

@bluemarvin
Copy link
Copy Markdown
Contributor

Fixes #3431

This patch changes the behavior of launching or opening a URI
from an intent. Previously the URI would be opened in the focuses window.
With this patch it matches Fenix and desktop and creates a new tab in the
focused window.

@bluemarvin bluemarvin added this to the #11 polish milestone May 30, 2020
@bluemarvin bluemarvin requested a review from keianhzo May 30, 2020 00:33
@bluemarvin bluemarvin self-assigned this May 30, 2020
@bluemarvin
Copy link
Copy Markdown
Contributor Author

We may want to make this part of the v10.2 release. Regressed by #3364

@bluemarvin bluemarvin force-pushed the intent-launch branch 2 times, most recently from d398ae5 to 2ebd367 Compare June 1, 2020 22:03
Copy link
Copy Markdown
Contributor

@keianhzo keianhzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Maybe we could also replace:

if (Intent.ACTION_VIEW.equals(action)) {
loadFromIntent(intent);
} else if (GeckoRuntime.ACTION_CRASHED.equals(intent.getAction())) {
Log.e(LOGTAG, "Restarted after a crash");
}

By:

if (GeckoRuntime.ACTION_CRASHED.equals(intent.getAction())) {
    Log.e(LOGTAG, "Restarted after a crash");
} else {
    loadFromIntent(intent);
}

As some adb commands like:

adb shell am start -n org.mozilla.vrbrowser.dev/org.mozilla.vrbrowser.VRBrowserActivity "https://example.com"

are not working right now.

Fixes #3431

This patch changes the behavior of launching or opening a URI
from an intent. Previously the URI would be opened in the focuses window.
With this patch it matches Fenix and desktop and creates a new tab in the
focused window.
@bluemarvin
Copy link
Copy Markdown
Contributor Author

@keianhzo Updated.

@bluemarvin bluemarvin requested a review from keianhzo June 2, 2020 18:49
@keianhzo keianhzo merged commit 38cba1e into master Jun 3, 2020
@keianhzo keianhzo deleted the intent-launch branch June 3, 2020 08:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Pico] Cannot send url when launch browser activity if FxR is not running

2 participants