Repository navigation
Small wins: default browser, print, custom search, tab cap, per-site ad allowlist - #17
Merged
Merged
Conversation
…d allowlist Five small gaps that each blocked a normal browser task: - Default browser: the settings screen now asks Android for ROLE_BROWSER directly (RoleManager, API 29+) and shows when the role is already held; older versions keep the Manage-default-apps fallback. - Print / Save as PDF: new "Print" row in the page menu opens the system print dialog with the current WebView. - Custom search engine: SearchEngine gains CUSTOM, with a name and a %s URL template stored in settings and honoured by UrlUtils.resolveInputToUrl/buildSearchUrl. - Tab cap: 25 tabs, with a snackbar that offers the tab switcher instead of silently failing; background renderers are demoted so the visible tab keeps its process (setRendererPriorityPolicy, API 26+). - Per-site ad blocking: an allowlist in the site-permission store, an "Allow ads on this site" page-menu row, and a settings list to re-block a site or clear the whole list.
|
Caution Review failedThe pull request is closed. Walkthrough
Change: Feature
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five gaps that each blocked an everyday browser task.
RoleManager.createRequestRoleIntent(ROLE_BROWSER)one-tap request on API 29+, status shown when the role is already held, old fallback keptSearchEngine.CUSTOM+ name and%stemplate in settings;UrlUtilshonours it, with inline validation ("the URL must contain %s")setRendererPriorityPolicyso the visible tab survives memory pressureNotes
setRendererPriorityPolicyandRoleManagerare API 26 / 29, both guarded.%snever reaches the URL builder, which falls back to Google rather than producing a broken link.Checks
The PR's own
Quality Gate & Testsrun compiles, unit-tests and lints it.Summary by CodeRabbit