Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/188301)
3 years, 8 months ago
(2017-04-06 09:19:20 UTC)
#4
Nick and Devlin, can you take a look? Now that we've confirmed that apps don't ...
3 years, 8 months ago
(2017-04-06 16:18:17 UTC)
#6
Nick and Devlin, can you take a look? Now that we've confirmed that apps don't
need webview-accessible-resources to make XHRs from their guests (thanks to
content scripts), we should be checking for the webview permission instead of
webview-accessible-resources.
For the test, I borrowed from Nick's repro app as well as two tests in
web_view_browsertest.cc: Shim_TestAddContentScript and
GeolocationAPIEmbedderHasNoAccessAllow (allowing me to use TestHelper outside
the larger shim test, which does have webview-accessible-resources).
ncarter (slow)
nice work lgtm with one question https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode213 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:213: extensions::APIPermission::kWebView)) Do we ...
3 years, 8 months ago
(2017-04-06 17:16:44 UTC)
#7
Thanks! Devlin, can you take a look for owners approval? https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode213 ...
3 years, 8 months ago
(2017-04-06 18:15:46 UTC)
#8
Thanks! Devlin, can you take a look for owners approval?
https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/c...
File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
(right):
https://codereview.chromium.org/2803963002/diff/1/chrome/browser/extensions/c...
chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:213:
extensions::APIPermission::kWebView))
On 2017/04/06 17:16:44, ncarter wrote:
> Do we actually need this check, or would just checking the GetOwnerInfo
suffice?
>
> (I'm fine with either way, mostly just curious if there's a meaningful
> difference)
In theory, the check below that you mention would be sufficient without also
checking for the webview permission. I think it's probably reasonable to
enforce here that an app shouldn't have a webview without that permission,
though, so I'd like to keep it for now.
Thanks! lazyboy@, any thoughts before I land? https://codereview.chromium.org/2803963002/diff/1/chrome/test/data/extensions/platform_apps/web_view/content_script_fetch/content_script.js File chrome/test/data/extensions/platform_apps/web_view/content_script_fetch/content_script.js (right): https://codereview.chromium.org/2803963002/diff/1/chrome/test/data/extensions/platform_apps/web_view/content_script_fetch/content_script.js#newcode18 chrome/test/data/extensions/platform_apps/web_view/content_script_fetch/content_script.js:18: case 'start-fetch': ...
3 years, 8 months ago
(2017-04-06 19:21:59 UTC)
#11
Drive-by nit https://codereview.chromium.org/2803963002/diff/20001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2803963002/diff/20001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode205 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:205: // itself, or by one if its ...
3 years, 8 months ago
(2017-04-06 19:28:09 UTC)
#14
https://codereview.chromium.org/2803963002/diff/20001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2803963002/diff/20001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode205 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:205: // itself, or by one if its guests if ...
3 years, 8 months ago
(2017-04-06 20:21:03 UTC)
#16
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1491512962287490, "parent_rev": "99cc887ad000b29513c3d2613efa46f26199e504", "commit_rev": "1d90c42584511fa8bf91f0eadddfe1634f9523fe"}
3 years, 8 months ago
(2017-04-07 00:21:39 UTC)
#23
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1491512962287490,
"parent_rev": "99cc887ad000b29513c3d2613efa46f26199e504", "commit_rev":
"1d90c42584511fa8bf91f0eadddfe1634f9523fe"}
commit-bot: I haz the power
Description was changed from ========== Don't kill Chrome Apps that make XHRs from guests. It's ...
3 years, 8 months ago
(2017-04-07 00:23:04 UTC)
#24
Message was sent while issue was closed.
Description was changed from
==========
Don't kill Chrome Apps that make XHRs from guests.
It's possible for the app to make CORS requests from its guests without
any webview-accessible-resources, via injected content scripts.
BUG=613335
TEST=See bug comment 37 for a repro app.
==========
to
==========
Don't kill Chrome Apps that make XHRs from guests.
It's possible for the app to make CORS requests from its guests without
any webview-accessible-resources, via injected content scripts.
BUG=613335
TEST=See bug comment 37 for a repro app.
Review-Url: https://codereview.chromium.org/2803963002
Cr-Commit-Position: refs/heads/master@{#462704}
Committed:
https://chromium.googlesource.com/chromium/src/+/1d90c42584511fa8bf91f0eadddf...
==========
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/1d90c42584511fa8bf91f0eadddfe1634f9523fe
3 years, 8 months ago
(2017-04-07 00:23:05 UTC)
#25
Issue 2803963002: Don't kill Chrome Apps that make XHRs from guests.
(Closed)
Created 3 years, 8 months ago by Charlie Reis
Modified 3 years, 8 months ago
Reviewers: ncarter (slow), Devlin, lazyboy
Base URL:
Comments: 16