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

Unified Diff: lib/csp.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Patch Set: Address PS4 comments, rebase Created April 5, 2018, 11:09 p.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/cssInjection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/csp.js
===================================================================
--- a/lib/csp.js
+++ b/lib/csp.js
@@ -12,23 +12,24 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
-const {defaultMatcher} = require("matcher");
-const {RegExpFilter, WhitelistFilter} = require("filterClasses");
+const {defaultMatcher} = require("../adblockpluscore/lib/matcher");
+const {RegExpFilter, WhitelistFilter} =
+ require("../adblockpluscore/lib/filterClasses");
const {extractHostFromFrame, getDecodedHostname,
- isThirdParty, stringifyURL} = require("url");
-const {checkWhitelisted} = require("whitelisting");
+ isThirdParty, stringifyURL} = require("./url");
+const {checkWhitelisted} = require("./whitelisting");
const {FilterNotifier} = require("filterNotifier");
-const devtools = require("devtools");
+const devtools = require("./devtools");
const {typeMap} = RegExpFilter;
browser.webRequest.onHeadersReceived.addListener(details =>
{
let url = new URL(details.url);
let urlString = stringifyURL(url);
let parentFrame = ext.getFrame(details.tabId, details.parentFrameId);
« no previous file with comments | « include.preload.js ('k') | lib/cssInjection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld