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

Issue 9225010: Fix callback for chrome.tabs.update with javascript URLs. (Closed)

Created:
8 years, 11 months ago by jstritar
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix callback for chrome.tabs.update with javascript URLs. UpdateTabFunction is asynchronous when updating a tab with a javascript URL. In this situation, the method was returning early before generating the callback result. This fixes the ExecuteScriptApiTest.NavigationRaceJavaScriptUrl test. BUG=89731 TEST=ExecuteScriptApiTest.NavigationRaceJavaScriptUrl Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119690

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : NULL out web_contents_ if destroyed #

Total comments: 4

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -38 lines) Patch
M chrome/browser/extensions/execute_script_apitest.cc View 1 1 chunk +1 line, -10 lines 0 comments Download
M chrome/browser/extensions/extension_javascript_url_apitest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 8 chunks +37 lines, -21 lines 0 comments Download
M chrome/test/data/extensions/api_test/tabs/javascript_url_permissions/test.js View 1 2 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jstritar
8 years, 11 months ago (2012-01-27 02:43:46 UTC) #1
jstritar
Actually, can you hold off on reviewing this? I'm going to add a test that ...
8 years, 11 months ago (2012-01-27 15:38:43 UTC) #2
jstritar
Okay, you can take a look. I re-enabled a test that was disabled a while ...
8 years, 11 months ago (2012-01-27 20:16:13 UTC) #3
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/9225010/diff/3003/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (right): https://chromiumcodereview.appspot.com/9225010/diff/3003/chrome/browser/extensions/extension_tabs_module.cc#newcode1072 chrome/browser/extensions/extension_tabs_module.cc:1072: web_contents_ = contents->web_contents(); Is it safe to hold ...
8 years, 11 months ago (2012-01-27 23:03:20 UTC) #4
jstritar
http://codereview.chromium.org/9225010/diff/3003/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (right): http://codereview.chromium.org/9225010/diff/3003/chrome/browser/extensions/extension_tabs_module.cc#newcode1072 chrome/browser/extensions/extension_tabs_module.cc:1072: web_contents_ = contents->web_contents(); On 2012/01/27 23:03:20, Mihai Parparita wrote: ...
8 years, 10 months ago (2012-01-30 16:28:05 UTC) #5
Mihai Parparita -not on Chrome
Still LGTM http://codereview.chromium.org/9225010/diff/8001/chrome/browser/extensions/extension_tabs_module.h File chrome/browser/extensions/extension_tabs_module.h (right): http://codereview.chromium.org/9225010/diff/8001/chrome/browser/extensions/extension_tabs_module.h#newcode21 chrome/browser/extensions/extension_tabs_module.h:21: class TabStripModel; Nit: This can be removed ...
8 years, 10 months ago (2012-01-30 16:33:00 UTC) #6
jstritar
http://codereview.chromium.org/9225010/diff/8001/chrome/browser/extensions/extension_tabs_module.h File chrome/browser/extensions/extension_tabs_module.h (right): http://codereview.chromium.org/9225010/diff/8001/chrome/browser/extensions/extension_tabs_module.h#newcode21 chrome/browser/extensions/extension_tabs_module.h:21: class TabStripModel; On 2012/01/30 16:33:00, Mihai Parparita wrote: > ...
8 years, 10 months ago (2012-01-30 16:40:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9225010/13002
8 years, 10 months ago (2012-01-30 16:40:43 UTC) #8
commit-bot: I haz the power
8 years, 10 months ago (2012-01-30 17:59:18 UTC) #9
Change committed as 119690

Powered by Google App Engine
This is Rietveld 408576698