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

Issue 18799006: Extension Error Piping - Blink: Chrome Side (Closed)

Created:
7 years, 5 months ago by Devlin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pipe detailed information (including stack trace) about runtime JS errors caused by extensions from the WebKit side over to the Chrome side. This is needed for the Extension Error Console project described here: https://docs.google.com/a/chromium.org/document/d/1moGXfxo6BbulkoCWISlKq2aQR_buVYGeGhDj6_bqMXk/edit?pli=1#heading=h.rh6wl5ot0k8n Goes with https://codereview.chromium.org/18822004/ BUG=21734 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218881

Patch Set 1 #

Total comments: 8

Patch Set 2 : Layering violation fixed #

Total comments: 1

Patch Set 3 : Consolidate [did]AddMessageToConsole() and reportDetailedMessage() #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Comment updated #

Total comments: 2

Patch Set 6 : Use v8 Contexts #

Patch Set 7 : #

Patch Set 8 : Pass in plaintext, per Pavel's suggestion #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : Document |source| param in ContentRendererClient #

Patch Set 11 : Include backwards-compatible method for staggered landing with Blink #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -10 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 2 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Devlin
(2/2)
7 years, 5 months ago (2013-07-10 22:24:25 UTC) #1
Yoyo Zhou
I'm worried about references to extensions in content being a possible layering violation, even if ...
7 years, 5 months ago (2013-07-10 23:39:10 UTC) #2
Matt Perry
https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc#newcode773 content/renderer/render_view_impl.cc:773: static const char extension_url_prefix[] = "chrome-extension://"; This is defined ...
7 years, 5 months ago (2013-07-10 23:43:13 UTC) #3
Devlin
https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc#newcode772 content/renderer/render_view_impl.cc:772: static const char schema_delimeter[] = "://"; On 2013/07/10 23:39:10, ...
7 years, 5 months ago (2013-07-11 00:55:35 UTC) #4
Devlin
On 2013/07/11 00:55:35, D Cronin wrote: > https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc#newcode772 ...
7 years, 5 months ago (2013-07-11 20:28:53 UTC) #5
Devlin
On 2013/07/11 00:55:35, D Cronin wrote: > https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/18799006/diff/1/content/renderer/render_view_impl.cc#newcode772 ...
7 years, 5 months ago (2013-07-11 20:28:54 UTC) #6
Matt Perry
lgtm https://codereview.chromium.org/18799006/diff/30001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/18799006/diff/30001/chrome/renderer/chrome_content_renderer_client.cc#newcode1291 chrome/renderer/chrome_content_renderer_client.cc:1291: // url at all (as in the source ...
7 years, 5 months ago (2013-07-15 21:35:31 UTC) #7
Devlin
https://codereview.chromium.org/18799006/diff/30001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/18799006/diff/30001/chrome/renderer/chrome_content_renderer_client.cc#newcode1291 chrome/renderer/chrome_content_renderer_client.cc:1291: // url at all (as in the source being ...
7 years, 5 months ago (2013-07-16 01:41:28 UTC) #8
pfeldman
https://codereview.chromium.org/18799006/diff/35001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/18799006/diff/35001/chrome/renderer/chrome_content_renderer_client.cc#newcode1293 chrome/renderer/chrome_content_renderer_client.cc:1293: return !url.is_empty() && This does not look good. It ...
7 years, 5 months ago (2013-07-17 09:08:37 UTC) #9
Devlin
https://codereview.chromium.org/18799006/diff/35001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/18799006/diff/35001/chrome/renderer/chrome_content_renderer_client.cc#newcode1293 chrome/renderer/chrome_content_renderer_client.cc:1293: return !url.is_empty() && On 2013/07/17 09:08:38, pfeldman wrote: > ...
7 years, 5 months ago (2013-07-17 22:13:54 UTC) #10
pfeldman
lgtm https://chromiumcodereview.appspot.com/18799006/diff/63001/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://chromiumcodereview.appspot.com/18799006/diff/63001/content/renderer/render_view_impl.h#newcode21 content/renderer/render_view_impl.h:21: #include "base/strings/string16.h" You don't need it anymore?
7 years, 4 months ago (2013-08-16 08:00:48 UTC) #11
Devlin
https://chromiumcodereview.appspot.com/18799006/diff/63001/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://chromiumcodereview.appspot.com/18799006/diff/63001/content/renderer/render_view_impl.h#newcode21 content/renderer/render_view_impl.h:21: #include "base/strings/string16.h" On 2013/08/16 08:00:48, pfeldman wrote: > You ...
7 years, 4 months ago (2013-08-16 16:06:27 UTC) #12
Devlin
Now that the WebKit side is straightened out... +jochen@ - chrome/renderer/*, content/browser/renderer_host/*, content/browser/web_contents/*, content/renderer/* +joi@ ...
7 years, 4 months ago (2013-08-19 20:33:56 UTC) #13
Devlin
On 2013/08/19 20:33:56, D Cronin wrote: > Now that the WebKit side is straightened out... ...
7 years, 4 months ago (2013-08-19 20:34:43 UTC) #14
Jói
https://codereview.chromium.org/18799006/diff/63001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/18799006/diff/63001/content/public/renderer/content_renderer_client.h#newcode250 content/public/renderer/content_renderer_client.h:250: const base::string16& source) const; Please document the semantics of ...
7 years, 4 months ago (2013-08-20 12:16:48 UTC) #15
Devlin
https://codereview.chromium.org/18799006/diff/63001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/18799006/diff/63001/content/public/renderer/content_renderer_client.h#newcode250 content/public/renderer/content_renderer_client.h:250: const base::string16& source) const; On 2013/08/20 12:16:49, Jói wrote: ...
7 years, 4 months ago (2013-08-20 16:09:36 UTC) #16
Jói
//content/public LGTM.
7 years, 4 months ago (2013-08-20 17:22:47 UTC) #17
Cris Neckar
Have you uploaded a CL which implements RenderViewHostDelegate::AddMessageToConsole() yet? please add me for a review ...
7 years, 4 months ago (2013-08-20 21:23:58 UTC) #18
Devlin
On 2013/08/20 21:23:58, Cris Neckar wrote: > Have you uploaded a CL which implements > ...
7 years, 4 months ago (2013-08-21 00:19:07 UTC) #19
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-21 08:16:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/18799006/85014
7 years, 4 months ago (2013-08-21 20:23:30 UTC) #21
commit-bot: I haz the power
Change committed as 218881
7 years, 4 months ago (2013-08-22 00:42:03 UTC) #22
jam
https://chromiumcodereview.appspot.com/18799006/diff/85014/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://chromiumcodereview.appspot.com/18799006/diff/85014/content/public/renderer/content_renderer_client.h#newcode251 content/public/renderer/content_renderer_client.h:251: // (e.g., "chrome-extension://<extension_id>/background.js"), or internal nit: it's a layering ...
7 years, 4 months ago (2013-08-25 07:12:57 UTC) #23
Devlin
7 years, 3 months ago (2013-08-26 20:32:40 UTC) #24
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/18799006/diff/85014/content/public/ren...
File content/public/renderer/content_renderer_client.h (right):

https://chromiumcodereview.appspot.com/18799006/diff/85014/content/public/ren...
content/public/renderer/content_renderer_client.h:251: // (e.g.,
"chrome-extension://<extension_id>/background.js"), or internal
On 2013/08/25 07:12:58, jam wrote:
> nit: it's a layering violation to mention concepts from embedders, like
> extensions, in content. please remove this mention

Done in https://codereview.chromium.org/23252006/

Powered by Google App Engine
This is Rietveld 408576698