Bug 1578814 - Kill off GeckoViewContentChild.collectSessionState(), as it's no longer used. r=geckoview-reviewers,agi
authorDylan Roeh <droeh@mozilla.com>
Tue, 01 Oct 2019 15:36:28 +0000
changeset 495818 b9c0a2c4fff9ac4ddab644025c0e9b415a693b27
parent 495817 9ffde0fb448b092c0b931610ee26d26e0ddb30a7
child 495819 4a995f0ce00dcfe2f4d859e0a85a1e07f832ed5c
push id114140
push userdvarga@mozilla.com
push dateWed, 02 Oct 2019 18:04:51 +0000
treeherdermozilla-inbound@32eb0ea893f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgeckoview-reviewers, agi
bugs1578814
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1578814 - Kill off GeckoViewContentChild.collectSessionState(), as it's no longer used. r=geckoview-reviewers,agi Differential Revision: https://phabricator.services.mozilla.com/D47774
mobile/android/chrome/geckoview/GeckoViewContentChild.js
--- a/mobile/android/chrome/geckoview/GeckoViewContentChild.js
+++ b/mobile/android/chrome/geckoview/GeckoViewContentChild.js
@@ -103,46 +103,16 @@ class GeckoViewContentChild extends Geck
     removeEventListener("MozDOMFullscreen:Exit", this);
     removeEventListener("MozDOMFullscreen:Exited", this);
     removeEventListener("MozDOMFullscreen:Request", this);
     removeEventListener("contextmenu", this, { capture: true });
     removeEventListener("DOMContentLoaded", this);
     removeEventListener("MozFirstContentfulPaint", this);
   }
 
-  collectSessionState() {
-    let history = SessionHistory.collect(docShell);
-    let formdata = SessionStoreUtils.collectFormData(content);
-    let scrolldata = SessionStoreUtils.collectScrollPosition(content);
-
-    // Save the current document resolution.
-    let zoom = 1;
-    let domWindowUtils = content.windowUtils;
-    zoom = domWindowUtils.getResolution();
-    scrolldata = scrolldata || {};
-    scrolldata.zoom = {};
-    scrolldata.zoom.resolution = zoom;
-
-    // Save some data that'll help in adjusting the zoom level
-    // when restoring in a different screen orientation.
-    let displaySize = {};
-    let width = {},
-      height = {};
-    domWindowUtils.getContentViewerSize(width, height);
-
-    displaySize.width = width.value;
-    displaySize.height = height.value;
-
-    scrolldata.zoom.displaySize = displaySize;
-
-    formdata = PrivacyFilter.filterFormData(formdata || {});
-
-    return { history, formdata, scrolldata };
-  }
-
   toPixels(aLength, aType) {
     if (aType === SCREEN_LENGTH_TYPE_PIXEL) {
       return aLength;
     } else if (aType === SCREEN_LENGTH_TYPE_VIEWPORT_WIDTH) {
       return aLength * content.innerWidth;
     } else if (aType === SCREEN_LENGTH_TYPE_VIEWPORT_HEIGHT) {
       return aLength * content.innerHeight;
     } else if (aType === SCREEN_LENGTH_DOCUMENT_WIDTH) {