mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 906041 - (Part 2) Dismiss editing mode if the user is loading a URL from an external app. r=lucasr
This commit is contained in:
parent
1e24c79c0e
commit
5b4b70c66a
@ -2137,7 +2137,18 @@ abstract public class BrowserApp extends GeckoApp
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createURILoadEvent(uri));
|
||||
}
|
||||
|
||||
if (!Intent.ACTION_MAIN.equals(action) || !mInitialized) {
|
||||
if (!mInitialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Dismiss editing mode if the user is loading a URL from an external app.
|
||||
if (Intent.ACTION_VIEW.equals(action)) {
|
||||
dismissEditingMode();
|
||||
return;
|
||||
}
|
||||
|
||||
// Only solicit feedback when the app has been launched from the icon shortcut.
|
||||
if (!Intent.ACTION_MAIN.equals(action)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user