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

Issue 332693004: Add a content API for postMessage (Closed)

Created:
6 years, 6 months ago by sgurun-gerrit only
Modified:
6 years, 5 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org, nasko+codewatch_chromium.org
Visibility:
Public.

Description

Add a content API for postMessage. BUG=393291 Add a content API for postMessage so webview can utilize this API for posting messages to JS. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284320

Patch Set 1 #

Patch Set 2 : Experiment with extending the ViewMsg_PostMessage_Params #

Patch Set 3 : get rid of json. plain string is fine. #

Total comments: 6

Patch Set 4 : addressed reviews #

Patch Set 5 : Added a test case #

Patch Set 6 : extend content api to set source origin #

Total comments: 4

Patch Set 7 : addressed mnaganov's review #

Total comments: 9

Patch Set 8 : address code review from mkosiba & nasko #

Total comments: 3

Patch Set 9 : address jochen's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -2 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
A content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
sgurun-gerrit only
Hello, I have started working on the postmessage API for WebView. The first goal is ...
6 years, 6 months ago (2014-06-17 23:38:19 UTC) #1
mnaganov (inactive)
On 2014/06/17 23:38:19, sgurun wrote: > Hello, > > I have started working on the ...
6 years, 6 months ago (2014-06-18 08:45:20 UTC) #2
sgurun-gerrit only
On 2014/06/18 08:45:20, Mikhail Naganov (Cr) wrote: > On 2014/06/17 23:38:19, sgurun wrote: > > ...
6 years, 6 months ago (2014-06-18 16:40:35 UTC) #3
mnaganov (inactive)
On 2014/06/18 16:40:35, sgurun wrote: > On 2014/06/18 08:45:20, Mikhail Naganov (Cr) wrote: > > ...
6 years, 6 months ago (2014-06-18 17:03:06 UTC) #4
sgurun-gerrit only
On 2014/06/18 17:03:06, Mikhail Naganov (Cr) wrote: > On 2014/06/18 16:40:35, sgurun wrote: > > ...
6 years, 6 months ago (2014-06-18 17:46:19 UTC) #5
nasko
Some initial comments. I'm not a fan of the custom code in RenderViewImpl to construct ...
6 years, 6 months ago (2014-06-20 16:56:52 UTC) #6
sgurun-gerrit only
On 2014/06/20 16:56:52, nasko wrote: > Some initial comments. I'm not a fan of the ...
6 years, 6 months ago (2014-06-20 18:00:49 UTC) #7
sgurun-gerrit only
Hello, Hey Jochen, can I also get your guidance (especially wrt to the IPC) on ...
6 years, 5 months ago (2014-07-11 00:45:46 UTC) #8
jochen (gone - plz use gerrit)
+marja
6 years, 5 months ago (2014-07-11 09:23:00 UTC) #9
sgurun-gerrit only
On 2014/07/11 09:23:00, jochen wrote: > +marja PTAL, thanks.
6 years, 5 months ago (2014-07-12 00:10:11 UTC) #10
mnaganov (inactive)
https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc#newcode1441 content/browser/android/content_view_core_impl.cc:1441: if (host) nit: bail out early if there is ...
6 years, 5 months ago (2014-07-14 15:19:29 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc#newcode1441 content/browser/android/content_view_core_impl.cc:1441: if (host) On 2014/07/14 15:19:29, Mikhail Naganov (Cr) wrote: ...
6 years, 5 months ago (2014-07-16 00:43:28 UTC) #12
sgurun-gerrit only
On 2014/07/16 00:43:28, sgurun wrote: > https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://codereview.chromium.org/332693004/diff/100001/content/browser/android/content_view_core_impl.cc#newcode1441 > ...
6 years, 5 months ago (2014-07-16 00:53:35 UTC) #13
nasko
IPC LGTM https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h#newcode489 content/common/view_messages.h:489: // a simple string. If it is ...
6 years, 5 months ago (2014-07-16 08:06:15 UTC) #14
mkosiba (inactive)
https://codereview.chromium.org/332693004/diff/120001/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java File content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java (right): https://codereview.chromium.org/332693004/diff/120001/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java#newcode1 content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java:1: // Copyright 2012 The Chromium Authors. All rights reserved. ...
6 years, 5 months ago (2014-07-16 16:08:44 UTC) #15
Yaron
https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc#newcode1429 content/browser/android/content_view_core_impl.cc:1429: void ContentViewCoreImpl::PostMessageToFrame(JNIEnv* env, jobject obj, given that this is ...
6 years, 5 months ago (2014-07-16 17:18:05 UTC) #16
sgurun-gerrit only
https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc#newcode1429 content/browser/android/content_view_core_impl.cc:1429: void ContentViewCoreImpl::PostMessageToFrame(JNIEnv* env, jobject obj, Himm, I don't think ...
6 years, 5 months ago (2014-07-16 18:01:27 UTC) #17
Yaron
https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc#newcode1429 content/browser/android/content_view_core_impl.cc:1429: void ContentViewCoreImpl::PostMessageToFrame(JNIEnv* env, jobject obj, On 2014/07/16 18:01:27, sgurun ...
6 years, 5 months ago (2014-07-16 18:09:20 UTC) #18
sgurun-gerrit only
On 2014/07/16 18:09:20, Yaron wrote: > https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc#newcode1429 > ...
6 years, 5 months ago (2014-07-16 18:31:23 UTC) #19
nasko
On 2014/07/16 18:31:23, sgurun wrote: > On 2014/07/16 18:09:20, Yaron wrote: > > > https://codereview.chromium.org/332693004/diff/120001/content/browser/android/content_view_core_impl.cc ...
6 years, 5 months ago (2014-07-16 19:01:59 UTC) #20
sgurun-gerrit only
https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h#newcode489 content/common/view_messages.h:489: // a simple string. If it is a raw ...
6 years, 5 months ago (2014-07-16 20:35:16 UTC) #21
sgurun-gerrit only
On 2014/07/16 20:35:16, sgurun wrote: > https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h > File content/common/view_messages.h (right): > > https://codereview.chromium.org/332693004/diff/120001/content/common/view_messages.h#newcode489 > ...
6 years, 5 months ago (2014-07-17 17:23:39 UTC) #22
Yaron
lgtm given that CVC is a dumping ground of stuff and this logically fits. However, ...
6 years, 5 months ago (2014-07-17 17:48:54 UTC) #23
sgurun-gerrit only
On 2014/07/17 17:48:54, Yaron wrote: > lgtm given that CVC is a dumping ground of ...
6 years, 5 months ago (2014-07-17 18:59:28 UTC) #24
sgurun-gerrit only
On 2014/07/17 18:59:28, sgurun wrote: > On 2014/07/17 17:48:54, Yaron wrote: > > lgtm given ...
6 years, 5 months ago (2014-07-17 19:00:02 UTC) #25
jamesr
I'm not very familiar with WebSerializedScriptValue - you should find a reviewer who is.
6 years, 5 months ago (2014-07-17 20:02:01 UTC) #26
sgurun-gerrit only
On 2014/07/17 20:02:01, jamesr wrote: > I'm not very familiar with WebSerializedScriptValue - you should ...
6 years, 5 months ago (2014-07-17 20:52:08 UTC) #27
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/332693004/diff/140001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/332693004/diff/140001/content/renderer/render_view_impl.cc#newcode2975 content/renderer/render_view_impl.cc:2975: v8::HandleScope handle_scope(v8::Isolate::GetCurrent()); should be blink::mainThreadIsolate()
6 years, 5 months ago (2014-07-18 09:20:28 UTC) #28
sgurun-gerrit only
thanks. @jamesr: got jochen's lgtm for content/renderer. now need owner's lgtm. thanks https://codereview.chromium.org/332693004/diff/140001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc ...
6 years, 5 months ago (2014-07-18 16:13:44 UTC) #29
sgurun-gerrit only
@jamesr: already got lgtm from jochen. since you are the only owner and since you ...
6 years, 5 months ago (2014-07-18 21:11:34 UTC) #30
sgurun-gerrit only
The CQ bit was checked by sgurun@chromium.org
6 years, 5 months ago (2014-07-18 21:11:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/332693004/160001
6 years, 5 months ago (2014-07-18 21:13:19 UTC) #32
sgurun-gerrit only
On 2014/07/18 21:13:19, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 5 months ago (2014-07-18 22:31:16 UTC) #33
commit-bot: I haz the power
Change committed as 284320
6 years, 5 months ago (2014-07-19 05:10:27 UTC) #34
jamesr
6 years, 5 months ago (2014-07-20 03:32:39 UTC) #35
Message was sent while issue was closed.
On 2014/07/18 22:31:16, sgurun wrote:
> On 2014/07/18 21:13:19, I haz the power (commit-bot) wrote:
> > CQ is trying da patch. Follow status at
> >  https://chromium-status.appspot.com/cq/sgurun@chromium.org/332693004/160001
> 
> Himm I missed jochen was content owner. sorry for TBRing.

Owners in parents cover child directories, right. I'm useful mostly for
renderer-only patches :)

Powered by Google App Engine
This is Rietveld 408576698