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

Unified Diff: Source/core/testing/Internals.cpp

Issue 249633002: Detect <link rel='manifest'> and notify embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: error 500 Created 6 years, 8 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: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 10f83a5affbba066e4aed8d8cd1ffabc9002db29..e53e09f191be75e864ca22e721d0c825d70f34c4 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2369,4 +2369,14 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
return surroundingText.content();
}
+String Internals::manifestURL(Document* document, ExceptionState& exceptionState)
+{
+ if (!document) {
+ exceptionState.throwDOMException(InvalidAccessError, "No context document is available.");
+ return String();
+ }
+
+ return document->manifestURL().string();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698