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

Issue 748373003: Report errors when parsing Manifest and expose them in developer console. (Closed)

Created:
6 years ago by mlamouri (slow - plz ping)
Modified:
6 years ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Report errors when parsing Manifest and expose them in developer console. The ManifestParser reports a list of errors (as strings) that are then propagated to the WebFrame's console by the ManifestManager. BUG=437210 Committed: https://crrev.com/5bb64e626a33277374f4c23449c212cd3482e550 Cr-Commit-Position: refs/heads/master@{#305998}

Patch Set 1 #

Patch Set 2 : add integration test #

Total comments: 34

Patch Set 3 : review comments #

Total comments: 1

Patch Set 4 : use web contents delagate to catch console messages #

Total comments: 8

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -213 lines) Patch
M content/browser/manifest/manifest_browsertest.cc View 1 2 3 4 10 chunks +83 lines, -1 line 0 comments Download
M content/renderer/manifest/manifest_manager.cc View 3 chunks +20 lines, -4 lines 0 comments Download
M content/renderer/manifest/manifest_parser.h View 1 2 2 chunks +111 lines, -5 lines 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 1 2 3 4 6 chunks +180 lines, -183 lines 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 2 42 chunks +226 lines, -18 lines 0 comments Download
A + content/test/data/manifest/parsing-errors.html View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A content/test/data/manifest/parsing-errors-manifest.json View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
mlamouri (slow - plz ping)
6 years ago (2014-11-27 12:03:49 UTC) #2
Peter Beverloo
Whoo! I like this :-). Thanks for all the tests. https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc File content/browser/manifest/manifest_browsertest.cc (right): https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc#newcode26 ...
6 years ago (2014-11-27 13:24:32 UTC) #3
mlamouri (slow - plz ping)
https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc File content/browser/manifest/manifest_browsertest.cc (right): https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc#newcode26 content/browser/manifest/manifest_browsertest.cc:26: logging::SetLogMessageHandler(nullptr); On 2014/11/27 13:24:31, Peter Beverloo wrote: > indentation. ...
6 years ago (2014-11-27 13:49:09 UTC) #4
Peter Beverloo
lgtm https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc File content/browser/manifest/manifest_browsertest.cc (right): https://codereview.chromium.org/748373003/diff/20001/content/browser/manifest/manifest_browsertest.cc#newcode53 content/browser/manifest/manifest_browsertest.cc:53: file && file == std::string("CONSOLE")) { On 2014/11/27 ...
6 years ago (2014-11-27 13:55:15 UTC) #5
Peter Beverloo
I like this, thanks for trying it out!! lgtm https://codereview.chromium.org/748373003/diff/60001/content/browser/manifest/manifest_browsertest.cc File content/browser/manifest/manifest_browsertest.cc (right): https://codereview.chromium.org/748373003/diff/60001/content/browser/manifest/manifest_browsertest.cc#newcode21 content/browser/manifest/manifest_browsertest.cc:21: ...
6 years ago (2014-11-27 14:37:38 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/748373003/diff/60001/content/browser/manifest/manifest_browsertest.cc File content/browser/manifest/manifest_browsertest.cc (right): https://codereview.chromium.org/748373003/diff/60001/content/browser/manifest/manifest_browsertest.cc#newcode21 content/browser/manifest/manifest_browsertest.cc:21: class MockWebContentsDelegate : public content::WebContentsDelegate { On 2014/11/27 14:37:37, ...
6 years ago (2014-11-27 14:44:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748373003/80001
6 years ago (2014-11-27 14:53:45 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/2770)
6 years ago (2014-11-27 15:50:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748373003/80001
6 years ago (2014-11-27 15:55:52 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-11-27 16:38:36 UTC) #14
commit-bot: I haz the power
6 years ago (2014-11-27 16:39:25 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5bb64e626a33277374f4c23449c212cd3482e550
Cr-Commit-Position: refs/heads/master@{#305998}

Powered by Google App Engine
This is Rietveld 408576698