mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1291385
- 3. Don't send viewport flush message; r=snorp
We used to use it to sync viewport metrics between Gecko and Java, but I don't think this is needed anymore.
This commit is contained in:
parent
de52df3d2a
commit
cbdc48211c
@ -1662,7 +1662,6 @@ public abstract class GeckoApp
|
||||
|
||||
if (GeckoThread.isRunning()) {
|
||||
geckoConnected();
|
||||
GeckoAppShell.notifyObservers("Viewport:Flush", null);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -377,7 +377,6 @@ var BrowserApp = {
|
||||
Services.obs.addObserver(this, "ScrollTo:FocusedInput", false);
|
||||
Services.obs.addObserver(this, "Sanitize:ClearData", false);
|
||||
Services.obs.addObserver(this, "FullScreen:Exit", false);
|
||||
Services.obs.addObserver(this, "Viewport:Flush", false);
|
||||
Services.obs.addObserver(this, "Passwords:Init", false);
|
||||
Services.obs.addObserver(this, "FormHistory:Init", false);
|
||||
Services.obs.addObserver(this, "android-get-pref", false);
|
||||
@ -1782,10 +1781,6 @@ var BrowserApp = {
|
||||
browser.contentDocument.exitFullscreen();
|
||||
break;
|
||||
|
||||
case "Viewport:Flush":
|
||||
this.contentDocumentChanged();
|
||||
break;
|
||||
|
||||
case "Passwords:Init": {
|
||||
let storage = Cc["@mozilla.org/login-manager/storage/mozStorage;1"].
|
||||
getService(Ci.nsILoginManagerStorage);
|
||||
|
@ -386,13 +386,7 @@ public class GeckoView extends LayerView
|
||||
throw new IllegalArgumentException("Must import script from 'resources://android/assets/' location.");
|
||||
}
|
||||
|
||||
public void connectToGecko() {
|
||||
GeckoAppShell.notifyObservers("Viewport:Flush", null);
|
||||
}
|
||||
|
||||
private void handleReady(final JSONObject message) {
|
||||
connectToGecko();
|
||||
|
||||
if (mChromeDelegate != null) {
|
||||
mChromeDelegate.onReady(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user