summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/samples/browser/src
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/android-components/samples/browser/src')
-rw-r--r--mobile/android/android-components/samples/browser/src/androidTest/assets/index.html6
-rw-r--r--mobile/android/android-components/samples/browser/src/main/assets/extensions/borderify/borderify.js2
-rw-r--r--mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js11
-rw-r--r--mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.template.json4
-rw-r--r--mobile/android/android-components/samples/browser/src/main/java/org/mozilla/samples/browser/BaseBrowserFragment.kt1
5 files changed, 13 insertions, 11 deletions
diff --git a/mobile/android/android-components/samples/browser/src/androidTest/assets/index.html b/mobile/android/android-components/samples/browser/src/androidTest/assets/index.html
index 9f5632c044..1b7817eef2 100644
--- a/mobile/android/android-components/samples/browser/src/androidTest/assets/index.html
+++ b/mobile/android/android-components/samples/browser/src/androidTest/assets/index.html
@@ -1,5 +1,5 @@
<html>
-<body>
-<h1 id="website_title">Hello World!</h1>
-</body>
+ <body>
+ <h1 id="website_title">Hello World!</h1>
+ </body>
</html>
diff --git a/mobile/android/android-components/samples/browser/src/main/assets/extensions/borderify/borderify.js b/mobile/android/android-components/samples/browser/src/main/assets/extensions/borderify/borderify.js
index af58957d88..b9a5d6bc18 100644
--- a/mobile/android/android-components/samples/browser/src/main/assets/extensions/borderify/borderify.js
+++ b/mobile/android/android-components/samples/browser/src/main/assets/extensions/borderify/borderify.js
@@ -2,4 +2,4 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-document.body.style.border = "5px solid red"; \ No newline at end of file
+document.body.style.border = "5px solid red";
diff --git a/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js b/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js
index 950936be4c..f3ee460d9b 100644
--- a/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js
+++ b/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js
@@ -6,7 +6,7 @@
* inadvertently match elements in the article content. */
// Counts to three and sends a greeting via the browser action of a newly created tab.
-browser.tabs.onCreated.addListener((tab) => {
+browser.tabs.onCreated.addListener(tab => {
let counter = 0;
let intervalId = setInterval(() => {
var message;
@@ -16,9 +16,12 @@ browser.tabs.onCreated.addListener((tab) => {
message = "Hi!";
clearInterval(intervalId);
}
- browser.browserAction.setBadgeTextColor({tabId: tab.id, color: "#FFFFFF"});
- browser.browserAction.setBadgeText({tabId: tab.id, text: message});
+ browser.browserAction.setBadgeTextColor({
+ tabId: tab.id,
+ color: "#FFFFFF",
+ });
+ browser.browserAction.setBadgeText({ tabId: tab.id, text: message });
}, 1000);
});
-browser.browserAction.setBadgeBackgroundColor({color: "#AAAAAA"}); \ No newline at end of file
+browser.browserAction.setBadgeBackgroundColor({ color: "#AAAAAA" });
diff --git a/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.template.json b/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.template.json
index 04dc17aa2f..57e0949ec0 100644
--- a/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.template.json
+++ b/mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.template.json
@@ -16,7 +16,5 @@
"default_title": "Test",
"default_popup": "popup.html"
},
- "permissions": [
- "tabs"
- ]
+ "permissions": ["tabs"]
}
diff --git a/mobile/android/android-components/samples/browser/src/main/java/org/mozilla/samples/browser/BaseBrowserFragment.kt b/mobile/android/android-components/samples/browser/src/main/java/org/mozilla/samples/browser/BaseBrowserFragment.kt
index 7cef15d75f..bf5efccc2b 100644
--- a/mobile/android/android-components/samples/browser/src/main/java/org/mozilla/samples/browser/BaseBrowserFragment.kt
+++ b/mobile/android/android-components/samples/browser/src/main/java/org/mozilla/samples/browser/BaseBrowserFragment.kt
@@ -82,6 +82,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Activit
feature = SessionFeature(
components.store,
components.sessionUseCases.goBack,
+ components.sessionUseCases.goForward,
binding.engineView,
sessionId,
),