Chromium Code Reviews| Index: chrome/renderer/extensions/dispatcher.cc |
| diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc |
| index 7ed9437eb12539c5f71807233a45a6d0d2980ca6..a9ca2263bfb156fc8c63f285f43134ff25046de9 100644 |
| --- a/chrome/renderer/extensions/dispatcher.cc |
| +++ b/chrome/renderer/extensions/dispatcher.cc |
| @@ -478,8 +478,7 @@ void Dispatcher::WebKitInitialized() { |
| InitOriginPermissions(extension); |
| } |
| - if (IsWithinPlatformApp()) |
|
Charlie Reis
2013/09/04 17:47:29
Removing this seems concerning. We don't want the
guohui
2013/09/05 19:35:04
In an earlier prototype CL, Fady mentioned that it
Fady Samuel
2013/09/09 16:30:49
Yea, document_natives is not exposed to third part
guohui
2013/09/09 16:43:00
thanks fady, then is there any other unwanted side
Fady Samuel
2013/09/09 17:35:05
None come to mind, but I'm not entirely certain. I
dominicc (has gone to gerrit)
2013/09/10 02:50:49
The side effect will be that any element names you
guohui
2013/09/12 20:27:27
today EnableCustomElementWhiteList is called in tw
|
| - EnableCustomElementWhiteList(); |
| + EnableCustomElementWhiteList(); |
| is_webkit_initialized_ = true; |
| } |
| @@ -1110,11 +1109,10 @@ void Dispatcher::DidCreateScriptContext( |
| module_system->Require("windowControls"); |
| } |
| - // Only platform apps support the <webview> tag, because the "webView" and |
| - // "denyWebView" modules will affect the performance of DOM modifications |
| - // (http://crbug.com/196453). |
| - if (context_type == Feature::BLESSED_EXTENSION_CONTEXT && |
| - is_within_platform_app) { |
| + // Currently only platform apps and component extensions support the <webview> |
| + // tag, because the "webView" and "denyWebView" modules will affect the |
| + // performance of DOM modifications (http://crbug.com/196453). |
| + if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| // Note: setting up the WebView class here, not the chrome.webview API. |
| // The API will be automatically set up when first used. |
| if (extension->HasAPIPermission(APIPermission::kWebView)) { |
| @@ -1248,8 +1246,7 @@ void Dispatcher::OnActivateExtension(const std::string& extension_id) { |
| extension->url(), |
| string16()); |
| - if (IsWithinPlatformApp()) |
| - EnableCustomElementWhiteList(); |
| + EnableCustomElementWhiteList(); |
| } |
| } |