~gnome3-team/epiphany-browser/+git/master:gnome-40

Last commit made on 2022-02-08
Get this branch:
git clone -b gnome-40 https://git.launchpad.net/~gnome3-team/epiphany-browser/+git/master

Branch merges

Branch information

Recent commits

198c47f... by Michael Catanzaro <email address hidden>

Bump minimum GLib dep to 2.68

This is required for g_string_replace().

7968236... by Michael Catanzaro

Revert "Fix web app GApplication ID calculation"

This reverts commit 9ae8338e74444f70c7ea0c808da8152bbab585ce

9ae8338... by Phaedrus Leeds <email address hidden>

Fix web app GApplication ID calculation

In get_gapplication_id_from_id() we sometimes make the GApp ID
"org.gnome.Epiphany.WebApp-<checksum>". This is then used as the profile
directory name. The profile directory is then used to calculate the id
in ephy_web_application_setup_from_profile_directory(). But in
get_app_id_from_gapplication_id() we return whatever's after the
"WebApp-" prefix, since there's no way to recover the "normalized name"
part of the ID. So, the functions that handle the ID need to work when
it's just the checksum part without the normalized name.

This is all very confusing and we should probably find a way to make it
all simpler some day :/

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1063>

1c5daf0... by Michael Catanzaro <email address hidden>

Prepare 40.6

2095b9e... by Michael Catanzaro <email address hidden>

output-encoding: remove JS encoding function

This is no longer required after #1665.

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1050>

f5d3c6b... by Michael Catanzaro <email address hidden>

about-handler: don't encode app ID (or install date)

We are overencoding here. Epiphany is not prepared to handle the encoded
app ID, and it is not necessary to encode in the first place because the
app ID is trusted to be a valid GApplication ID, which cannot contain
nasty characters.

However, encoding the URLs here really is necessary, because they really
could contain nasty content.

Fixes #1665

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1050>

14ae864... by Michael Catanzaro <email address hidden>

Fix reload buttons on error pages

The encoded URL here does not work. And we cannot reload via the web
process, because the window.location is about:blank for alternate HTML,
so we'll have to send a message to the UI process to have it do so
instead.

Fixes #1663

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1050>

d5427ac... by Michael Catanzaro <email address hidden>

Prepare 40.5

1ae60c7... by Michael Catanzaro <email address hidden>

reader-handler: unbreak reader mode and add CSP

HTML-encoding the content passed to reader mode does not work because it
contains HTML markup generated by Readability.js. Oops. I must have
seriously screwed up when testing this yesterday, because there is no
way this could ever have worked.

Upstream recommends use of a DOM purifier, but in theory, if we
completely block *all* script execution, we can avoid the need for
that. So add a CSP recommended by Patrick.

We'll sneak in a couple bonus fixes: use ' rather than " to improve
readability, and close the </body> tag that we opened rather than abuse
the permissiveness of the parser.

Fixes: #1612

See also: #1661

4088856... by Michael Catanzaro <email address hidden>

Prepare 40.4