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

Issue 9147051: Don't swap processes for javascript: URLs. (Closed)

Created:
8 years, 11 months ago by nasko
Modified:
8 years, 11 months ago
Reviewers:
Charlie Reis, jam, awong
CC:
chromium-reviews, creis+watch_chromium.org, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Don't swap processes for javascript: URLs. BUG=93199 TEST=Enter "javascript:alert(document.location.href);" in the omnibox while in a hosted app. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117744

Patch Set 1 : Don't swap processes for "javascript:" URLs. #

Total comments: 10

Patch Set 2 : Addressing feedback from creis. #

Total comments: 8

Patch Set 3 : Fixed the unit test and restored the function to not be virtual. #

Total comments: 10

Patch Set 4 : Added extra test case in the unit test and cleaned up code style. #

Total comments: 8

Patch Set 5 : Fixing all variable style issues while at it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -59 lines) Patch
M content/browser/site_instance.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/site_instance_unittest.cc View 1 2 3 4 13 chunks +94 lines, -59 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
nasko
Charlie, Can you review the changes I've made for properly handling javascript URLs for hosted ...
8 years, 11 months ago (2012-01-12 19:17:59 UTC) #1
Charlie Reis
Great start. Just a few nits and a suggestion to expand the test. http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance.cc File ...
8 years, 11 months ago (2012-01-12 22:01:14 UTC) #2
nasko
I've addressed the points and submitted a new change. http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance.cc File content/browser/site_instance.cc (right): http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance.cc#newcode133 content/browser/site_instance.cc:133: ...
8 years, 11 months ago (2012-01-12 22:47:47 UTC) #3
awong
Drive-by got a few style nits. :) http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance_unittest.cc File content/browser/site_instance_unittest.cc (right): http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance_unittest.cc#newcode557 content/browser/site_instance_unittest.cc:557: TEST_F(SiteInstanceTest, SameProcessForJavascript) ...
8 years, 11 months ago (2012-01-12 22:56:40 UTC) #4
nasko
I redid the unit test and it no longer requires virtual function. http://codereview.chromium.org/9147051/diff/5001/content/browser/site_instance_unittest.cc File content/browser/site_instance_unittest.cc ...
8 years, 11 months ago (2012-01-13 01:34:50 UTC) #5
Charlie Reis
Thanks for the other style fixes. A few more comments inline. http://codereview.chromium.org/9147051/diff/6004/content/browser/site_instance.h File content/browser/site_instance.h (right): ...
8 years, 11 months ago (2012-01-13 18:37:46 UTC) #6
nasko
Cleaned up code style and added an extra test case. http://codereview.chromium.org/9147051/diff/6004/content/browser/site_instance.h File content/browser/site_instance.h (right): http://codereview.chromium.org/9147051/diff/6004/content/browser/site_instance.h#newcode77 ...
8 years, 11 months ago (2012-01-13 20:54:49 UTC) #7
Charlie Reis
LGTM, with the one change below. http://codereview.chromium.org/9147051/diff/14001/content/browser/site_instance_unittest.cc File content/browser/site_instance_unittest.cc (right): http://codereview.chromium.org/9147051/diff/14001/content/browser/site_instance_unittest.cc#newcode158 content/browser/site_instance_unittest.cc:158: void SetHasProcess(bool process) ...
8 years, 11 months ago (2012-01-13 21:16:29 UTC) #8
awong
LGTM w/ nits http://codereview.chromium.org/9147051/diff/14001/content/browser/site_instance.cc File content/browser/site_instance.cc (right): http://codereview.chromium.org/9147051/diff/14001/content/browser/site_instance.cc#newcode134 content/browser/site_instance.cc:134: if (IsURLSameAsAnySiteInstance(url)) nit: s/URL/Url/ http://codereview.chromium.org/9147051/diff/14001/content/browser/site_instance_unittest.cc File ...
8 years, 11 months ago (2012-01-13 21:19:04 UTC) #9
nasko
I've fixed the few comments and went through the entire file to fix variable naming ...
8 years, 11 months ago (2012-01-13 21:47:10 UTC) #10
nasko
Including John. John, can you review the changes I've made for this bug? Thanks in ...
8 years, 11 months ago (2012-01-13 21:56:47 UTC) #11
jam
rubberstamp lgtm, creis and wong know this more than me
8 years, 11 months ago (2012-01-13 22:43:47 UTC) #12
awong
LGTM Thanks for fixing up the style!
8 years, 11 months ago (2012-01-13 23:15:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9147051/15004
8 years, 11 months ago (2012-01-13 23:48:59 UTC) #14
awong
why wait for charlie when we can CQ it! ;) (I CQed it) On Fri, ...
8 years, 11 months ago (2012-01-13 23:50:52 UTC) #15
commit-bot: I haz the power
8 years, 11 months ago (2012-01-14 01:05:34 UTC) #16
Change committed as 117744

Powered by Google App Engine
This is Rietveld 408576698