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

Issue 3119028: Use console.log to report NaCl errors in Chrome instead of alerts (Closed)

Created:
10 years, 4 months ago by gregoryd
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Use console.log to report NaCl errors in Chrome instead of alerts BUG=51598 Committed: http://code.google.com/p/nativeclient/source/detail?r=3067

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -27 lines) Patch
M src/trusted/plugin/browser_interface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M src/trusted/plugin/npapi/browser_impl_npapi.h View 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M src/trusted/plugin/npapi/browser_impl_npapi.cc View 1 2 3 4 5 6 7 8 9 2 chunks +49 lines, -1 line 1 comment Download
M src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 8 9 5 chunks +7 lines, -9 lines 1 comment Download
M src/trusted/plugin/ppapi/browser_interface_ppapi.h View 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M src/trusted/plugin/ppapi/browser_interface_ppapi.cc View 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 7 8 9 6 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
gregoryd
10 years, 4 months ago (2010-08-18 20:05:47 UTC) #1
Mark Seaborn
Can you disambiguate the bug number by using a full URL, please?
10 years, 4 months ago (2010-08-18 20:08:08 UTC) #2
gregoryd
On 2010/08/18 20:08:08, Mark Seaborn wrote: > Can you disambiguate the bug number by using ...
10 years, 4 months ago (2010-08-18 20:12:04 UTC) #3
Mark Seaborn
http://codereview.chromium.org/3119028/diff/8001/9002 File src/trusted/plugin/npapi/browser_impl_npapi.cc (right): http://codereview.chromium.org/3119028/diff/8001/9002#newcode123 src/trusted/plugin/npapi/browser_impl_npapi.cc:123: nacl::string eval_command("console.log(\""); It's not good to use eval()... See ...
10 years, 4 months ago (2010-08-18 20:18:59 UTC) #4
gregoryd
Please take another look
10 years, 4 months ago (2010-08-18 22:27:14 UTC) #5
Mark Seaborn
Quick comments because it's late... http://codereview.chromium.org/3119028/diff/16001/17002 File src/trusted/plugin/npapi/browser_impl_npapi.cc (right): http://codereview.chromium.org/3119028/diff/16001/17002#newcode118 src/trusted/plugin/npapi/browser_impl_npapi.cc:118: return Alert(instance_id, msg); msg ...
10 years, 4 months ago (2010-08-18 22:41:01 UTC) #6
gregoryd
+polina - added PPAPI implementation. http://codereview.chromium.org/3119028/diff/16001/17002 File src/trusted/plugin/npapi/browser_impl_npapi.cc (right): http://codereview.chromium.org/3119028/diff/16001/17002#newcode118 src/trusted/plugin/npapi/browser_impl_npapi.cc:118: return Alert(instance_id, msg); On ...
10 years, 4 months ago (2010-08-19 00:06:43 UTC) #7
sehr (please use chromium)
One suggestion regarding removing a label. Otherwise, LGTM. http://codereview.chromium.org/3119028/diff/29006/34002 File src/trusted/plugin/npapi/browser_impl_npapi.cc (right): http://codereview.chromium.org/3119028/diff/29006/34002#newcode154 src/trusted/plugin/npapi/browser_impl_npapi.cc:154: NPN_ReleaseVariantValue(&console_variant); ...
10 years, 4 months ago (2010-08-19 00:10:13 UTC) #8
gregoryd
http://codereview.chromium.org/3119028/diff/29006/34002 File src/trusted/plugin/npapi/browser_impl_npapi.cc (right): http://codereview.chromium.org/3119028/diff/29006/34002#newcode154 src/trusted/plugin/npapi/browser_impl_npapi.cc:154: NPN_ReleaseVariantValue(&console_variant); On 2010/08/19 00:10:13, sehr wrote: > If you ...
10 years, 4 months ago (2010-08-19 00:17:38 UTC) #9
polina
http://codereview.chromium.org/3119028/diff/29006/34005 File src/trusted/plugin/ppapi/browser_interface_ppapi.cc (right): http://codereview.chromium.org/3119028/diff/29006/34005#newcode77 src/trusted/plugin/ppapi/browser_interface_ppapi.cc:77: console.Call("log", text, &exception); actually we can just do: instance->GetWindowObject().GetProperty("console", ...
10 years, 4 months ago (2010-08-19 00:48:46 UTC) #10
gregoryd
http://codereview.chromium.org/3119028/diff/29006/34005 File src/trusted/plugin/ppapi/browser_interface_ppapi.cc (right): http://codereview.chromium.org/3119028/diff/29006/34005#newcode77 src/trusted/plugin/ppapi/browser_interface_ppapi.cc:77: console.Call("log", text, &exception); On 2010/08/19 00:48:46, polina wrote: > ...
10 years, 4 months ago (2010-08-19 01:05:42 UTC) #11
polina
LGTM for ppapi after you fix the comment and test this manually using examples_ppapi.html > ...
10 years, 4 months ago (2010-08-19 01:24:57 UTC) #12
gregoryd
On 2010/08/19 01:24:57, polina wrote: > LGTM for ppapi after you fix the comment and ...
10 years, 4 months ago (2010-08-19 21:02:14 UTC) #13
polina
LGTM for ppapi thanks for running the tests
10 years, 4 months ago (2010-08-19 22:09:05 UTC) #14
gregoryd
On 2010/08/19 22:09:05, polina wrote: > LGTM for ppapi > thanks for running the tests ...
10 years, 4 months ago (2010-08-20 18:30:52 UTC) #15
Mark Seaborn
On 2010/08/20 18:30:52, gregoryd wrote: > On 2010/08/19 22:09:05, polina wrote: > > LGTM for ...
10 years, 4 months ago (2010-08-20 18:45:32 UTC) #16
Cliff L. Biffle
This CL has broken Chrome integration at r3067 -- it doesn't compile with -Werr on ...
10 years, 4 months ago (2010-08-23 18:11:38 UTC) #17
Cliff L. Biffle
Ah: this did not break the NaCl builds because the offending code is within #ifndef ...
10 years, 4 months ago (2010-08-23 18:12:27 UTC) #18
polina
10 years, 4 months ago (2010-08-26 02:45:15 UTC) #19
http://codereview.chromium.org/3119028/diff/42002/48005
File src/trusted/plugin/plugin.cc (right):

http://codereview.chromium.org/3119028/diff/42002/48005#newcode620
src/trusted/plugin/plugin.cc:620: browser_interface_->Alert(instance_id(),
error_string);
This is still an Alert. Is that on purpose?

Powered by Google App Engine
This is Rietveld 408576698