-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filtering URLs for Top Hits section of suggestions (#16)
* Generation of a root URL * Download URLs and URLs that failed to load are not pushed to Top Hits section * Fetching of remote suggestions dismissed for non root URLs * Number of navigational suggestions adjusted * Matches with query found for full URLs not just hosts * Autocompletion allowed just for suggestions from history or bookmarks * Update autofill to 3.2.0
- Loading branch information
1 parent
2483c0c
commit c6d9f48
Showing
12 changed files
with
107 additions
and
32 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
Submodule duckduckgo-autofill
updated
9 files
+119 −81 | dist/autofill.js | |
+4 −4 | src/DeviceInterface.js | |
+7 −15 | src/Form/Form.js | |
+5 −20 | src/Form/listenForFormSubmission.js | |
+6 −12 | src/UI/CredentialsAutofill.js | |
+5 −16 | src/UI/EmailAutofill.js | |
+20 −0 | src/UI/Tooltip.js | |
+59 −17 | src/autofill.js | |
+1 −1 | src/scanForInputs.js |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,14 @@ final class URLExtensionTests: XCTestCase { | |
XCTAssertEqual(url.naked, duplicate.naked) | ||
} | ||
|
||
func testWhenRootIsCalled_ThenURLWithNoPathQueryFragmentUserAndPasswordIsReturned() { | ||
let url = URL(string: "https://dax:[email protected]/test.php?test=S&info=test#fragment")! | ||
|
||
let rootUrl = url.root! | ||
XCTAssertEqual(rootUrl, URL(string: "https://www.duckduckgo.com/")!) | ||
XCTAssert(rootUrl.isRoot) | ||
} | ||
|
||
func testIsRoot() { | ||
let url = URL(string: "https://www.server.com:8080/path?query=string#fragment")! | ||
let rootUrl = URL(string: "https://www.server.com:8080/")! | ||
|
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