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

Unified Diff: chrome/test/data/push_messaging/test.html

Issue 686133003: Reject push registrations when no sender Id has been provided. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/push_messaging/test.html
diff --git a/chrome/test/data/push_messaging/test.html b/chrome/test/data/push_messaging/test.html
index 3ad79289188b69afc420915c08652c6fad71b372..372f3e1c7978121d103d6c8827025794cb4c97a3 100644
--- a/chrome/test/data/push_messaging/test.html
+++ b/chrome/test/data/push_messaging/test.html
@@ -55,6 +55,15 @@
}, sendErrorToTest);
}
+ function removeManifest() {
+ var element = document.querySelector('link[rel="manifest"]');
+ if (element) {
+ element.parentNode.removeChild(element);
+ sendResultToTest('manifest removed');
+ } else
+ sendResultToTest('unable to find manifest element');
+ }
+
function registerPush() {
navigator.serviceWorker.ready.then(function() {
navigator.push.register().then(function(pushRegistration) {
« no previous file with comments | « chrome/browser/services/gcm/push_messaging_browsertest.cc ('k') | content/public/common/push_messaging_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698