|
Don't allow updating tabs to javascript URLs without host
permissions to that tab.
Cleaned up a few things along the way:
- added a GetExtension() method to
ExtensionFunctionDispatcher and ExtensionFunction since it
was used in more than one place.
- Removed first param from chrome.test.failCallback() since
it wasn't used anywhere.
- Added a convenience CanAccessHost() method to Extension,
since it seems likely to be commonly used.
- Refactored setup of mock host resolver in browsertest,
since the way it was, you could only customize it at the
testsuite level, not the test level.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25971
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+163 lines, -54 lines) |
Patch |
 |
M |
chrome/browser/extensions/extension_function.h
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_function_dispatcher.h
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_function_dispatcher.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/extension_javascript_url_apitest.cc
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_tabs_module.cc
|
View
|
|
6 chunks |
+22 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_tabs_module_constants.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_tabs_module_constants.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_scraper_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension.h
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension.cc
|
View
|
|
2 chunks |
+14 lines, -0 lines |
2 comments
|
Download
|
 |
M |
chrome/common/extensions/url_pattern.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
2 comments
|
Download
|
 |
M |
chrome/renderer/renderer_resources.grd
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extension_apitest.js
|
View
|
|
3 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/README.txt
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/bookmarks/test.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/api_test/javascript_url_permissions/manifest.json
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/api_test/javascript_url_permissions/test.html
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/in_process_browser_test.h
|
View
|
|
4 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/test/in_process_browser_test.cc
|
View
|
|
3 chunks |
+11 lines, -16 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|