-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FXIOS-10667 Content blocklist support via Remote Settings (#23342)
* [FXIOS-10667] Remove the old Disconnect file references from Xcode, as well as old content blocker script, and update the bootstrap to no longer call it * [FXIOS-10667] Add xcodeproj references to the new Remote Settings default disconnect (blocklist) files * [FXIOS-10667] Initial work to load blocklist JSON through remote settings APIs rather than directly as bundle resource * [FXIOX-10667] Comment cleanup * [FXIOS-10667] Have more generalized RemoteSetting load func call into new JSON utility func. * [FXIOS-10667] Use RemoteSettings API for hash check for content lists * [FXIOS-10667] Add and update tests for RemoteDataTypeRecord * [FXIOS-10667] Fix missing node npm in bootstrap
- Loading branch information
1 parent
b645d68
commit c527e91
Showing
8 changed files
with
171 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
firefox-ios/Client/Application/RemoteSettings/RemoteRecords/ContentBlockingListRecord.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import Foundation | ||
|
||
/// Object model to represent content blocking rules. | ||
/// This is not used (yet) since we load the JSON directly | ||
/// in order to modify it before injecting to WKWebView. | ||
struct ContentBlockingListRecord: RemoteDataTypeRecord { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters