Bug 1444091 - Remove GeckoSession.importScript() r=esawin,jchen
MozReview-Commit-ID: O8hWCHBQG3
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
@@ -756,27 +756,16 @@ public class GeckoSession extends LayerS
msg.putBoolean("active", active);
mEventDispatcher.dispatch("GeckoView:SetActive", msg);
}
public GeckoSessionSettings getSettings() {
return mSettings;
}
- public void importScript(final String url) {
- if (url.startsWith("resource://android/assets/")) {
- final GeckoBundle data = new GeckoBundle(1);
- data.putString("scriptURL", url);
- getEventDispatcher().dispatch("GeckoView:ImportScript", data);
- return;
- }
-
- throw new IllegalArgumentException("Must import script from 'resources://android/assets/' location.");
- }
-
/**
* Exits fullscreen mode
*/
public void exitFullScreen() {
mEventDispatcher.dispatch("GeckoViewContent:ExitFullScreen", null);
}
/**