diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-12-29 00:39:40 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-02-19 19:59:33 +0800 |
commit | 86615e3298fa53736a6a2b722be7d45ecffd36db (patch) | |
tree | 56a041705b541760e4c04c7a4d7137f790b64d05 /src | |
parent | 8acf5ae0ecaf38ce2b0e1529d88a8fde9803b7e4 (diff) | |
download | gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar.gz gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar.bz2 gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar.lz gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar.xz gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.tar.zst gsoc2013-epiphany-86615e3298fa53736a6a2b722be7d45ecffd36db.zip |
embed: Implement unsubmitted modified forms warning in WebKit2
Installing a web extension to access the DOM.
https://bugzilla.gnome.org/show_bug.cgi?id=684437
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/ephy-main.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 910851b4d..a901b8b8d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -140,6 +140,7 @@ epiphany_CPPFLAGS = \ -I$(top_srcdir)/src/bookmarks \ -DDATADIR=\""$(datadir)"\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ + -DEPHY_WEB_EXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_MAJOR)/web-extensions"\" \ $(INCINTL) \ $(AM_CPPFLAGS) diff --git a/src/ephy-main.c b/src/ephy-main.c index 3a464e476..7c38fd952 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -458,6 +458,12 @@ main (int argc, gtk_window_set_default_icon_name ("web-browser"); } +#ifdef HAVE_WEBKIT2 + /* Set the web extensions dir ASAP before the process is launched */ + webkit_web_context_set_web_extensions_directory (webkit_web_context_get_default (), + EPHY_WEB_EXTENSIONS_DIR); +#endif + ephy_embed_prefs_init (); _ephy_shell_create_instance (mode); |