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

Issue 7146024: Use ExecuteJavascriptInWebFrameNotifyResult to return results even in error condition (Closed)

Created:
9 years, 6 months ago by Sheridan Rawlins
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use the ExecuteJavascriptInWebFrameNotifyResult to return results rather than domui. Also fixes the hanging issue by allowing result to returned always even when javascript to be executed is bogus. BUG=86074, 85990 R=dtseng@chromium.org TEST=browser_tests --gtest_filter=WebUIBrowserTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89286

Patch Set 1 #

Patch Set 2 : Fixed Bug 85990 as well. #

Patch Set 3 : Sorted includes. #

Total comments: 7

Patch Set 4 : Allow the test to verify failing fast to pass. #

Total comments: 2

Patch Set 5 : Use the gtest-spi EXPECT_FATAL_FAILURE with SCOPED_TRACE to gracefully test failure. #

Total comments: 1

Patch Set 6 : Commented s_test_, made scoped & private. #

Patch Set 7 : Don't check against |this| in the destructor, which doesn't compile on Win. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -55 lines) Patch
M chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 3 4 5 6 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_test_handler.h View 2 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_test_handler.cc View 1 2 3 4 1 chunk +30 lines, -26 lines 0 comments Download
M chrome/test/data/webui/sample_downloads.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/webui/test_api.js View 2 chunks +2 lines, -16 lines 0 comments Download
M content/renderer/render_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Sheridan Rawlins
This fixes the hanging problem if the javascript is incorrect by always returning a result ...
9 years, 6 months ago (2011-06-14 22:43:23 UTC) #1
Sheridan Rawlins
Ben, can I get your OWNERS LG for content/renderer/render_view.cc? In the case where web_frame->executeScriptAndReturnValue() fails, ...
9 years, 6 months ago (2011-06-15 05:28:53 UTC) #2
Paweł Hajdan Jr.
Drive-by with testing comments (chrome/test/OWNERS). Thank you for dealing with testing infrastructure issues, it's awesome! ...
9 years, 6 months ago (2011-06-15 08:18:20 UTC) #3
Sheridan Rawlins
Thanks for the drive by - I'll include on future CL's - your comments are ...
9 years, 6 months ago (2011-06-15 15:41:14 UTC) #4
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks! http://codereview.chromium.org/7146024/diff/3007/chrome/browser/ui/webui/web_ui_browsertest.cc File chrome/browser/ui/webui/web_ui_browsertest.cc (right): http://codereview.chromium.org/7146024/diff/3007/chrome/browser/ui/webui/web_ui_browsertest.cc#newcode209 chrome/browser/ui/webui/web_ui_browsertest.cc:209: // ...
9 years, 6 months ago (2011-06-15 15:49:30 UTC) #5
Ben Goodger (Google)
I have no idea what any of this code does.
9 years, 6 months ago (2011-06-15 15:55:38 UTC) #6
sky
render_view change LGTM
9 years, 6 months ago (2011-06-15 16:47:45 UTC) #7
Sheridan Rawlins
Pawel, I found a utility in gtest-spi.h documented at http://code.google.com/p/googletest/wiki/AdvancedGuide#Catching_Failures Which lets me make the ...
9 years, 6 months ago (2011-06-15 17:08:16 UTC) #8
Paweł Hajdan Jr.
http://codereview.chromium.org/7146024/diff/7005/chrome/browser/ui/webui/web_ui_browsertest.cc File chrome/browser/ui/webui/web_ui_browsertest.cc (right): http://codereview.chromium.org/7146024/diff/7005/chrome/browser/ui/webui/web_ui_browsertest.cc#newcode212 chrome/browser/ui/webui/web_ui_browsertest.cc:212: static WebUIBrowserTest* s_test_; Hm, I'm not a fan of ...
9 years, 6 months ago (2011-06-15 17:16:20 UTC) #9
scr
Changing ASSERT to EXPECT is cumbersome inasmuch as I need to check results to proceed. ...
9 years, 6 months ago (2011-06-15 17:31:00 UTC) #10
Paweł Hajdan Jr.
LGTM, please just add a short comment why we need s_test. By the way, thanks ...
9 years, 6 months ago (2011-06-15 17:38:26 UTC) #11
commit-bot: I haz the power
Presubmit check for 7146024-8005 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-15 18:38:44 UTC) #12
Sheridan Rawlins
Brett, Sky took a look at the render_view.cc change - can you LG as an ...
9 years, 6 months ago (2011-06-15 18:43:22 UTC) #13
brettw
LGTM
9 years, 6 months ago (2011-06-15 23:08:39 UTC) #14
commit-bot: I haz the power
9 years, 6 months ago (2011-06-16 01:55:48 UTC) #15
Change committed as 89286

Powered by Google App Engine
This is Rietveld 408576698