Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Issue 992833002: Move minor WebViewChromium implementation to chromium layer (Closed)

Created:
5 years, 9 months ago by boliu
Modified:
5 years, 9 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move minor WebViewChromium implementation to chromium layer getUrl/getOriginalUrl logic already implemented in chromium layer. Move js interface annotation to chromium layer, and fix tests that did not have @JavascriptInterface annotation. BUG=464491 Committed: https://crrev.com/6a5a246814adb820e6daf1de37215d3047bb3831 Cr-Commit-Position: refs/heads/master@{#319880}

Patch Set 1 #

Patch Set 2 : fix import #

Total comments: 2

Patch Set 3 : rename #

Messages

Total messages: 11 (3 generated)
boliu
AddJavascriptInterface is your specialty again :) I think this is the last trivial refactors
5 years, 9 months ago (2015-03-10 02:22:24 UTC) #2
mnaganov (inactive)
LGTM % method rename https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2126 android_webview/java/src/org/chromium/android_webview/AwContents.java:2126: public void addPossiblyUnsafeJavascriptInterface(Object object, String ...
5 years, 9 months ago (2015-03-10 09:53:58 UTC) #3
boliu
https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2126 android_webview/java/src/org/chromium/android_webview/AwContents.java:2126: public void addPossiblyUnsafeJavascriptInterface(Object object, String name) { On 2015/03/10 ...
5 years, 9 months ago (2015-03-10 14:34:01 UTC) #4
boliu
cts WebViewTest still pass
5 years, 9 months ago (2015-03-10 14:45:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/992833002/40001
5 years, 9 months ago (2015-03-10 14:46:18 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-10 15:13:34 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/6a5a246814adb820e6daf1de37215d3047bb3831 Cr-Commit-Position: refs/heads/master@{#319880}
5 years, 9 months ago (2015-03-10 15:14:13 UTC) #10
mnaganov (inactive)
5 years, 9 months ago (2015-03-10 15:32:02 UTC) #11
Message was sent while issue was closed.
On 2015/03/10 14:34:01, boliu wrote:
>
https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src...
> File android_webview/java/src/org/chromium/android_webview/AwContents.java
> (right):
> 
>
https://codereview.chromium.org/992833002/diff/20001/android_webview/java/src...
> android_webview/java/src/org/chromium/android_webview/AwContents.java:2126:
> public void addPossiblyUnsafeJavascriptInterface(Object object, String name) {
> On 2015/03/10 09:53:58, mnaganov (cr) wrote:
> > I think you should rename this method to just 'addJavascriptInterface',
> because
> > 'PossiblyUnsafe' was there due to the fact that you could specify 'null' as
> the
> > annotation, and that would expose all the methods of your Java class, which
is
> > unsafe. And now you can't do that.
> 
> Done.
> 
> And it's more like UnsafeWhenTargetLessThanJBMR1, but whatever :p

Right, but those apps are unsafe anyway, we can't do anything on our side to
help them.

Powered by Google App Engine
This is Rietveld 408576698