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

Issue 23624002: Add UI for RuntimeErrors in the ErrorConsole (Closed)

Created:
7 years, 3 months ago by Devlin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@dc_ec_merge
Visibility:
Public.

Description

Follows https://codereview.chromium.org/22938005/ Add UI elements for extension runtime (javascript) errors on the chrome:extensions page. Include a stack trace and, if possible, links to the source code. TBR=finnur@chromium.org BUG=21734 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221824

Patch Set 1 : #

Total comments: 20

Patch Set 2 : Yoyo's and Ben's #

Total comments: 19

Patch Set 3 : Ben's continued #

Total comments: 4

Patch Set 4 : #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -458 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_error.css View 1 2 3 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/resources/extensions/extension_error.html View 1 1 chunk +22 lines, -1 line 0 comments Download
M chrome/browser/resources/extensions/extension_error.js View 1 2 3 6 chunks +108 lines, -20 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 1 chunk +15 lines, -7 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_error_handler.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_error_handler.cc View 1 2 3 8 chunks +37 lines, -31 lines 9 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.h View 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 5 chunks +23 lines, -5 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_error.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/browser/extension_error.cc View 1 2 2 chunks +31 lines, -0 lines 0 comments Download
A + extensions/browser/file_highlighter.h View 1 3 chunks +63 lines, -25 lines 0 comments Download
A + extensions/browser/file_highlighter.cc View 1 6 chunks +76 lines, -25 lines 2 comments Download
A + extensions/browser/file_highlighter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D extensions/browser/manifest_highlighter.h View 1 chunk +0 lines, -74 lines 0 comments Download
D extensions/browser/manifest_highlighter.cc View 1 chunk +0 lines, -166 lines 0 comments Download
D extensions/browser/manifest_highlighter_unittest.cc View 1 chunk +0 lines, -98 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Devlin
Since Manifest UI should be going through soon, please take a look. Cheers =)
7 years, 3 months ago (2013-09-04 19:37:30 UTC) #1
Yoyo Zhou
LGTM, but I didn't review the js. https://codereview.chromium.org/23624002/diff/11001/extensions/browser/file_highlighter.h File extensions/browser/file_highlighter.h (right): https://codereview.chromium.org/23624002/diff/11001/extensions/browser/file_highlighter.h#newcode41 extensions/browser/file_highlighter.h:41: void HighlightDictionary(base::DictionaryValue* ...
7 years, 3 months ago (2013-09-04 23:43:39 UTC) #2
not at google - send to devlin
got a small way through the JS/HTML/CSS before the end of the day, but fairly ...
7 years, 3 months ago (2013-09-05 00:37:15 UTC) #3
Devlin
https://chromiumcodereview.appspot.com/23624002/diff/11001/chrome/browser/resources/extensions/extension_error.html File chrome/browser/resources/extensions/extension_error.html (right): https://chromiumcodereview.appspot.com/23624002/diff/11001/chrome/browser/resources/extensions/extension_error.html#newcode15 chrome/browser/resources/extensions/extension_error.html:15: <div class="extension-error-detailed-wrapper"> On 2013/09/05 00:37:16, kalman wrote: > "detailed" ...
7 years, 3 months ago (2013-09-05 17:53:55 UTC) #4
not at google - send to devlin
Looked at the rest. https://chromiumcodereview.appspot.com/23624002/diff/11001/chrome/browser/resources/extensions/extension_error.js File chrome/browser/resources/extensions/extension_error.js (right): https://chromiumcodereview.appspot.com/23624002/diff/11001/chrome/browser/resources/extensions/extension_error.js#newcode114 chrome/browser/resources/extensions/extension_error.js:114: * @param {?number} line An ...
7 years, 3 months ago (2013-09-06 17:05:19 UTC) #5
Devlin
https://codereview.chromium.org/23624002/diff/11001/chrome/browser/ui/webui/extensions/extension_error_handler.cc File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right): https://codereview.chromium.org/23624002/diff/11001/chrome/browser/ui/webui/extensions/extension_error_handler.cc#newcode86 chrome/browser/ui/webui/extensions/extension_error_handler.cc:86: DCHECK_EQ(1u, args->GetSize()); On 2013/09/06 17:05:19, kalman wrote: > On ...
7 years, 3 months ago (2013-09-06 18:18:02 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/23624002/diff/22001/chrome/browser/resources/extensions/extension_error.js File chrome/browser/resources/extensions/extension_error.js (right): https://codereview.chromium.org/23624002/diff/22001/chrome/browser/resources/extensions/extension_error.js#newcode208 chrome/browser/resources/extensions/extension_error.js:208: description += ' (' + functionName + ')'; ...
7 years, 3 months ago (2013-09-06 19:00:15 UTC) #7
Devlin
https://codereview.chromium.org/23624002/diff/51001/chrome/browser/resources/extensions/extension_error.js File chrome/browser/resources/extensions/extension_error.js (right): https://codereview.chromium.org/23624002/diff/51001/chrome/browser/resources/extensions/extension_error.js#newcode156 chrome/browser/resources/extensions/extension_error.js:156: requestFileSourceArgs.lineNumber = 0; On 2013/09/06 19:00:15, kalman wrote: > ...
7 years, 3 months ago (2013-09-06 20:56:29 UTC) #8
Devlin
+finnur TBR for webui (code reviewed by yoz@, but need an owner)
7 years, 3 months ago (2013-09-06 21:38:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/23624002/64001
7 years, 3 months ago (2013-09-06 21:38:39 UTC) #10
commit-bot: I haz the power
Change committed as 221824
7 years, 3 months ago (2013-09-07 00:08:29 UTC) #11
Finnur
https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right): https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc#newcode108 chrome/browser/ui/webui/extensions/extension_error_handler.cc:108: base::FilePath path = extension->path().Append(path_suffix); In the event of a ...
7 years, 3 months ago (2013-09-09 09:15:55 UTC) #12
Finnur
https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right): https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc#newcode108 chrome/browser/ui/webui/extensions/extension_error_handler.cc:108: base::FilePath path = extension->path().Append(path_suffix); In the event of a ...
7 years, 3 months ago (2013-09-09 09:15:55 UTC) #13
Devlin
https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right): https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc#newcode108 chrome/browser/ui/webui/extensions/extension_error_handler.cc:108: base::FilePath path = extension->path().Append(path_suffix); On 2013/09/09 09:15:56, Finnur wrote: ...
7 years, 3 months ago (2013-09-09 16:56:02 UTC) #14
Finnur
https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right): https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/extensions/extension_error_handler.cc#newcode108 chrome/browser/ui/webui/extensions/extension_error_handler.cc:108: base::FilePath path = extension->path().Append(path_suffix); > $ vim > ~/.config/google- ...
7 years, 3 months ago (2013-09-09 18:05:43 UTC) #15
Devlin
7 years, 3 months ago (2013-09-09 18:26:14 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/e...
File chrome/browser/ui/webui/extensions/extension_error_handler.cc (right):

https://codereview.chromium.org/23624002/diff/64001/chrome/browser/ui/webui/e...
chrome/browser/ui/webui/extensions/extension_error_handler.cc:108:
base::FilePath path = extension->path().Append(path_suffix);
On 2013/09/09 18:05:43, Finnur wrote:
> > $ vim
> > ~/.config/google-
> chrome/<profile>/Extensions/<extension_id>/<version>/manifest.json
> > will give you the same information, significantly easier...
> 
> The person controlling a compromised renderer does not have access to vim as
> he/she is not the same person as the one sitting by the keyboard. So I'm not
> sure what point you are trying to make here.
> 
> > It's possible that, if the caller is compromised, you could see any other
> > file, yes.  But, is this really a concern? 
> 
> Compromised callers are a concern and we can't always anticipate how they will
> use the small cracks they find. They've shown great ability to jump through
> hoops in the past. As for being able to read arbitrary manifest.json files
> (which is what you were referring to)... probably not a huge deal. Looks
pretty
> innocent, right?
> 
> Although there might be potential value in being able to detect which
extensions
> the user has installed (which you can do if you can request arbitrary
> manifests). Also, people have on occasion distributed their private key with
> their extension, so I wouldn't put it past them to store something sensitive
in
> the manifest. Yes, the extension author would look pretty dumb if it gets
> exploited, but we'd also look a little dumb for enabling it. And then there's
> the question whether any |other| random app out there has ever stored
something
> sensitive in a file called manifest.json?
> 
> Is it likely this would be exploited? No. This is very low on the list of what
> would scare a security person. So low it feels a bit silly to be spending any
> time debating the merits of this because a) it is super easy to fix and b)
that
> seems like the right thing to do.
> 
> Why not fix it? Do we lose anything?

Thanks for the explanation :)  Fixed in 23875013.

Powered by Google App Engine
This is Rietveld 408576698