| Index: content/renderer/notification_provider.cc
|
| ===================================================================
|
| --- content/renderer/notification_provider.cc (revision 90236)
|
| +++ content/renderer/notification_provider.cc (working copy)
|
| @@ -102,8 +102,8 @@
|
| int id) {
|
| DCHECK(notification.isHTML());
|
| DesktopNotificationHostMsg_Show_Params params;
|
| - params.origin =
|
| - GURL(render_view()->webview()->mainFrame()->url()).GetOrigin();
|
| + WebDocument document = render_view()->webview()->mainFrame()->document();
|
| + params.origin = GURL(document.securityOrigin().toString());
|
| params.is_html = true;
|
| params.contents_url = notification.url();
|
| params.notification_id = id;
|
| @@ -116,8 +116,8 @@
|
| DCHECK(!notification.isHTML());
|
| DesktopNotificationHostMsg_Show_Params params;
|
| params.is_html = false;
|
| - params.origin = GURL(
|
| - render_view()->webview()->mainFrame()->url()).GetOrigin();
|
| + WebDocument document = render_view()->webview()->mainFrame()->document();
|
| + params.origin = GURL(document.securityOrigin().toString());
|
| params.icon_url = notification.iconURL();
|
| params.title = notification.title();
|
| params.body = notification.body();
|
|
|