Github user TheKingOfGods commented on a diff in the pull request:
https://github.com/apache/incubator-weex/pull/1058#discussion_r173389264
--- Diff: android/sdk/src/main/java/com/taobao/weex/ui/view/WXWebView.java
---
@@ -230,7 +295,79 @@ public void onReceivedTitle(WebView view, String
title) {
}
}
+ @Override
--- End diff --
Yes, `addJavascriptInterface` is better, and it will be used when Android
API >= 17 . But there is a
[risk](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6636) before 17.
So `prompt` is used as a downgrade when Android API < 17
---