aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-02-10 07:03:22 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-03-11 03:09:59 +0800
commit643d1fd862ad9db0132fd4917d5db9d491070cc8 (patch)
tree42fbb375aca530396aae47c514260f1d10a1d596 /embed/ephy-web-view.c
parentb0b25d75ac3d8feedb1cc04e10b98e626d7b67ff (diff)
downloadgsoc2013-epiphany-643d1fd862ad9db0132fd4917d5db9d491070cc8.tar.gz
gsoc2013-epiphany-643d1fd862ad9db0132fd4917d5db9d491070cc8.tar.zst
gsoc2013-epiphany-643d1fd862ad9db0132fd4917d5db9d491070cc8.zip
ephy-web-view: share non-search-regex for testing
Add ephy-embed-private.h https://bugzilla.gnome.org/show_bug.cgi?id=669548
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 404b6167a..2295e6974 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -26,6 +26,7 @@
#include "ephy-debug.h"
#include "ephy-embed-container.h"
#include "ephy-embed-prefs.h"
+#include "ephy-embed-private.h"
#include "ephy-embed-shell.h"
#include "ephy-embed-single.h"
#include "ephy-embed-type-builtins.h"
@@ -2248,15 +2249,7 @@ ephy_web_view_init (EphyWebView *web_view)
priv->security_level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
priv->monitor_directory = FALSE;
- priv->non_search_regex = g_regex_new ("(^localhost(\\.[^[:space:]]+)?(:\\d+)?(/.*)?$|"
- "^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]$|"
- "^::[0-9a-f:]*$|" /* IPv6 literals */
- "^[0-9a-f:]+:[0-9a-f:]*$|" /* IPv6 literals */
- "^[^\\.[:space:]]+\\.[^\\.[:space:]]+.*$|" /* foo.bar... */
- "^https?://[^/\\.[:space:]]+.*$|"
- "^about:.*$|"
- "^data:.*$|"
- "^file:.*$)",
+ priv->non_search_regex = g_regex_new (EPHY_WEB_VIEW_NON_SEARCH_REGEX,
G_REGEX_OPTIMIZE, G_REGEX_MATCH_NOTEMPTY, NULL);
g_signal_connect (web_view, "mime-type-policy-decision-requested",