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

Issue 7624011: Keep normal popups opened from same-origin iframes in an extension process. (Closed)

Created:
9 years, 4 months ago by Charlie Reis
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Keep normal popups opened from same-origin iframes in an extension process. This allows the iframe to script the popup, despite being in an extension. Also use safer logic for detecting the popup case. BUG=92669 BUG=87417 TEST=Open a popup from a web iframe inside an extension page and script it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97386

Patch Set 1 #

Patch Set 2 : Note implications for apps in test. #

Total comments: 2

Patch Set 3 : Fix logic, add test (not passing yet). #

Patch Set 4 : Fix test. #

Total comments: 2

Patch Set 5 : Switch to canRequest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -13 lines) Patch
M chrome/browser/extensions/app_process_apitest.cc View 1 2 3 2 chunks +56 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 4 chunks +30 lines, -11 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_process/path1/container.html View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_process/path3/iframe.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/content_renderer_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/mock_content_renderer_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/mock_content_renderer_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Charlie Reis
Mihai-- can you review the workaround for the popup behavior in CrossesExtensionExtents, as we've been ...
9 years, 4 months ago (2011-08-17 01:40:11 UTC) #1
Mihai Parparita -not on Chrome
http://codereview.chromium.org/7624011/diff/1007/chrome/browser/extensions/app_process_apitest.cc File chrome/browser/extensions/app_process_apitest.cc (right): http://codereview.chromium.org/7624011/diff/1007/chrome/browser/extensions/app_process_apitest.cc#newcode137 chrome/browser/extensions/app_process_apitest.cc:137: // is to require the opener URL to be ...
9 years, 4 months ago (2011-08-17 20:33:09 UTC) #2
Charlie Reis
I've added a test similar to the one from issue 89272, but I'm having trouble ...
9 years, 4 months ago (2011-08-17 21:55:24 UTC) #3
Mihai Parparita -not on Chrome
On 2011/08/17 21:55:24, creis wrote: > I've added a test similar to the one from ...
9 years, 4 months ago (2011-08-17 22:16:39 UTC) #4
Charlie Reis
On 2011/08/17 22:16:39, Mihai Parparita wrote: > On 2011/08/17 21:55:24, creis wrote: > > I've ...
9 years, 4 months ago (2011-08-17 23:10:04 UTC) #5
Charlie Reis
Problem resolved! I found a way to make sure the new window was added as ...
9 years, 4 months ago (2011-08-18 00:59:19 UTC) #6
Mihai Parparita -not on Chrome
LGTM. John will need to approve the content/renderer changes.
9 years, 4 months ago (2011-08-18 01:04:50 UTC) #7
abarth-chromium
http://codereview.chromium.org/7624011/diff/5012/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/7624011/diff/5012/chrome/renderer/chrome_content_renderer_client.cc#newcode699 chrome/renderer/chrome_content_renderer_client.cc:699: opener.canAccess(new_origin)) Usually when you want to compare an origin ...
9 years, 4 months ago (2011-08-18 18:06:52 UTC) #8
Charlie Reis
http://codereview.chromium.org/7624011/diff/5012/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/7624011/diff/5012/chrome/renderer/chrome_content_renderer_client.cc#newcode699 chrome/renderer/chrome_content_renderer_client.cc:699: opener.canAccess(new_origin)) On 2011/08/18 18:06:52, abarth wrote: > Usually when ...
9 years, 4 months ago (2011-08-18 18:11:57 UTC) #9
abarth-chromium
On Thu, Aug 18, 2011 at 11:11 AM, <creis@chromium.org> wrote: > > http://codereview.chromium.org/7624011/diff/5012/chrome/renderer/chrome_content_renderer_client.cc > File ...
9 years, 4 months ago (2011-08-18 18:18:11 UTC) #10
jam
content lgtm
9 years, 4 months ago (2011-08-18 18:41:54 UTC) #11
Charlie Reis
On 2011/08/18 18:18:11, abarth wrote: > On Thu, Aug 18, 2011 at 11:11 AM, <mailto:creis@chromium.org> ...
9 years, 4 months ago (2011-08-18 18:44:06 UTC) #12
Charlie Reis
Thanks John. Adam, the new canRequest version is up. Charlie
9 years, 4 months ago (2011-08-18 18:54:31 UTC) #13
abarth-chromium
This is fine with me. I don't know this code well enough to give you ...
9 years, 4 months ago (2011-08-18 19:16:12 UTC) #14
commit-bot: I haz the power
9 years, 4 months ago (2011-08-18 23:10:47 UTC) #15
Change committed as 97386

Powered by Google App Engine
This is Rietveld 408576698