diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 4a800ce8bf6..0f60230fb7f 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4801,9 +4801,8 @@ const nodeToShortcutMap = {
"tabview-button": "key_tabview",
};
const gDynamicTooltipCache = new Map();
-function UpdateDynamicShortcutTooltipText(popupTriggerNode) {
- let label = document.getElementById("dynamic-shortcut-tooltip-label");
- let nodeId = popupTriggerNode.id;
+function UpdateDynamicShortcutTooltipText(aTooltip) {
+ let nodeId = aTooltip.triggerNode.id;
if (!gDynamicTooltipCache.has(nodeId) && nodeId in nodeToTooltipMap) {
let strId = nodeToTooltipMap[nodeId];
let args = [];
@@ -4816,8 +4815,7 @@ function UpdateDynamicShortcutTooltipText(popupTriggerNode) {
}
gDynamicTooltipCache.set(nodeId, gNavigatorBundle.getFormattedString(strId, args));
}
- let desiredLabel = gDynamicTooltipCache.get(nodeId);
- label.setAttribute("value", desiredLabel);
+ aTooltip.setAttribute("label", gDynamicTooltipCache.get(nodeId));
}
/**
diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul
index 577de37fda7..111d83d7537 100644
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -476,9 +476,7 @@
-
-
+ onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
#ifdef CAN_DRAW_IN_TITLEBAR
diff --git a/mobile/android/base/Tab.java b/mobile/android/base/Tab.java
index e2bb1fea487..1a88969381e 100644
--- a/mobile/android/base/Tab.java
+++ b/mobile/android/base/Tab.java
@@ -74,6 +74,12 @@ public class Tab {
public static final int STATE_SUCCESS = 2;
public static final int STATE_ERROR = 3;
+ public static final int LOAD_PROGRESS_INIT = 10;
+ public static final int LOAD_PROGRESS_START = 20;
+ public static final int LOAD_PROGRESS_LOCATION_CHANGE = 60;
+ public static final int LOAD_PROGRESS_LOADED = 80;
+ public static final int LOAD_PROGRESS_STOP = 100;
+
private static final int DEFAULT_BACKGROUND_COLOR = Color.WHITE;
public enum ErrorType {
@@ -112,6 +118,7 @@ public class Tab {
mPluginViews = new ArrayList();
mPluginLayers = new HashMap