diff options
author | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-23 01:37:54 +0000 |
---|---|---|
committer | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-23 01:37:54 +0000 |
commit | 13347d1506a5a5174bbe39099dc93041f1d0a497 (patch) | |
tree | c74b5cf3449040e5a89f93194b25275b66cc15bf /chrome/renderer | |
parent | b05be39e20ae9d70bc54c7511d8199517294a2dd (diff) | |
download | chromium_src-13347d1506a5a5174bbe39099dc93041f1d0a497.zip chromium_src-13347d1506a5a5174bbe39099dc93041f1d0a497.tar.gz chromium_src-13347d1506a5a5174bbe39099dc93041f1d0a497.tar.bz2 |
Allow chrome-extension scheme in notification.
BUG=32936
TEST=none
Review URL: http://codereview.chromium.org/551131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/notification_provider.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/notification_provider.cc b/chrome/renderer/notification_provider.cc index 5ee7abc..30ca716 100644 --- a/chrome/renderer/notification_provider.cc +++ b/chrome/renderer/notification_provider.cc @@ -83,7 +83,9 @@ bool NotificationProvider::ShowHTML(const WebNotification& notification, int id) { // Disallow HTML notifications from non-HTTP schemes. GURL url = notification.url(); - if (!url.SchemeIs(chrome::kHttpScheme) && !url.SchemeIs(chrome::kHttpsScheme)) + if (!url.SchemeIs(chrome::kHttpScheme) && + !url.SchemeIs(chrome::kHttpsScheme) && + !url.SchemeIs(chrome::kExtensionScheme)) return false; DCHECK(notification.isHTML()); |