aboutsummaryrefslogtreecommitdiffstats
path: root/embed
Commit message (Collapse)AuthorAgeFilesLines
* e-embed: hide progress for about and ephy-aboutDiego Escalante Urrelo2013-01-051-1/+2
| | | | | | The progressbar should only react to pages, not special locations. https://bugzilla.gnome.org/show_bug.cgi?id=685747
* e-embed: only add one statusbar timeout at a timeDiego Escalante Urrelo2013-01-051-1/+3
| | | | | | | Otherwise the statusbar can disappear even if it has a valid message being displayed. https://bugzilla.gnome.org/show_bug.cgi?id=685747
* e-embed: use an overlay for the overviewDiego Escalante Urrelo2013-01-051-16/+10
| | | | | | This permits reusing elements of EphyEmbed more easily. https://bugzilla.gnome.org/show_bug.cgi?id=685747
* e-embed-prefs: remove spaces in Accept-LanguageDiego Escalante Urrelo2013-01-051-1/+1
| | | | | | | | | | | Some servers, like Babel, do not correctly sanitize the string in this header. They expect strings without spaces, even though the RFC includes them. Chrome and Firefox do not use spaces, presumably because many more websites break when using them. https://bugzilla.gnome.org/show_bug.cgi?id=671652
* ephy-shell: There can be two widgets for the same download in WebKit2Carlos Garcia Campos2013-01-041-0/+1
| | | | | | | | In WebKit2 WebKitWebContext::download-started signal is always emitted, even for downloads started manually. We only want to create a new download when the download operation has been started by WebKit. https://bugzilla.gnome.org/show_bug.cgi?id=678993
* ephy-download: Make EphyDownload:window a construct only propertyCarlos Garcia Campos2013-01-043-49/+32
| | | | | | | | It's always set right after the download object is created and it doesn't have any effect when it's set after the download has been added to the embed shell. This way we can make sure that when the download is added to the embed shell the parent window has already been set if there's any.
* Fix build with WebKit2Carlos Garcia Campos2012-12-202-0/+2
|
* Use new libsoup APIsXan Lopez2012-12-192-16/+3
| | | | Drops dependency on libsoup-gnome, we now depend on libsoup 2.41.3
* embed: move the OSD style class to the progressbarCosimo Cecchi2012-12-171-2/+2
| | | | | | <xan> cosimoc: ok, sure, go ahead Fixes black scrollbars showing up.
* Define the names of the history and bookmarks files in just one placeXan Lopez2012-12-121-1/+2
|
* Handle a bit more gracefully the self-launch detectionXan Lopez2012-12-123-1/+50
| | | | | | | Check whether the app that will launch a given download is actually the browser itself, and do nothing *before* going ahead. Seems better than actually launching and then aborting on startup through UUID hacks.
* e-web-view: enable back/forward mouse buttonsDiego Escalante Urrelo2012-12-121-0/+11
| | | | | | | | | Based on nautilus' (nautilus-window.c) button numbers and the bugzilla reports by users. Thank you Vincas Dargis and Joe Barnett for the previous patches. https://bugzilla.gnome.org/show_bug.cgi?id=337852
* ephy-embed: Remove references to SoupPasswordManagerDan Winship2012-12-121-10/+0
| | | | | | Epiphany gets its http-authentication-password-saving support via WebKit now, so remove the old SoupPasswordManager stuff (which is a no-op in libsoup master anyway).
* ephy-embed: fix registration of EphyRequestAboutDan Winship2012-12-111-1/+1
| | | | | The way it was before is supposed to still work (and so needs to be fixed in libsoup), but this way is more right anyway.
* e-embed: document ::overview-modeDiego Escalante Urrelo2012-12-111-0/+5
|
* e-embed-shell: fix spacing in a commentDiego Escalante Urrelo2012-12-111-1/+1
|
* e-download: remove useless includeDiego Escalante Urrelo2012-12-111-2/+0
|
* Add missing NULL-check when getting the WebView's URIMario Sanchez Prada2012-12-111-3/+4
| | | | | | We need to check the URI is valid before asking the WebKitFaviconDatabase for the associated icon, since it must happen that it's NULL even if priv->address is not (e.g. after a load error has occurred).
* e-embed-shell: remove the embed_shell globalDiego Escalante Urrelo2012-12-114-17/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683614
* e-web-view: remove unused varDiego Escalante Urrelo2012-12-091-1/+0
| | | | | | | | ephy-web-view.c: In function '_ephy_web_view_update_icon': ephy-web-view.c:1088:12: warning: unused variable 'object' [-Wunused-variable] https://bugzilla.gnome.org/show_bug.cgi?id=689932
* Port EphyWebView to WebKit2GTK+ favicons API.Mario Sanchez Prada2012-12-041-62/+66
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679370
* Initialize the favicon database from WebKit2GTK+ as soon as possible.Mario Sanchez Prada2012-12-041-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679370
* Fix a ton of 'warning: function declaration isn’t a prototype'Xan Lopez2012-11-052-2/+2
| | | | | | | | | New warning flags have been added to gnome-common recently, and we were getting this a lot. Turns out in C 'foo ()' is not the same than 'foo (void)'; the first just means that no information is given about the number of arguments, the second means the function has exactly zero arguments, so add the 'void' thing all over the place when needed.
* ephy-web-view: do not automatically download embedded objects in WebKit2Carlos Garcia Campos2012-10-161-9/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683635
* ephy-web-view: add FIXME for WebKit2Xan Lopez2012-10-161-0/+2
|
* ephy-web-view: do not automatically download embedded objectsXan Lopez2012-10-161-0/+20
| | | | | | | | Only download mime types we cannot handle when they belong to the main resource. Prevents us from downloading garbage present in <object> files, among other things. https://bugzilla.gnome.org/show_bug.cgi?id=683635
* ephy-web-view: remove handling of Content-Disposition 'attachment'Xan Lopez2012-10-161-25/+0
| | | | | WebKit already does exactly the same thing automatically, no need to handle it here.
* ephy-embed-prefs: Honor smooth scrolling settingCarlos Garcia Campos2012-10-091-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679048
* ephy-embed-prefs: Port user agent to WebKit2Carlos Garcia Campos2012-10-081-9/+56
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=684443
* ephy-overview: very minor style fixesXan Lopez2012-10-031-3/+1
|
* ephy-overview: also set shadow style as IN hereXan Lopez2012-10-031-1/+1
|
* ephy-embed: set shadow type IN for scrolled windowXan Lopez2012-10-031-0/+2
| | | | As requested by the GNOME designers.
* ephy-embed: small cleanupXan Lopez2012-10-031-8/+10
| | | | We access the priv struct a bunch of times here, create a variable for it.
* uri-tester: make it compile wth WebKit2Xan Lopez2012-10-031-0/+6
| | | | Still won't work, though, needs to be ported.
* adblock: get rid of AdBlock interfaceXan Lopez2012-10-036-270/+135
| | | | | | | No need for this now, just make EphyAdBlock a concrete class implementing the adblock functionality. https://bugzilla.gnome.org/show_bug.cgi?id=681657
* adblock: we don't use the edit rules stuff anymore, remove itXan Lopez2012-10-035-54/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681657
* Move adblock extension to embed/Xan Lopez2012-10-035-1/+1154
| | | | | | No reason for it to be in src/ now. https://bugzilla.gnome.org/show_bug.cgi?id=681657
* ephy-adblock-manager: use new coding styleXan Lopez2012-10-032-67/+70
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681657
* Add adblock GSetting, use itXan Lopez2012-10-021-1/+33
| | | | | | | org.gnome.epiphany.web.enable-adblock, controls whether adblock is enabled (globally). https://bugzilla.gnome.org/show_bug.cgi?id=681657
* ephy-web-view: Use webkit_web_view_is_loading() in WebKit2Carlos Garcia Campos2012-09-271-8/+6
|
* ephy-web-view: remove ephy_web_view_is_loading_homepage()Claudio Saavedra2012-09-172-14/+0
| | | | | | | It's unused and its usage is redundant with the ephy_web_view_is_history_frozen() https://bugzilla.gnome.org/show_bug.cgi?id=683796
* ephy-web-view: freeze history on homepage loadClaudio Saavedra2012-09-171-22/+22
| | | | | | And remove redundant check. https://bugzilla.gnome.org/show_bug.cgi?id=683796
* ephy-web-view: do not save history visits for no-show-addressesClaudio Saavedra2012-09-171-0/+6
| | | | | | | | We don't show these addresses in the location entry because they are very special to epiphany. There is no reason to store them in the history. https://bugzilla.gnome.org/show_bug.cgi?id=683796
* ephy-embed-utils: add ephy_embed_utils_is_no_show_address()Claudio Saavedra2012-09-172-0/+19
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683796
* ephy_web_view_load_error_page: fix GtkIconInfo leakPavel Vasin2012-09-171-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683929
* ephy-embed: show the overview when using wk2Claudio Saavedra2012-09-121-1/+6
| | | | This was neglected before, fix.
* ephy-web-view: fix the wk2 buildClaudio Saavedra2012-09-121-0/+2
| | | | | WK2 doesn't have yet a snapshotting API, so ifdef this out for the time being.
* Use ephy_sanitize_filename() for filenames suggested by the serverCarlos Garcia Campos2012-09-101-1/+1
| | | | | | | Because the suggested filename returned by the server might contain directory separators. https://bugzilla.gnome.org/show_bug.cgi?id=683711
* ephy-web-view: fix memory leakXan Lopez2012-09-081-0/+1
|
* embed-shell: drop a couple of unneeded includesXan Lopez2012-09-081-2/+0
|
* ephy-embed-shell: another style fixXan Lopez2012-09-081-1/+1
|
* embed-shell: remove stale defineXan Lopez2012-09-081-2/+0
|
* embed-shell: should be safe to drop the legacy print setup code nowXan Lopez2012-09-081-20/+0
|
* ephy-embed-shell: minor style fixesXan Lopez2012-09-081-7/+7
|
* ephy-embed-shell: use now coding styleXan Lopez2012-09-082-365/+317
|
* ephy-embed-shell: small cleanupsXan Lopez2012-09-081-10/+6
|
* ephy-embed-shell: cleanup dispose & finalizeXan Lopez2012-09-081-40/+7
| | | | | Unref objects in dispose, not finalize. Use g_clear_object correctly (no need to check whether the pointer is NULL).
* ephy-overview: add missing includeXan Lopez2012-09-061-0/+1
|
* ephy-embed-shell: ephy_embed_shell_get_frecent_store() should not be publicSergio Villar Senin2012-09-053-3/+5
| | | | | Removed ephy_embed_shell_get_frecent_store() from EphyEmbedShell public interface.
* ephy-overview: Use hand cursor when hovering itemsClaudio Saavedra2012-09-051-0/+23
| | | | For improved visual feedback.
* embed-utils: remove extra indentation level in methodXan Lopez2012-09-041-27/+24
| | | | The whole method is inside an if block, just do an early return.
* Add code coverage supportXan Lopez2012-09-041-0/+1
| | | | | | | | | | Needs a fairly recent gnome-common. To use do: - Run configure with --enable-code-coverage - Type 'make check-code-coverage' - Open the HTML results https://bugzilla.gnome.org/show_bug.cgi?id=683297
* ephy-web-view: don't leak the snapsoht cairo surfaceClaudio Saavedra2012-09-041-3/+6
|
* ephy-embed-shell: make the shell find uninstalled iconsXan Lopez2012-09-032-4/+2
| | | | This is needed for distcheck, which runs tests before installing.
* ephy-embed-prefs: Port preferred languages to WebKit2Carlos Garcia Campos2012-09-021-9/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679685
* ephy-embed-shell: load the new thumbnail frame and use it in the overview storeClaudio Saavedra2012-09-011-0/+4
|
* ephy-embed-shell: use the new artwork for the overview's default thumbnailClaudio Saavedra2012-09-011-10/+6
|
* data: add artwork for the overviewClaudio Saavedra2012-09-011-0/+1
| | | | Thumbnail for missing snapshots and thumbnail frame by Jakub Steiner.
* ephy-web-view: store the source tag for the snapshot idleClaudio Saavedra2012-09-011-0/+9
| | | | | To avoid warnings if the view dissapears before the source function is called.
* ephy-web-view: use is_history_frozen() to avoid snapshotting error pagesClaudio Saavedra2012-09-011-2/+4
| | | | | | Since this is used to freeze the history when an error page is being loaded, we can rely on it. Since the snapshots are taken in the FINISHED state, move the call to thaw after that.
* ephy-web-view: Lower the priority of the snapshotting taskClaudio Saavedra2012-09-011-1/+1
| | | | | This makes it more likely that all rendering in the page has already happenend, specially under heavy page load.
* ephy-overview: define the overview title string hereClaudio Saavedra2012-09-012-1/+4
| | | | Instead of duplicating the string everywhere.
* ephy-web-view: define the special-cased title for the overviewClaudio Saavedra2012-09-011-8/+19
|
* ephy-overview: improve layouting of items in the overviewClaudio Saavedra2012-09-011-7/+11
| | | | | | Make the iconview centered in the overview, while expanding this one and enabling scrollbars in both directions. This allows the window to be resized at will.
* Add about:overview to actually go to overview modeClaudio Saavedra2012-09-012-3/+7
|
* ephy-web-view: take a snapshot if needed when the page load finishesClaudio Saavedra2012-09-011-0/+9
|
* ephy-embed: add the overview and a overview-mode propertyClaudio Saavedra2012-09-012-0/+118
| | | | | Toggling this property will toggle visibility of the overview and the paned with the normal embed contents.
* Add EphyOverview widgetClaudio Saavedra2012-09-013-0/+203
| | | | | | | This widget entails two GdMainViews, one for the frecency model and one for the active model. https://bugzilla.gnome.org/show_bug.cgi?id=455173
* ephy-embed-shell: set the default icon for the frecent storeClaudio Saavedra2012-09-011-0/+29
| | | | Add a helper method for this.
* ephy-embed-shell: add a frecent store to the shellClaudio Saavedra2012-09-012-0/+34
| | | | | Since we will use the overview in each tab and these should share the underlying model.
* ephy-embed-prefs: tiny cosmetic fixesXan Lopez2012-08-261-6/+6
|
* ephy-web-view: do not allocate variables before they are neededXan Lopez2012-08-261-3/+3
| | | | Fixes a potential leak in WebKit2 mode.
* ephy-web-view: avoid getting a 'Blank page' title for non titled pagesXan Lopez2012-08-261-3/+3
| | | | | | | | | | | | | In WebKit2 we'll get no notify::title for pages without title, so check this case and reset the title to NULL, which for non-blank pages will use the address as title. This also removes the last notify::embed-title calls outside of ephy_web_view_set_title. Cherry-picked from a patch by Carlos Garcia. https://bugzilla.gnome.org/show_bug.cgi?id=682354
* ephy-web-view: drop superflous notifyXan Lopez2012-08-251-2/+0
| | | | | I don't think notifying 'embed-title' here makes much sense. If it does it's wrong, so if something breaks we'll fix it accordingly.
* ephy-web-view: remove more "invisible URI" logicXan Lopez2012-08-241-4/+1
| | | | | EphyWindow takes care of this now, so don't change the EphyWebView address to NULL when we load about:blank.
* ephy-embed-prefs: Pass an array of languages to spellchecker in WebKit2Carlos Garcia Campos2012-08-231-12/+24
| | | | | The API has changed to receive a char ** instead of a string containing a comma-separated list of languages.
* ephy-embed-single: Pass NULL as destroy notify to ↵Carlos Garcia Campos2012-08-221-1/+1
| | | | | | webkit_web_context_register_uri_scheme() A GDestroyNotify paramater has been recently added.
* ephy-web-view: Use webkit_web_view_load_alternate_html() for error pages in ↵Carlos Garcia Campos2012-08-221-10/+8
| | | | | | WebKit2 webkit_web_view_replace_content() has been removed
* ephy-web-view: Take a reference of the certificate returned by the responseCarlos Garcia Campos2012-08-211-0/+1
|
* ephy-embed-single.c: move unstable API defines to be the very first thing in ↵Gustavo Noronha Silva2012-08-211-3/+6
| | | | | | | | | | the file It may happen that config.h or ephy-embed-single.h end up including soup.h, which would cause the soup-password-manager.h header file to be included without the defines. https://bugzilla.gnome.org/show_bug.cgi?id=682289
* ephy-embed-single: check for SOUP_TYPE_PASSWORD_MANAGER_GNOMEGustavo Noronha Silva2012-08-211-1/+1
| | | | | | That is the type we actually use. https://bugzilla.gnome.org/show_bug.cgi?id=682289
* ephy-web-view: use ephy_string_get_host_nameXan Lopez2012-08-171-15/+9
| | | | Saves some code duplication.
* Port save as to WebKit2Carlos Garcia Campos2012-08-171-5/+68
| | | | | | | | Use webkit_web_view_save() API for HTML pages that saves the web page into a MHTML file. For any other MIME types supported by the web view, save the main resource data to a file. https://bugzilla.gnome.org/show_bug.cgi?id=679368
* ephy-web-view: ignore paths when deciding whether a URI has a TLDXan Lopez2012-08-151-8/+23
| | | | | | SoupTLD is not happy if we give it something like ".com/blah/blah". Add a unit test for this case too.
* ephy-embed-event: some cosmetic fixesXan Lopez2012-08-141-11/+3
|
* ephy-web-view: do not store error pages in historyXan Lopez2012-08-141-1/+31
| | | | | | | | | Otherwise we end up with dummy URIs in the history, overwritten titles ("Oops, could not load..."), etc. Add a unit test to make sure we do not regress. https://bugzilla.gnome.org/show_bug.cgi?id=655619
* Use webkit_web_frame_load_alternate_string to load error pagesMartin Robinson2012-08-141-2/+2
| | | | | | | webkit_web_view_load_string, which was used previously, does not add the error page to the back forward list. This means that when you go back from an error page (n) you will skip directly to an older page (n-2) or not be able to go back if the error page was the first loaded.
* ephy-embed-single: style cleanupsXan Lopez2012-08-101-18/+16
|
* ephy-embed-single: make the http disk cache respect private modeXan Lopez2012-08-101-3/+7
| | | | | | | By storing its data in the temporary profile instead of the user cache dir. https://bugzilla.gnome.org/show_bug.cgi?id=681147
* ephy-web-view: Return the certificate and TLS errors in ↵Carlos Garcia Campos2012-08-092-40/+42
| | | | | | | ephy_web_view_get_security_level Remove the unused description parameter an return the TLS certificte and errors instead.
* ephy-web-view: small style cleanupsXan Lopez2012-08-081-6/+6
|
* ephy-web-view: fix URI normalizationXan Lopez2012-08-071-1/+1
| | | | | | | | | | Give SoupTLD nothing but the TLD when trying to figure out whether a URI actually has a TLD, otherwise it won't be happy. In particular: '.gnome.org' -> Not OK '.org' -> OK Add a test for this case.
* ephy-web-view: do autosearch foo.bar strings where bar is not a TLDXan Lopez2012-08-072-5/+35
| | | | | | | | | Using the new SoupTLD methods. Had to split the non-search regexp in two so that we can reuse its 'is this a domain?' bits. Ugly as hell, but not worse than before... At least we have unit tests to catch regressions. https://bugzilla.gnome.org/show_bug.cgi?id=681022
* ephy-web-view: no need to cast g_object_new resultsXan Lopez2012-08-071-1/+1
|
* ephy-web-view: export the 'normalize or autosearch' methodXan Lopez2012-08-072-11/+21
| | | | | We are going to modify it a bit, and we really want to test it. Add some initial tests for the existing functionality.
* Port spell checking to WebKit2Mario Sanchez Prada2012-08-071-1/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=680368
* e-web-view: use GtkLabel API when possibleDiego Escalante Urrelo2012-08-031-2/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681080
* e-web-view: use GtkOrientable API for info barsDiego Escalante Urrelo2012-08-031-45/+10
| | | | | | | Instead of creating a custom GtkButtonBox, use GtkOrientable API implemented by the default action_area widget (a GtkBox) of GtkInfoBar. https://bugzilla.gnome.org/show_bug.cgi?id=681078
* ephy-embed: Port inspector to WebKit2Carlos Garcia Campos2012-08-031-18/+29
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679616
* ephy-embed-single: Port disk cache to Webit2Carlos Garcia Campos2012-08-031-0/+10
| | | | | | | From the API point of view, we only need to use WebKit2 to clear the cache. https://bugzilla.gnome.org/show_bug.cgi?id=679684
* Settings: add a enable-webaudio setting.Philippe Normand2012-08-021-0/+4
| | | | | | WebAudio support in WebKitGTK is not stable yet but it would be good to allow Epiphany users to test this feature nonetheless. The enable-webaudio gsetting is set to false by default.
* ephy-embed-utils: use new coding styleXan Lopez2012-08-022-117/+111
|
* ephy-encoding: auto-calculate 'title-elided' and 'collation-key'Xan Lopez2012-07-313-45/+47
| | | | They are derived from 'title', no need to pass them as parameters.
* ephy-encoding: fix extra blank lineXan Lopez2012-07-311-2/+1
|
* ephy-embed-shell: sort headers properly!Xan Lopez2012-07-311-1/+1
|
* ephy-embed-shell: add missing headerXan Lopez2012-07-311-7/+7
| | | | | Dropping useless headers elsewhere uncovered a missing header (stdlib.h) here. Also sort headers while at it.
* ephy-encodings: remove dead codeXan Lopez2012-07-311-10/+0
|
* ephy-encodings: use new coding styleXan Lopez2012-07-312-340/+324
|
* ephy-encoding: fix indentationXan Lopez2012-07-311-23/+23
|
* ephy-encodings: rewrite to drop usage of EphyNodeXan Lopez2012-07-315-142/+448
| | | | | | | | | | We have a new 'EphyEncoding' object holding the encoding data, and the EphyEncodings object is now just a hash table holding a bunch of these. Change all the UI code to use the new APIs. https://bugzilla.gnome.org/show_bug.cgi?id=680735
* ephy-web-view: fix gtk-doc warningXan Lopez2012-07-281-1/+1
|
* ephy-encodings: drop some useless codeXan Lopez2012-07-281-4/+0
|
* ephy-web-view: get rid of gtk-doc warningXan Lopez2012-07-191-1/+1
|
* Use G_DEFINE_BOXED_TYPE to define boxed typesXan Lopez2012-07-191-15/+3
| | | | | EphyNode is missing, but trying to migrate it gives some obscure error I need to figure out.
* Port persistent cookies to WebKit2Carlos Garcia Campos2012-07-131-3/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679369
* ephy-web-view: Port security level to WebKit2Carlos Garcia Campos2012-07-131-15/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679371
* ephy-embed-prefs: Remove TODO comment about page-cache settingCarlos Garcia Campos2012-07-091-1/+0
| | | | In WebKit2 page cache is enabled by default.
* ephy-embed-prefs: Enable site specific quirks in WebKit2Carlos Garcia Campos2012-07-091-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679499
* Port cookies to WebKit2Carlos Garcia Campos2012-07-043-7/+60
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678626
* ephy-web-view: unref objects in dispose, not finalizeXan Lopez2012-06-281-5/+2
|
* ephy-web-view: set_title can also be made private to its fileXan Lopez2012-06-282-49/+40
|
* ephy-web-view: get rid of redundant calls to set_titleXan Lopez2012-06-281-11/+2
| | | | | | | Just trust the title-updated signal for the most part. Seems to work just fine in WK1, and fixes missing updates to the title in WK2. https://bugzilla.gnome.org/show_bug.cgi?id=679046
* ephy-web-view: make set_address completely privateXan Lopez2012-06-282-43/+37
| | | | | It's not used outside its own class either, so we can make it private to the file.
* ephy-web-view: move private methods to the private headerXan Lopez2012-06-282-23/+21
|
* ephy-web-view: ephy_web_view_location_changed is private to its classXan Lopez2012-06-282-53/+43
| | | | Do not make it public.
* Port fullscreen popup to WebKit2Claudio Saavedra2012-06-281-3/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678840
* ephy-web-view: fix think-o in ephy_web_view_location_changedXan Lopez2012-06-281-6/+3
| | | | | | Do not re-set the address we already have, use the location we get as a parameter, which comes from the same place (WebKit layer) than ephy_web_view_get_location used to get it from.
* ephy-web-view: get rid of 'ephy_web_view_get_location'Xan Lopez2012-06-282-49/+12
| | | | | | Nowhere in epiphany were we using the "get the non-toplevel location" feature (which was broken anyway), so I think we should be able to just use get_address everywhere.
* ephy-web-view: and more type checksXan Lopez2012-06-281-0/+2
|
* ephy-web-view: add type checks for the set_typed_address method parametersXan Lopez2012-06-281-1/+5
|
* ephy-web-view: do not duplicate the setter code for typed-addressXan Lopez2012-06-281-7/+2
|
* ephy-web-view: try to simplify a bit the typed-address logicXan Lopez2012-06-281-23/+17
| | | | | | | | | | I think we can do without the "expire_address_now" boolean, and just rely on whether typed-address itself is NULL or not. If it is not, we want to always show it in the location entry and never overwrite it, since it reflects what the user has typed. The only case when we want to go ahead and set it to NULL is when the load actually starts (ie, when the user wants to transform what he has typed into a new load). Try to document things better reflecting this logic.
* ephy-web-view: remove useless forward declarationsXan Lopez2012-06-281-3/+0
|
* ephy-web-view: remove unneeded headers, and sort themXan Lopez2012-06-281-2/+1
|
* Port downloads to WebKit2Carlos Garcia Campos2012-06-273-63/+161
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678612
* ephy-web-view: fix anchor links' URI updateXan Lopez2012-06-271-4/+5
| | | | | | Use again notify::uri, but do nothing if we receive it when the page is not loading (ie, before STARTED was reached). This fixes the difference in semantincs between WK1 and WK2.
* ephy-web-view: move the file monitoring code to its own class, EphyFileMonitor.Xan Lopez2012-06-274-183/+376
| | | | | Since the vast majority of the code was really independent from EphyWebView.
* ephy-web-view: stop using notify::uri in WebKit2Xan Lopez2012-06-271-0/+4
| | | | | | In WebKit2 notify::uri will come with the requested URI even before/during the STARTED status, so we cannot use it in the same way as we were using it in WebKit1, where the semantincs were different.
* ephy-web-view: small style and indentation fixesXan Lopez2012-06-271-17/+17
|
* Port geolocation permission request to WebKit2Carlos Garcia Campos2012-06-261-7/+40
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678614
* Port plugins about handler to WebKit2Carlos Garcia Campos2012-06-263-11/+105
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678625
* Port about handlers to WebKit2Carlos Garcia Campos2012-06-261-0/+22
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678616
* embed: Move about handlers to a new fileCarlos Garcia Campos2012-06-267-162/+227
| | | | | Leaving in ephy-request-about only the code specific to the soup feature implementation.
* ephy-download: remove _ephy_download_new() internal functionCarlos Garcia Campos2012-06-251-33/+33
| | | | | | | It makes the code a bit more complex. Since we always need a WebKitDownload we can just create a WebKitDownload in ephy_download_new_for_uri() can then use ephy_download_new_for_download() to create the EphyDownload.
* ephy-download: Pass suggested filename to define_destination_uri()Carlos Garcia Campos2012-06-251-9/+7
| | | | | Instead of getting it from the download to make define_destination_uri() function compatible with WebKit2.
* Por run javascript to WebKit2Carlos Garcia Campos2012-06-251-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678601
* Port printing to WebKit2Carlos Garcia Campos2012-06-251-3/+38
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678600
* ephy-web-view: add ephy_web_view_print_failed()Carlos Garcia Campos2012-06-251-16/+22
| | | | | Helper function to show an error messaage in the info bar when the print operation failed.
* Port hovering over link to WebKit2Carlos Garcia Campos2012-06-252-7/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678599
* ephy-web-view: status message should be constCarlos Garcia Campos2012-06-254-5/+5
| | | | | In both ephy_web_view_set_link_message() and ephy_embed_utils_link_message_parse().
* Port history to WebKit2Carlos Garcia Campos2012-06-251-1/+1
| | | | | | | In WebKit2 the back forward list is a read-only object, so the code were the back forward list is modified hasn't been ported. https://bugzilla.gnome.org/show_bug.cgi?id=678594
* Add support for new windows in WebKit2Carlos Garcia Campos2012-06-252-6/+43
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678593
* Port web settings to WebKit2Carlos Garcia Campos2012-06-251-33/+65
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678592
* Port policy client to WebKit2Carlos Garcia Campos2012-06-251-2/+60
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678591
* Port web view loading progress and feedback to WebKit2Carlos Garcia Campos2012-06-242-18/+205
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678532
* ephy-web-view: Add ephy_web_view_load_failed()Carlos Garcia Campos2012-06-242-0/+19
| | | | To check whether the load operation in the web view failed.
* ephy-download: add EPHY_DOWNLOAD_ACTION_DO_NOTHINGDiego Escalante Urrelo2012-06-232-3/+9
| | | | | | | | | Add a new action instead of abusing NONE. NONE means nothing has been set, this will trigger AUTO when auto-downloads preference is TRUE. DO_NOTHING explicitely asks for no action to be taken. https://bugzilla.gnome.org/show_bug.cgi?id=676128
* Initial WebKit2 portCarlos Garcia Campos2012-06-2111-12/+369
| | | | It builds and basic functionality works.
* ephy-web-view: Use webkit_web_view_load_uri() instead of webkit_web_view_open()Carlos Garcia Campos2012-06-211-4/+4
| | | | | webkit_web_view_open() is deprecated in WebKit1 and webkit_web_view_load_uri() is compatible with WebKit2.
* Use WebKitWebView API to get/set the zoom level instead of g_object_get/setCarlos Garcia Campos2012-06-211-8/+4
| | | | | Also use always double instead of float so that it will be compatible with WebKit2 API.
* Include libsoup header explicitly when requiredCarlos Garcia Campos2012-06-214-3/+3
| | | | Instead of relying on webkit header to include it.
* ephy-embed: show a message popup when entering fullscreen modeClaudio Saavedra2012-06-202-0/+92
| | | | | | | | The message is different depending on whether we are entering HTML5 fullscreen mode or application fullscreen, since the keys used to leave either mode are different. https://bugzilla.gnome.org/show_bug.cgi?id=671195
* ephy-window: keep track of whether the downloads box is shownClaudio Saavedra2012-06-201-0/+1
| | | | | | We add it to EphyWebViewChrome and track it there. https://bugzilla.gnome.org/show_bug.cgi?id=671195
* ephy-web-view: remove unused EphyWebViewChrome elementsDiego Escalante Urrelo2012-06-152-11/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676904
* ephy-download: Simplify decide_action_from_mimeCarlos Garcia Campos2012-06-141-29/+16
| | | | | | Remove unused variables and fix memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=676484
* e-file-helpers: Add ephy_file_create_data_uri_for_filename()Carlos Garcia Campos2012-06-142-41/+8
| | | | | | | It creates a data URI for the given filename. Use the new function when building error and applications pages. https://bugzilla.gnome.org/show_bug.cgi?id=677025
* Add a new mode for shell testing, EPHY_EMBED_SHELL_MODE_TESTXan Lopez2012-06-141-1/+2
| | | | | | For now the only difference is that no top-level window will be shown in this mode, but in the future it can be extended to behave in a manner appropriate for testing.
* ephy-web-view: fix GList leakPavel Vasin2012-06-121-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=677720
* ephy-web-view: fix use-after-free in get_file_content_as_base64()Dan Williams2012-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | image_type is owned by file_info, so we can't free file_info until after we're done with image_type. Fixes crash when error page is displayed. Valgrind trace: ==1916== Invalid read of size 1 ==1916== at 0x38CBA7B328: _IO_default_xsputn (in /lib64/libc-2.14.90.so) ==1916== by 0x38CBA4B3A7: vfprintf (in /lib64/libc-2.14.90.so) ==1916== by 0x38CBB084B0: __vasprintf_chk (in /lib64/libc-2.14.90.so) ==1916== by 0x38CDA8A44A: g_vasprintf (stdio2.h:199) ==1916== by 0x38CDA69B0C: g_strdup_vprintf (gstrfuncs.c:509) ==1916== by 0x38CDA69BAB: g_strdup_printf (gstrfuncs.c:535) ==1916== by 0x47EA57: ephy_web_view_load_error_page (ephy-web-view.c:1978) ==1916== by 0x47F6B2: load_error_cb (ephy-web-view.c:2119) ==1916== by 0x38E8E7753F: webkit_marshal_BOOLEAN__OBJECT_STRING_POINTER (in /usr/lib64/libwebkitgtk-3.0.so.0.11.0) ==1916== by 0x38CEA11381: g_closure_invoke (gclosure.c:777) ==1916== by 0x38CEA23132: signal_emit_unlocked_R (gsignal.c:3547) ==1916== by 0x38CEA2AEE1: g_signal_emit_valist (gsignal.c:3306) ==1916== Address 0x4f02040 is 0 bytes inside a block of size 10 free'd ==1916== at 0x4A0662E: free (vg_replace_malloc.c:366) ==1916== by 0x38CDA5513E: g_free (gmem.c:252) ==1916== by 0x38D1255908: _g_file_attribute_value_clear (gfileattribute.c:245) ==1916== by 0x38D125A078: g_file_info_finalize (gfileinfo.c:324) ==1916== by 0x38CEA1670F: g_object_unref (gobject.c:3018) ==1916== by 0x47EA05: ephy_web_view_load_error_page (ephy-web-view.c:1974) ==1916== by 0x47F6B2: load_error_cb (ephy-web-view.c:2119) ==1916== by 0x38E8E7753F: webkit_marshal_BOOLEAN__OBJECT_STRING_POINTER (in /usr/lib64/libwebkitgtk-3.0.so.0.11.0) ==1916== by 0x38CEA11381: g_closure_invoke (gclosure.c:777) ==1916== by 0x38CEA23132: signal_emit_unlocked_R (gsignal.c:3547) ==1916== by 0x38CEA2AEE1: g_signal_emit_valist (gsignal.c:3306) ==1916== by 0x38CEA2BE83: g_signal_emit_by_name (gsignal.c:3389) https://bugzilla.gnome.org/show_bug.cgi?id=677736
* ephy-embed: fix a comment typoClaudio Saavedra2012-06-111-1/+1
|
* ephy-web-view: chain up to the parent constructed virtual methodCarlos Garcia Campos2012-06-051-0/+3
| | | | To make sure constructed is called in WebKitWebView if present.
* e-download: document get_content_typeDiego Escalante Urrelo2012-05-271-0/+10
|
* embed: remove custom CSS styling for the overlay progressbarCosimo Cecchi2012-05-241-2/+2
| | | | | | | Now that the overlay progressbar is styled by the theme, we can just set the OSD style class on the overlay to get the same effect. https://bugzilla.gnome.org/show_bug.cgi?id=676660
* Fix memory leak in ephy_web_view_set_popups_allowedLubomír Sedlář2012-05-211-3/+3
| | | | | | | If ephy_embed_shell_get_embed_single () does not return a correct manager, a location string is leaked. https://bugzilla.gnome.org/show_bug.cgi?id=675888
* Add support for 'Do Not Track'Xan Lopez2012-05-191-0/+46
| | | | | | | If the org.gnome.Epiphany.web.do-not-track setting is enabled, we'll send the DNT: 1 header with every outbound request we make. See http://donottrack.us/ for more details.
* Move ephy-web-app-utils to lib/Xan Lopez2012-05-093-558/+1
| | | | | | We are going to use it in the profile migrator, so it needs to be there. Besides, this code just deals with plain data in the profile and application dir, so it makes sense for it to be here.
* Replace "system" with system languages when setting spelling dictionariesMartin Robinson2012-04-271-0/+19
| | | | | | | The string "system" is used as a placeholder for the default system languages in the preference listing of spelling dictionaries. Before sending this to WebKit to set the spelling dictionaries, we should fill in the actual default system languages.
* e-web-app-utils: use LOG and g_warning instead of g_printDiego Escalante Urrelo2012-04-221-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673348
* Also consider email inputs when looking for user/password formsGustavo Noronha Silva2012-04-211-1/+1
| | | | | | | | Some sites use email addresses for login purposes, and already adopted the email input type for the login forms. This means we should also consider email inputs as a possible username entry. https://bugzilla.gnome.org/show_bug.cgi?id=666326
* ephy-embed-single: introspection fixesXan Lopez2012-04-141-1/+1
|
* ephy-embed-event: introspection fixesXan Lopez2012-04-141-2/+2
|
* ephy-permission-manager: introspection fixesXan Lopez2012-04-141-5/+5
|
* ephy-embed-event: fix introspection warningXan Lopez2012-04-141-0/+6
|
* ephy-web-view: fix a few gtk-doc warningsXan Lopez2012-04-141-8/+6
|
* web-apps: s/StartupNotification/StartupNotify/ in desktop filesXan Lopez2012-04-111-1/+1
| | | | | | That's the correct name for the entry. https://bugzilla.gnome.org/show_bug.cgi?id=673865
* ephy-embed-single: do not handle ephy-embed-prefsDiego Escalante Urrelo2012-04-111-4/+0
| | | | | | | | | ephy-embed-prefs acts like a singleton. Instead of calling init and shutdown in EphyEmbedSingle instances handle it in ephy-main as a true init/shutdown API like ephy-file-helpers. https://bugzilla.gnome.org/show_bug.cgi?id=673273
* Revert "e-web-app-utils: whitespace nitpicks in casts"Xan Lopez2012-04-021-5/+5
| | | | | | | This reverts commit 0b05e95f4aea0ab11ab11828e0bcc0b920d6230e. Our codebase is not completely consistent here, but as a rule we don't do whitespaces in casts.
* e-web-app-utils: whitespace nitpicks in castsDiego Escalante Urrelo2012-04-011-5/+5
|
* e-web-app-utils: update and fix gtk-doc commentsDiego Escalante Urrelo2012-03-311-3/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673022
* e-web-app-utils: sync var names in APIDiego Escalante Urrelo2012-03-312-10/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673021
* e-web-app-utils: remove ephy-web-view includeDiego Escalante Urrelo2012-03-312-3/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673019
* e-web-app-utils: add ephy_web_application_existsAlexandre Mazari2012-03-312-0/+21
| | | | | | Signed-off-by: Diego Escalante Urrelo <diegoe@igalia.com> https://bugzilla.gnome.org/show_bug.cgi?id=658925
* ephy-encodings: reorder includesXan Lopez2012-03-311-3/+3
|
* ephy-web-app-utils: do not use the webview in the web app creation methodAlexandre Mazari2012-03-292-12/+10
| | | | | | | It's not really needed, will allow to reuse this code during profile migration. https://bugzilla.gnome.org/show_bug.cgi?id=658925
* Remove EphyHistory from the repository. It's unused now.Xan Lopez2012-03-206-1230/+1
|
* Replace EphyFaviconCache by WebKit's icon database cacheSergio Villar Senin2012-03-208-1012/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=648653
* Fix bookmarklet's titles when they are createdXan Lopez2012-03-162-14/+22
| | | | | | | | This was pretty much broken since the Gecko days. On top of that, catch the case where the bookmarklet title is in the child node of the anchor element, which we never got right before. https://bugzilla.gnome.org/show_bug.cgi?id=672194
* ephy-web-view: return an actual visit type instead of just '0'Xan Lopez2012-03-151-1/+1
|
* The security certificate code is a no-op, remove itXan Lopez2012-03-152-13/+0
|
* ephy-web-view: remove gtk-doc snippet for a private methodXan Lopez2012-03-151-7/+0
|
* ephy-web-view: use plain g_signal_connect alwaysXan Lopez2012-03-151-9/+9
| | | | I'm pretty sure there's no point in using the _object variant here.
* ephy-web-view: connect to WebView signals in just one placeXan Lopez2012-03-151-8/+12
|
* ephy-web-view: we already have a reference to the history serviceXan Lopez2012-03-151-1/+1
| | | | Don't request the global instance again.
* ephy-web-view: do not duplicate code for the uri->title fallbackXan Lopez2012-03-151-17/+14
|
* ephy-web-view: remove can_go_up/go_up codeXan Lopez2012-03-152-50/+2
| | | | We do not support this anymore in our UI.
* ephy-web-view: make ephy_web_view_clear_history privateXan Lopez2012-03-152-54/+47
| | | | It's only used by the class itself now.
* Automatically prefix existing absolute paths with file://Gustavo Noronha Silva2012-03-143-5/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=671792
* Revert "ephy-embed-single: remove some dead code"Xan Lopez2012-03-141-1/+53
| | | | | | | This reverts commit 08956cf8cd8040f8500c40b646a52b6f03ae5275. Bleh, the mostly useless popup code in EphyWebView needs this even if it's a no-op, so bring it back.
* ephy-embed-single: remove network statusXan Lopez2012-03-142-96/+0
| | | | We are not using it. Easy enough to bring it back if needed.
* ephy-embed-single: remove some dead codeXan Lopez2012-03-141-56/+1
|
* ephy-embed: do not pull in string.h for strcmpXan Lopez2012-03-141-2/+1
|
* ephy-embed: remove a few useless includesXan Lopez2012-03-141-8/+0
|
* ephy-web-view: also reset page visit type on load failedXan Lopez2012-03-141-0/+3
|
* ephy-web-view: style fixesXan Lopez2012-03-141-82/+79
|
* ephy-embed: remove history serviceXan Lopez2012-03-141-5/+0
| | | | EphyEmbed does not use it anymore.
* ephy-web-view: move history management to EphyWebViewXan Lopez2012-03-142-26/+21
|
* ephy-web-view: move zoom handling to EphyWebViewXan Lopez2012-03-142-81/+82
| | | | | Again, this only interacts with the view, so it does not need to be in EphyEmbed.
* ephy-web-view: let EphyWebView clear its own historyXan Lopez2012-03-142-15/+15
| | | | No point in doing it from EphyEmbed.
* ephy-web-view: get a reference to the history serviceXan Lopez2012-03-141-0/+3
| | | | We are going to move stuff from embed to webview, so we'll need this.
* history: remember visit typesXan Lopez2012-03-143-6/+62
| | | | | | | Instead of hardcoding all visits as 'TYPED' properly distinguish between bookmarks, following links and typing URIs in the entry. We'll use this to compute the frecency of history items.
* ephy-web-view: fix indentationXan Lopez2012-03-131-18/+14
|
* ephy-web-view: remove useless includesXan Lopez2012-03-131-4/+0
|
* ephy-web-view: move header to the new coding styleXan Lopez2012-03-131-32/+34
|
* ephy-web-view: remove stale codeXan Lopez2012-03-131-43/+0
|
* ephy-embed: cancel the pending history queries during finalizeClaudio Saavedra2012-03-131-1/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=671901
* ephy-history-service: make the async API cancellableClaudio Saavedra2012-03-132-3/+3
| | | | | | | | | | | The main purpose of the cancellable API in ephy-history-service is to let the user notify when the results of the operation are no longer needed and the callback call can be omitted. Since performing a read operation, in such cases, makes no sense, we cancel them altogether. However, given the nature of the service, we don't cancel write operations. https://bugzilla.gnome.org/show_bug.cgi?id=671901
* ephy-web-view: share non-search-regex for testingDiego Escalante Urrelo2012-03-113-9/+47
| | | | | | Add ephy-embed-private.h https://bugzilla.gnome.org/show_bug.cgi?id=669548
* ephy-embed: do not add the homepage (about:blank) to the historyXan Lopez2012-03-081-0/+3
| | | | | Don't do it when it's loaded automatically through NewTab or NewWindow, but do it if the user actually types the URI.
* ephy-web-view: remember when we are loading the homepageXan Lopez2012-03-082-11/+37
| | | | And add a getter for the information.
* ephy-web-view: protect against pages with NULL URIXan Lopez2012-03-071-4/+6
| | | | | | | Some pages (like those opened with javascript:...) can have a NULL URI according to WebKit, so protect against that. https://bugzilla.gnome.org/show_bug.cgi?id=671555
* Move the host and urls views from embed to lib/widgetsXan Lopez2012-03-079-804/+1
| | | | | Since that's their natural place. Also create a base class to hold the common code they share.
* ephy-history-view: ellypsize the title and url columnsClaudio Saavedra2012-03-071-2/+6
|
* history-window: Add a view for the hostsClaudio Saavedra2012-03-075-0/+396
|
* Add a new view for the pages historyClaudio Saavedra2012-03-075-0/+403
| | | | | The current view is based in EphyNode, so it's not useful. GtkTreeView and GtkListStore subclasses are added for this purpose.
* ephy-embed: do not retrieve the legacy history instanceXan Lopez2012-03-071-3/+0
| | | | We are not using it anymore.
* ephy-history-service: add a "cleared" signal for the clear methodXan Lopez2012-03-071-3/+3
| | | | And use it in EphyEmbed instead of the legacy signal.
* Rename ephy_history_service_add_page to ephy_history_service_visit_urlXan Lopez2012-03-071-1/+1
| | | | Fits much better with the naming model in that class.
* Get rid of EphyBrowseHistoryXan Lopez2012-03-077-295/+40
| | | | | | It was a very thin wrapper on top of the history service, it does not seem to make much sense. For now move the two useful helper methods down to the service without further changes.
* ephy-web-view: also fallback to URI as title hereXan Lopez2012-03-071-3/+9
|
* ephy-browse-history: small cleanupXan Lopez2012-03-071-1/+1
|