From f2d423a34e23b3d785fab96c9c14925bdbe16591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sun, 22 Oct 2006 17:08:06 +0000 Subject: Get keyword search back by passing ALLOW_THIRD_PARTY_FIXUP flag to gecko. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-10-22 Jean-François Rameau * embed/ephy-embed.h: * embed/ephy-embed.c: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-link.h: * src/ephy-location-action.c: (action_activated_cb): * src/ephy-shell.c: (ephy_shell_new_tab_full): * src/ephy-shell.h: * src/ephy-window.c: (ephy_window_open_link): Get keyword search back by passing ALLOW_THIRD_PARTY_FIXUP flag to gecko. Add a new load method to EphyEmbed to custom load behaviour and pass (optional) referrer. Fix bug #350053. --- src/ephy-shell.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/ephy-shell.c') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 58b387872..30ee3135f 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -530,8 +530,24 @@ ephy_shell_new_tab_full (EphyShell *shell, } else if (flags & EPHY_NEW_TAB_OPEN_PAGE) { + EphyEmbedLoadFlags load_flags = 0; + g_assert (url != NULL); - ephy_embed_load_url (embed, url); + + if (flags & EPHY_NEW_TAB_ALLOW_FIXUP) + { + load_flags = EPHY_EMBED_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP; + } + else + { + load_flags = EPHY_EMBED_LOAD_FLAGS_NONE; + } + /* FIXME */ + /* We need to audit every caller to see if this + won't make us send referer for undesirable loads. + Passing NULL referrer atm */ + ephy_embed_load (embed, url, load_flags, NULL); + is_empty = url_is_empty (url); } -- cgit v1.2.3