[evince/wip/gpoo/remove-browser-plugin] browser-plugin: Remove browser-plugin support




commit 77eae75c58b4a5ef57bbb4da48f2277a3b698753
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Wed Jun 9 00:58:51 2021 -0400

    browser-plugin: Remove browser-plugin support
    
    Epiphany deprecated support for NPAPI for 3.30, and when enabled
    manually it will not download the PDF document from the network.
    Therefore, it does not make sense to keep the browser-plugin
    anymore.
    
    Fixes #968

 browser-plugin/EvBrowserPlugin.cpp           | 746 ----------------------
 browser-plugin/EvBrowserPlugin.gresource.xml |  23 -
 browser-plugin/EvBrowserPlugin.h             | 109 ----
 browser-plugin/EvBrowserPluginMain.cpp       | 362 -----------
 browser-plugin/EvBrowserPluginToolbar.cpp    | 493 ---------------
 browser-plugin/EvBrowserPluginToolbar.h      |  54 --
 browser-plugin/EvMemoryUtils.h               |  33 -
 browser-plugin/evince-browser.css            |  19 -
 browser-plugin/meson.build                   |  56 --
 browser-plugin/npapi/npapi.h                 | 914 ---------------------------
 browser-plugin/npapi/npfunctions.h           | 307 ---------
 browser-plugin/npapi/npruntime.h             | 393 ------------
 browser-plugin/npapi/nptypes.h               |  88 ---
 browser-plugin/plugin-symbol.map             |   9 -
 browser-plugin/plugin.symbols                |   4 -
 browser-plugin/tests/data-uri.html           |  12 -
 browser-plugin/tests/iframe.html             |  15 -
 browser-plugin/tests/initvalues.html         |  32 -
 browser-plugin/tests/local.html              |  12 -
 browser-plugin/tests/multiple.html           |  17 -
 browser-plugin/tests/remote.html             |  12 -
 browser-plugin/tests/script.html             |  59 --
 browser-plugin/tests/test.pdf                | Bin 9030 -> 0 bytes
 meson.build                                  |  12 -
 meson_options.txt                            |   2 -
 po/POTFILES.in                               |   1 -
 26 files changed, 3784 deletions(-)
---
diff --git a/meson.build b/meson.build
index d8643f4a..33baf8ab 100644
--- a/meson.build
+++ b/meson.build
@@ -466,17 +466,6 @@ if enable_previewer
   subdir('previewer')
 endif
 
-# *** Browser Plugin ***
-enable_browser_plugin = get_option('browser_plugin')
-if enable_browser_plugin
-  browser_plugin_dir = get_option('browser_plugin_dir')
-  if not browser_plugin_dir.startswith('/')
-    browser_plugin_dir = join_paths(ev_libdir, browser_plugin_dir)
-  endif
-
-  subdir('browser-plugin')
-endif
-
 subdir('data')
 
 headers = files(
@@ -525,7 +514,6 @@ output += 'Viewer ...................:  ' + enable_viewer.to_string() + '\n'
 output += 'Previewer ................:  ' + enable_previewer.to_string() + '\n'
 output += 'Thumbnailer ..............:  ' + enable_thumbnailer.to_string() + '\n'
 output += 'Nautilus Extensions ......:  ' + enable_nautilus.to_string() + '\n'
-output += 'Browser Plugin ...........:  ' + enable_browser_plugin.to_string() + '\n\n\n'
 output += 'BACKENDS\n\n'
 output += 'Comics ...................:  ' + enable_comics.to_string() + '\n'
 output += 'DJVU .....................:  ' + enable_djvu.to_string() + '\n'
diff --git a/meson_options.txt b/meson_options.txt
index 32f92e75..1e6ef657 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -3,7 +3,6 @@ option('platform', type: 'combo', choices: ['gnome', 'win32'], value: 'gnome', d
 option('viewer', type: 'boolean', value: true, description: 'whether Viewer support is requested')
 option('previewer', type: 'boolean', value: true, description: 'whether Previewer support is requested')
 option('thumbnailer', type: 'boolean', value: true, description: 'whether Thumbnailer support is requested')
-option('browser_plugin', type: 'boolean', value: false, description: 'whether Browser Plugin support is 
requested')
 option('nautilus', type: 'boolean', value: true, description: 'whether Nautilus support is requested')
 
 option('comics', type: 'feature', value: 'auto', description: 'whether Comics support is requested')
@@ -26,5 +25,4 @@ option('gspell', type: 'feature', value: 'auto', description: 'whether gpsell su
 
 option('t1lib', type: 'feature', value: 'auto', description: 'whether support of t1lib for type1 fonts in 
dvi is requested')
 
-option('browser_plugin_dir', type: 'string', value: 'mozilla/plugins', description: 'custom directory for 
browser plugin')
 option('systemduserunitdir', type: 'string', value: '', description: 'custom directory for systemd user 
units, or \'no\' to disable')
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ebfc72b5..e75b0619 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -20,7 +20,6 @@ backend/tiff/tiff-document.c
 backend/tiff/tiffdocument.evince-backend.desktop.in.in
 backend/xps/evince-xpsdocument.metainfo.xml.in.in
 backend/xps/xpsdocument.evince-backend.desktop.in.in
-browser-plugin/EvBrowserPluginToolbar.cpp
 data/org.gnome.Evince.desktop.in.in
 data/org.gnome.Evince.gschema.xml
 data/org.gnome.Evince-previewer.desktop.in.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]