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:
Jim Chen 2016-09-14 12:43:36 -04:00
parent de52df3d2a
commit cbdc48211c
3 changed files with 0 additions and 12 deletions

View File

@ -1662,7 +1662,6 @@ public abstract class GeckoApp
if (GeckoThread.isRunning()) {
geckoConnected();
GeckoAppShell.notifyObservers("Viewport:Flush", null);
}
}

View File

@ -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);

View File

@ -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);
}