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

Unified Diff: Source/devtools/front_end/documentation/DocumentationURLProvider.js

Issue 559423004: DevTools: [Documentation] Disable external XHR requests in documentation tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments addressed Created 6 years, 3 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
« no previous file with comments | « LayoutTests/inspector/documentation/documentation-url-provider.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/documentation/DocumentationURLProvider.js
diff --git a/Source/devtools/front_end/documentation/DocumentationURLProvider.js b/Source/devtools/front_end/documentation/DocumentationURLProvider.js
index ac45a4e65bd0138bb39235dfe2dd904cb3bfeaef..733b6c528c304cbad6a47a5f35c3a5ca55091db4 100644
--- a/Source/devtools/front_end/documentation/DocumentationURLProvider.js
+++ b/Source/devtools/front_end/documentation/DocumentationURLProvider.js
@@ -140,12 +140,17 @@ WebInspector.DocumentationURLProvider._sources = [
/**
* @const
*/
-WebInspector.DocumentationURLProvider._articleUrlFormat = "http://docs.webplatform.org/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|content&format=json";
+WebInspector.DocumentationURLProvider.urlPrefix = "http://docs.webplatform.org";
/**
* @const
*/
-WebInspector.DocumentationURLProvider._articleListUrlFormat = "http://docs.webplatform.org/w/api.php?action=query&generator=allpages&gaplimit=500&gapfrom=%s&format=json";
+WebInspector.DocumentationURLProvider._articleUrlFormat = WebInspector.DocumentationURLProvider.urlPrefix + "/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|content&format=json";
+
+/**
+ * @const
+ */
+WebInspector.DocumentationURLProvider._articleListUrlFormat = WebInspector.DocumentationURLProvider.urlPrefix + "/w/api.php?action=query&generator=allpages&gaplimit=500&gapfrom=%s&format=json";
/**
* @const
« no previous file with comments | « LayoutTests/inspector/documentation/documentation-url-provider.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698