summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* location-entry: Set width-chars to 0Alexander Mikhaylenko2019-09-301-0/+1
| | | | | | | | Since the entry is overlaid by icons, if it gets too small, the minimum width causes overlapping. Make minimum width as small as possible to prevent that. Fixes https://gitlab.gnome.org/GNOME/epiphany/issues/940
* search-engine-manager: escape the search stringTing-Wei Lan2019-09-251-1/+8
| | | | | | | When a user types a search string with special characters, they should be escaped before they are used as a part of a URL. For example, if a user types "!g c++", it should mean searching Google for "c++", not searching for "c " just because "+" means " " in a URL.
* location-entry: Rework icon layoutAlexander Mikhaylenko2019-09-251-34/+66
| | | | | | | | | | | Don't hardcode margins anywhere, instead, set them in CSS. Also don't expand the icons vertically and move tooltips to event boxes so that it still matches click area. Take margin and padding into account when calculating progress bar length, making sure it's correct (tested on Adwaita, HighContrast and elementary). Fix progress bar positioning and left padding on RTL.
* adblock: Add profile migration to remove per-profile directoryAdrian Perez de Castro2019-09-091-1/+1
| | | | | | With the adblock/ subdirectory being now in the shared per-user cache directory, the per-profile one is not needed anymore and needs to be removed.
* build: Give all libraries a RUNPATH for our private librariesSimon McVittie2019-08-312-2/+4
| | | | | | | | | | | | | | | Setting a RUNPATH on a loadable module like libephywebextension is enough to search that directory for private libraries that it directly depends on, but not enough to search that directory for those libraries' dependencies, such as libephymisc loading the bundled libdazzle on the 3.32 branch. Address this by giving libephymisc its own RUNPATH so it loads the correct dependencies. For completeness, do the same for all private shared libraries that didn't already have install_rpath. Signed-off-by: Simon McVittie <smcv@debian.org> Bug-Debian: https://bugs.debian.org/927731
* Stop including favicon in overview snapshotsMichael Catanzaro2019-08-071-19/+2
| | | | | | | | | | With the new design of the overview, the favicons are currently cut off so you can't see them, because we don't show the leftmost portion of the snapshots. But if we did show them, it wouldn't look good anymore. The favicon is now way too small relative to the much larger size of the rest of the snapshot. So we'd better just drop it. See #874
* adblock: Add profile migration to remove old filtersAdrian Perez de Castro2019-08-061-1/+1
| | | | | | | | | | This bumps the revision of the profile migration, and adds a migration function which removes the old ad blocker data from disk. Nothing else is needed because Epiphany will fetch the filters if needed at startup. Steps migrate_adblock_filters() and migrate_annoyance_list() can be turned into no-ops becuse the new migration steps will remove all the old filters anyway.
* adblock: Use EasyList in JSON as default rulesetAdrian Perez de Castro2019-08-061-1/+1
| | | | | | | | | | | | Switch from the EasyList ruleset in AdBlock Plus format (as needed by the old EphyURITester) to the JSON version, which can be directly consumed by WebKitUserContentFilterStore. Note that the EasyPrivacy ruleset is not available in JSON format, and therefore its URI removed from the default list of rulesets. This also renames the setting to "content-filters" in order to avoid mixups with the old "adblock-filters" setting.
* Remove ephy-uri-tester-shared.{h,c}Adrian Perez de Castro2019-08-063-72/+0
| | | | | The only definitions being used were the definitions for the ad blocking rule set URLs, which are moved to ephy-filters-manager.h
* Most visited: make thumbnail size largerTobias Bernard2019-08-041-3/+2
| | | | Since the layout has changed, the thumbnails need to be bigger to match
* Adjust address bar popover positionJan-Michael Brummer2019-08-031-0/+34
| | | | | | Set an own position function for the popover and move it down by 6px. Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/855
* Fix alt+navigation keys shortcutsJan-Michael Brummer2019-07-302-2/+6
|
* Revert "Revert "Ensure directories are created before sandbox is initialized""Michael Catanzaro2019-07-241-0/+1
| | | | This reverts commit dd021bedc6a3dae42e2881a5077720a8fff764b9.
* Revert "Add spell checker support to context menu"Michael Catanzaro2019-07-233-11/+4
| | | | | | This reverts commit c398d645a0c9587ea17a31cfde7b33308977ec24. Many complaints about the new behavior from Igalia developers. See #181.
* Use g_auto functions in permission managerJan-Michael Brummer2019-07-211-11/+7
| | | | Keeps cppcheck happy.
* Mass update: Apply uncrustify style to everythingJan-Michael Brummer2019-07-1545-457/+602
|
* Build with -Werror=declaration-after-statementMichael Catanzaro2019-07-133-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically, Epiphany did not permit declarations after the first statement in a block due to its use of AX_COMPILER_FLAGS, which adds -Werror=declaration-after-statement when compiling C files. But I dropped this in switching to meson, thinking we would adopt a more modern code style. There are two schools of thought here: (1) It's safest and cleanest to limit variable declarations to the smallest-possible scope. I'm a firm believer in this rule and I almost always follow it when writing C++. (2) It just doesn't look very good in C, especially with GNOME code style. I'm starting to become sympathetic to (2). Especially now that we are starting to use autofrees and autoptrs all over the place, I find that declaring these at point of first use causes the code to become rather cluttered. There is not much code in Epiphany that violates the rule because we only recently began to allow it, so not much to clean up. The only code that really does not benefit from this is the profile migrator code, which probably overuses local variables. I'd call that an exception rather than the rule. Let's sneak in -Werror=implicit-function-declaration at the same time, since this is always a serious bug.
* Add spell checker support to context menuJan-Michael Brummer2019-07-083-3/+70
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/181
* Revert "Ensure directories are created before sandbox is initialized"Michael Catanzaro2019-07-011-1/+0
| | | | This reverts commit 2f51e6b45d17a87dc6293bd1d859505d9bb1411f.
* Ensure directories are created before sandbox is initializedMichael Catanzaro2019-06-301-0/+1
| | | | | Anything that doesn't exist at process launch time will not be mounted in the sandbox.
* Fix gvdb_table_write_contents_async()Michael Catanzaro2019-06-271-1/+3
| | | | | | | | It's always deleting the bookmarks file because str has already been freed. This worked when I first wrote the code, but I broke it during late stages of code review. Oops. Fixes #837
* Simplify user agent constructionMichael Catanzaro2019-06-234-8/+13
|
* Update GVDBMichael Catanzaro2019-06-226-44/+178
| | | | | | | In particular, this adds gvdb_table_write_contents_async() from gvdb!4. It also requires changing some integer types due to an API break in gvdb_table_get_names().
* Broken web apps should crash in a nicer wayMichael Catanzaro2019-06-191-7/+29
| | | | | | | Although #713 is fixed for new users, anyone who previously suffered from a broken web app migration is doomed to eternal crashes. We probably can't reasonably recover the broken profile dir, but we should at least try to warn users what is going on.
* web-app-utils: Fix crash when web app profile lacks .app fileMichael Catanzaro2019-06-191-1/+1
| | | | We free with the wrong free function
* build: Ensure config.h is generated when neededMichael Catanzaro2019-06-121-0/+1
| | | | | It's already a dependency of libephymain, but not of the rest of the code, which is causing a bunch of build failures on the CI.
* web-app-utils: Stop adding deprecated Network category to new web appsMichael Catanzaro2019-06-111-1/+1
|
* profile-utils: simplify debug output a bitMichael Catanzaro2019-06-111-2/+1
|
* Add the "mobile-user-agent" settingAdrien Plazas2019-06-112-1/+7
| | | | This allows to use a mobile user agent.
* Add missing tooltips to url bar itemsJan-Michael Brummer2019-05-291-0/+3
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/807
* Mark addresses currently open in browserJan-Michael Brummer2019-05-133-31/+80
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/153
* Rename webextension to webprocessextensionJan-Michael Brummer2019-05-133-16/+16
| | | | In order to avoid future conflicts with official web browser web extension, rename our current webextensions to webprocessextension.
* Revert "Rename webextension to webprocessextension"Michael Catanzaro2019-05-132-14/+14
| | | This reverts commit 53c5022ab04d24b6a44e4a197eb9a7d08cf96595
* Rename webextension to webprocessextensionJan-Michael Brummer2019-05-122-14/+14
| | | | In order to avoid future conflicts with official web browser web extension, rename our current webextensions to webprocessextension.
* Revert "location-entry: destroy bookmark popover in dispose"Michael Catanzaro2019-05-121-2/+0
| | | This reverts commit bae5b1d3fb03528f929857fe3df32ccad5f7cb30
* location-entry: destroy bookmark popover in disposeMichael Catanzaro2019-05-091-0/+2
| | | | | | | | | The EphyAddBookmarkPopover can currently outlive the EphyLocationEntry. That's bad! Speculative fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1707455
* gsb-storage: Avoid crashes after database is recreatedMichael Catanzaro2019-05-081-28/+71
| | | | | | | Unfortunately commit 2475b4f0 has introduced some crashes after the GSB database needs to be recreated due to database corruption, which is still happening in practice. The entire file now needs to be prepared for a previously-functional database to become inoperable at any time.
* web-app-utils: Clean up ephy_web_application_create()Michael Catanzaro2019-05-081-14/+10
| | | | Fixes #764
* Remove referrer in ephy_web_application_is_uri_allowed () and use webapp url ↵Jan-Michael Brummer2019-05-052-4/+4
| | | | | | directly Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/558
* Build with -Wextra and -Werror=format-securityMichael Catanzaro2019-05-043-2/+3
| | | | | | | | | | | We'll need to suppress a few warnings, and fix some code that triggers -Wsign-compare. One -Wsign-compare is not fixed here because it's a real bug, to be addressed separately. We'll also manually add -Werror=format-security since this is amazingly not included in -Wextra.
* Handle moved or deleted download filesJan-Michael Brummer2019-05-041-0/+11
| | | | | | | Show a status message to inform the user that the download file has been moved or deleted and disable open file button. Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/155
* Fix segfaulting eel_strdup_strftime ()Jan-Michael Brummer2019-05-041-7/+6
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/545
* Extend ephy_web_application_is_uri_allowed () to check for data: and blob: uriJan-Michael Brummer2019-05-032-2/+31
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/593
* history-manager: avoid critical when deleting URLs not tracked by syncMichael Catanzaro2019-05-011-0/+6
| | | | Fixes #691
* gsb-service: ref self for lifetime of update threadMichael Catanzaro2019-04-181-1/+3
| | | | Fixes #736
* Add option to start always in incognito modeJan-Michael Brummer2019-04-161-0/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/300
* Add option to set browser as defaultJan-Michael Brummer2019-04-131-0/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/112
* Increase thumbnail width / heightJan-Michael Brummer2019-04-071-2/+2
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/605
* Fix search provider resultsMichael Catanzaro2019-04-062-8/+12
| | | | | We're displaying XML in the search provider results because the unescaped-title property is not being set properly.
* Fix adblock permission constantly toggling between yes and noJan-Michael Brummer2019-04-041-2/+2
|