Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/basedomain.js

Issue 6346177440120832: Added abstraction for frames, to fix domain-based rules, whitelisting and ad counter on Safari (Closed)
Patch Set: Addressed another comment Created Jan. 20, 2014, 8:50 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include.preload.js ('k') | lib/stats.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/basedomain.js
===================================================================
--- a/lib/basedomain.js
+++ b/lib/basedomain.js
@@ -158,6 +158,14 @@
}
/**
+ * Strips the fragment from a URL.
+ */
+function stripFragmentFromURL(/**String*/ url)
+{
+ return url.replace(/#.*/, "");
+}
+
+/**
* Parses URLs and provides an interface similar to nsIURI in Gecko, see
* https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIURI.
* TODO: Make sure the parsing actually works the same as nsStandardURL.
« no previous file with comments | « include.preload.js ('k') | lib/stats.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld