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

Issue 430003: Revert change that disallowed content scripts access to file:// (Closed)

Created:
11 years, 1 month ago by Aaron Boodman
Modified:
9 years, 6 months ago
Reviewers:
Finnur
CC:
chromium-reviews_googlegroups.com, Sumit, jamesr
Visibility:
Public.

Description

Revert change that disallowed content scripts access to file:// URLs. It turns out teams were already depending on this and we didn't want to break them. Instead, group file:// access with NPAPI in the extension install prompt. Note: this is a pure revert of r402029 and r402069 (sorry Finnur!) except the changes in extension_install_ui.cc, which are new. BUG=28456 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32770

Patch Set 1 #

Total comments: 10

Patch Set 2 : Respond to finnments #

Patch Set 3 : Can't go back, only through #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -198 lines) Patch
M chrome/browser/extensions/extension_install_ui.cc View 1 2 chunks +20 lines, -0 lines 1 comment Download
M chrome/browser/extensions/extension_startup_unittest.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/stubs_apitest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/content_scripts.html View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/static/content_scripts.html View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.cc View 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/test/data/extensions/api_test/stubs/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/browsertest/title_localized_pa/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/good/Preferences View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts1/Default/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/ahbojlbmpfcbogfblmekncilheldhjga/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/coomonpcecmahbfkifeohkbgicpcfdgf/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/dhminefdpfgdedodgdilagiencggdcpm/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/kgfhjcinicjnlcbnbacbkbjdbafnlckn/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/ledhkldokbafdcbmepdigjmkabmombel/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/lgmapeiimomfdbfphldobhhpoaoafaci/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/maemolkcfjifpmigoecmpfphmebnebpk/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/mdeggakgacjccnbfbhbihfchoidihkaf/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/mgonfebmjopdoipblbijejncibmgmcol/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts10/Default/Extensions/ohmmlgjlmaadhojogadklhlidfpdeoca/1.0/manifest.json View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/profiles/content_scripts50/Default/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 chunk +50 lines, -50 lines 0 comments Download
M chrome/test/data/extensions/subscribe_page_action/manifest.json View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/page_cycler/page_cycler_test.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
11 years, 1 month ago (2009-11-21 08:51:02 UTC) #1
Finnur
http://codereview.chromium.org/430003/diff/1/2 File chrome/browser/extensions/extension_browsertests_misc.cc (right): http://codereview.chromium.org/430003/diff/1/2#newcode229 Line 229: Why not leave this in and just revert ...
11 years, 1 month ago (2009-11-21 17:02:24 UTC) #2
Aaron Boodman
All good points. Have another look? http://codereview.chromium.org/430003/diff/1/2 File chrome/browser/extensions/extension_browsertests_misc.cc (right): http://codereview.chromium.org/430003/diff/1/2#newcode229 Line 229: On 2009/11/21 ...
11 years, 1 month ago (2009-11-21 23:26:32 UTC) #3
Finnur
>> Why not leave this in and just revert the part that ignores 'file://' in ...
11 years, 1 month ago (2009-11-22 00:13:44 UTC) #4
Finnur
11 years, 1 month ago (2009-11-22 00:27:15 UTC) #5
LG.

I'll leave it up to you to decide if you want to keep some of those tests as
http:// instead of file://.

On 2009/11/22 00:13:44, Finnur wrote:
> >> Why not leave this in and just revert the part that ignores 'file://' in
> >> 'matches', given that using http in tests should be preferable, no?
> 
> > Fair enough. Done.
> 
> I'm confused. The tests still look like they are being converted back to
file://
> 
> ?
> 
> http://codereview.chromium.org/430003/diff/2003/2004
> File chrome/browser/extensions/extension_install_ui.cc (right):
> 
> http://codereview.chromium.org/430003/diff/2003/2004#newcode52
> Line 52: script->url_patterns().begin();
> nit: That looks like 3 spaces, not 4... ? :) Also above.

Powered by Google App Engine
This is Rietveld 408576698