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

Issue 7104002: Does not crash with unexpected function in debug build. (Closed)

Created:
9 years, 6 months ago by Peng
Modified:
9 years, 5 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Aaron Boodman, Erik does not do reviews, darin-cc_chromium.org, brettw-cc_chromium.org, bryeung, Rick Byers, anicolao
Visibility:
Public.

Description

Does not crash with unexpected function in debug build. Add apitest for InputUI extension API. BUG=Crashes when extension calls a undefined function TEST=Manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88390

Patch Set 1 #

Patch Set 2 : update #

Total comments: 2

Patch Set 3 : Update #

Patch Set 4 : Add apitest #

Patch Set 5 : Update #

Messages

Total messages: 14 (0 generated)
Peng
9 years, 6 months ago (2011-05-31 20:22:42 UTC) #1
Peng
On 2011/05/31 20:22:42, Peng wrote: http://codereview.chromium.org/7084033/diff/9004/chrome/browser/resources/keyboard/ime.js In JS side, it will catch exception if the ...
9 years, 6 months ago (2011-05-31 20:37:51 UTC) #2
Peng
9 years, 6 months ago (2011-05-31 20:38:25 UTC) #3
Peng
Hi Aaron, Could you please review this CL? Thanks.
9 years, 6 months ago (2011-06-02 18:47:05 UTC) #4
Mihai Parparita -not on Chrome
Aaron's on sabbatical, Matt might have an opinion on this.
9 years, 6 months ago (2011-06-02 19:06:57 UTC) #5
Peng
On 2011/06/02 19:06:57, Mihai Parparita wrote: > Aaron's on sabbatical, Matt might have an opinion ...
9 years, 6 months ago (2011-06-02 19:53:04 UTC) #6
Matt Perry
As we discussed on IM, I think this is the wrong approach. Your goal is ...
9 years, 6 months ago (2011-06-03 19:43:17 UTC) #7
Peng
Hi Matt, I updated the CL. Please review it again. Thanks.
9 years, 6 months ago (2011-06-06 20:20:40 UTC) #8
Matt Perry
Can we add an apitest for this? http://codereview.chromium.org/7104002/diff/13001/chrome/renderer/resources/extension_process_bindings.js File chrome/renderer/resources/extension_process_bindings.js (right): http://codereview.chromium.org/7104002/diff/13001/chrome/renderer/resources/extension_process_bindings.js#newcode526 chrome/renderer/resources/extension_process_bindings.js:526: var platform ...
9 years, 6 months ago (2011-06-07 00:15:52 UTC) #9
Peng
Hi Matt, I added a simple apitest for inputUI. Please check it. Thanks. http://codereview.chromium.org/7104002/diff/13001/chrome/renderer/resources/extension_process_bindings.js File ...
9 years, 6 months ago (2011-06-07 19:17:30 UTC) #10
Matt Perry
LGTM
9 years, 6 months ago (2011-06-07 19:35:39 UTC) #11
commit-bot: I haz the power
Presubmit check for 7104002-20002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-07 19:52:58 UTC) #12
commit-bot: I haz the power
Presubmit check for 7104002-20002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-08 16:00:26 UTC) #13
commit-bot: I haz the power
9 years, 6 months ago (2011-06-08 19:58:38 UTC) #14
Presubmit check for 7104002-20002 failed and returned exit status 1.

Running presubmit commit checks ...
Traceback (most recent call last):
  File "/mnt/data/b/commit-queue/verification/presubmit_shim.py", line 43, in
<module>
    sys.exit(presubmit_support.Main(argv))
  File "/b/depot_tools/presubmit_support.py", line 1245, in Main
    rietveld_obj)
  File "/b/depot_tools/presubmit_support.py", line 1092, in DoPresubmitChecks
    results += executer.ExecPresubmitScript(presubmit_script, filename)
  File "/b/depot_tools/presubmit_support.py", line 1007, in ExecPresubmitScript
    result = eval(function_name + '(*__args)', context)
  File "<string>", line 1, in <module>
  File "<string>", line 128, in CheckChangeOnCommit
  File "<string>", line 45, in _CommonChecks
  File "/b/depot_tools/presubmit_canned_checks.py", line 890, in
PanProjectChecks
    input_api, output_api, source_file_filter=None))
  File "/b/depot_tools/presubmit_canned_checks.py", line 751, in CheckOwners
    approvers_plus_owner)
  File "/b/depot_tools/owners.py", line 93, in files_not_covered_by
    self._load_data_needed_for(files)
  File "/b/depot_tools/owners.py", line 136, in _load_data_needed_for
    self._read_owners_in_dir(dirpath)
  File "/b/depot_tools/owners.py", line 164, in _read_owners_in_dir
    'or an email address: "%s"' % line))
owners.SyntaxErrorInOwnersFile:
/mnt/data/b/commit-queue/workdir/chromium/chrome/common/extensions/api/OWNERS:2
syntax error: line is not a comment, a "set" directive, or an email address: ""
Sending crash report ...
  exception: /mnt/data/b/commit-queue/workdir/chromium/chrome/c
  args: ['/mnt/data/b/commit-queue/verification/presubmit_shim.py', '--commit',
'--author', 'penghuang@chromium.org', '--issue', '7104002', '--patchset',
'20002', '--name', '7104002-20002', '--description', 'Does not crash with
unexpected function in debug build.\n\nAdd apitest for InputUI extension
API.\n\n\nBUG=Crashes when extension calls a undefined
function\nTEST=Manually\n', '--rietveld_url', 'http://codereview.chromium.org',
'chrome/browser/extensions/extension_input_ui_apitest.cc',
'chrome/test/data/extensions/api_test/input_ui/other/test.js',
'chrome/renderer/resources/extension_process_bindings.js',
'chrome/test/data/extensions/api_test/input_ui/other/test.html',
'chrome/test/data/extensions/api_test/input_ui/chromeos_touch/test.js',
'chrome/test/data/extensions/api_test/input_ui/chromeos_touch/test.html',
'chrome/common/extensions/api/extension_api.json',
'chrome/test/data/extensions/api_test/input_ui/other/manifest.json',
'chrome/test/data/extensions/api_test/input_ui/chromeos_touch/manifest.json',
'chrome/chrome_tests.gypi']
  stack:   File "/mnt/data/b/commit-queue/verification/pres
  host: vm105-m4.golo.chromium.org
  version: 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.
  user: chrome-bot
  cwd: /mnt/data/b/commit-queue/workdir/chromium
A stack trace has been sent to the maintainers.

Powered by Google App Engine
This is Rietveld 408576698