Add URI handler for view source mode

Desktop / GNOME / Epiphany - Michael Catanzaro [gnome.org] - 1 June 2018 21:12 UTC

This brings back the view source handler that lived in master in late 2016 and early 2017, so we don't have to open page source in gedit anymore.

It's not perfect, in that it could get the source code from the wrong tab if two different tabs are displaying the same URI, but let not perfect be the enemy of the good. Content will be fetched from the network if no tab is displaying the desired URI.

No syntax highlighting because I never found a library that handles this efficiently enough for our needs.

https://bugzilla.gnome.org/show_bug.cgi?id=738475

2b7dc7df6 Add URI handler for view source mode
embed/ephy-embed-shell.c | 18 +++
embed/ephy-embed-utils.c | 7 +-
embed/ephy-view-source-handler.c | 327 +++++++++++++++++++++++++++++++++++++++
embed/ephy-view-source-handler.h | 37 +++++
embed/ephy-web-view.c | 2 +
embed/meson.build | 1 +
po/POTFILES.in | 1 +
src/window-commands.c | 32 ++--
8 files changed, 414 insertions(+), 11 deletions(-)

Upstream: git.gnome.org


  • Share