aboutsummaryrefslogtreecommitdiffstats
path: root/embed
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ephy-browse-history: style cleanupsXan Lopez2012-03-072-115/+45
|
* Remove the set_url_property history methodXan Lopez2012-03-071-6/+4
| | | | It's not really that useful.
* Store zoom levels per host, not per URLXan Lopez2012-03-073-17/+32
| | | | | | | | | | Zoom levels have always been stored per host in Epiphany, not per URL (otherwise you'd have to re-apply the zoom level again and again when visiting, say, every news entry in your favorite newspaper). Change things to work like that. Note: this changes the SQL table format for the history, so you'll need to re-migrate your history.
* Hook the new history to the URL entryXan Lopez2012-03-072-0/+6
| | | | | We now fetch the history from the SQL backend using a service thread, and merge the results with our old bookmark data.
* Use EphyBrowseHistory to store page titlesClaudio Saavedra2012-03-071-4/+3
|
* Use EphyBrowseHistory to set/get the zoom level for pagesClaudio Saavedra2012-03-071-39/+39
|
* Use the new EphyBrowseHistory to add a URI to the historyClaudio Saavedra2012-03-071-6/+1
|
* Add a EphyBrowseHistory instance to EphyEmbedClaudio Saavedra2012-03-071-0/+3
|
* Add a EphyBrowseHistory instance to EphyEmbedShellClaudio Saavedra2012-03-072-0/+29
|
* Add initial implementation of the browse history frontendClaudio Saavedra2012-03-073-0/+321
| | | | This will eventually replace the old EphyHistory class
* We need to be a bit smarter about this, and only dismiss it forXan Lopez2012-02-241-1/+1
| | | | | | | | user-initiated navigations. Revert for now. Revert "ephy-web-view: dismiss the "Remember password?" infobar on navigation" This reverts commit 2434fbfa4df95702de8e19e2484b23937113a8cd.
* ephy-web-view: fix loading of <domain>:<port> URIsXan Lopez2012-02-231-1/+76
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=670674
* ephy-embed-utils: fix loading of <IP address>:<port> URIsXan Lopez2012-02-231-7/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=669461
* ephy-web-view: don't assume a embed-container in close-web-viewDiego Escalante Urrelo2012-02-221-9/+5
| | | | | | | | | The EphyWebView is not necessarily embedded in an EphyEmbedContainer. Simplify close_web_view_cb and make it smarter. It now handles EphyEmbedContainer and random toplevel widgets. https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-view: remove close-requested signalDiego Escalante Urrelo2012-02-222-17/+0
| | | | | | | | | WebKitWebView has a ::close-web-view signal for the same thing. The only user of this was ephy-window, for exactly the same thing that we are already doing in ephy-web-view, when handling ::close-web-view. https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-app-utils: be more careful listing applicationsDiego Escalante Urrelo2012-02-221-16/+17
| | | | | | Check if the .desktop file exists to prevent false positives. https://bugzilla.gnome.org/show_bug.cgi?id=669836
* Initialize variables that could be freed without being setGustavo Noronha Silva2012-02-201-2/+2
|
* Make inspector handling real-world compliantGustavo Noronha Silva2012-02-201-10/+30
| | | | | | | Destroy and recreate the inspector's WebView instead of reusing it, and make it always start windowed. https://bugzilla.gnome.org/show_bug.cgi?id=669835
* ephy-web-view: blank line nitpickDiego Escalante Urrelo2012-02-111-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-app-utils: add EPHY_WEB_APP_ICON defineDiego Escalante Urrelo2012-02-092-2/+3
| | | | | | | Stands for "app-icon.png", which is of interest outside ephy-web-app-utils.c https://bugzilla.gnome.org/show_bug.cgi?id=669182
* Convert app names to the proper encoding before using them as filenamesClaudio Saavedra2012-02-081-12/+53
| | | | | | Also add proper conversion error handling where needed. https://bugzilla.gnome.org/show_bug.cgi?id=658028
* Allow toggling WebGL as a runtime GSettings switchMartin Robinson2012-02-031-0/+4
| | | | | | If WebGL is enabled in WebKitGTK+, this new GSettings switch disables and enables WebGL settings at runtime. WebGL is disabled by default currently because Epiphany may use Clutter in the future.
* Get rid of EPHY_STOCK_EPHYXan Lopez2012-01-271-1/+0
| | | | | | In 99% of the cases we were using it for gtk_window_set_icon_name, which does nothing in GNOME 3. In the couple of valid use cases, just use "web-browser" directly.
* ephy-embed-utils: load again stuff like 'localhost:3000"Xan Lopez2012-01-251-5/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=668593
* Never append "http://" to an address with a schemeXan Lopez2012-01-242-3/+6
| | | | | It does not make sense. Fixes opening about: pages after normalizing all URLs again (and not only those without a scheme!).
* ephy-embed-utils: consider 'ephy-about' as a web schemeXan Lopez2012-01-241-0/+1
| | | | | Otherwise we'll fail to open about: pages in our policy decision mechanism.
* ephy-web-view: remove unused variableXan Lopez2012-01-241-6/+0
|
* ephy-web-view: dismiss the "Remember password?" infobar on navigationXan Lopez2012-01-241-1/+1
| | | | | Does not make much sense to keep it when the context for the action is gone.
* ephy-window: sync page actions with is-blank propertyDiego Escalante Urrelo2012-01-241-3/+42
| | | | | | | | Add ::is-blank property to EphyWebView and update EphyWindow to sync some of the page menu actions with it. There's no point in enabling save/reload/bookmark/etc on about:blank. https://bugzilla.gnome.org/show_bug.cgi?id=668105
* ephy-web-view: remove uneeded is_blank callsDiego Escalante Urrelo2012-01-241-4/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=668105
* ephy-web-view: only autosearch input without schemeDiego Escalante Urrelo2012-01-241-11/+18
| | | | | | | Create an autosearch from the user input only when it has no scheme at all. https://bugzilla.gnome.org/show_bug.cgi?id=551857
* ephy-embed-utils: mailto is not a web schemeDiego Escalante Urrelo2012-01-241-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=551857
* ephy-embed: reorder includesXan Lopez2012-01-231-3/+2
|
* ephy-embed: move the other statusbar id to the .c fileXan Lopez2012-01-232-2/+2
| | | | It's not used anywhere else.
* ephy-embed: remove unused defineXan Lopez2012-01-221-1/+0
|
* ephy-embed: the method to set the statusbar label can be private tooXan Lopez2012-01-222-17/+15
|
* ephy-embed: we can now make the statusbar methods privateXan Lopez2012-01-222-122/+116
|
* ephy-embed: stop listening to progress updates after disposeXan Lopez2012-01-201-6/+14
| | | | | | | | | | | | | | | | | | Similar to status message updates, otherwise we might end up updating dead widgets. This fixes: #0 0x00007ffff592b9c8 in g_logv (log_domain=0x7ffff66de0cf "Gtk", log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff59ade60 "%s: assertion `%s' failed", args1=0x7fffffffd588) at gmessages.c:758 #1 0x00007ffff592babc in g_log (log_domain=0x7ffff66de0cf "Gtk", log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff59ade60 "%s: assertion `%s' failed") at gmessages.c:792 #2 0x00007ffff592bafd in g_return_if_fail_warning (log_domain=0x7ffff66de0cf "Gtk", pretty_function=0x7ffff66e27f0 "gtk_widget_hide", expression=0x7ffff66df7e8 "GTK_IS_WIDGET (widget)") at gmessages.c:801 #3 0x00007ffff657c430 in gtk_widget_hide (widget=0x15ca190) at gtkwidget.c:3992 #4 0x00000000004703f6 in clear_progress_cb (embed=0x516450) at ../../embed/ephy-embed.c:525 #5 0x00007ffff5923c2c in g_timeout_dispatch (source=0x1bb9400, callback=0x4703d6 <clear_progress_cb>, user_data=0x516450) at gmain.c:3857 #6 0x00007ffff5921e83 in g_main_dispatch (context=0x524f70) at gmain.c:2513 #7 0x00007ffff5922b44 in g_main_context_dispatch (context=0x524f70) at gmain.c:3050 #8 0x00007ffff5922d27 in g_main_context_iterate (context=0x524f70, block=1, dispatch=1, self=0x629c90) at gmain.c:3121 #9 0x00007ffff5922deb in g_main_context_iteration (context=0x524f70, may_block=1) at gmain.c:3182 #10 0x00007ffff5b2705e in g_application_run (application=0x508000, argc=1, argv=0x7fffffffda78) at gapplication.c:1496 #11 0x000000000042d6e2 in main (argc=1, argv=0x7fffffffda78) at ../../src/ephy-main.c:472
* ephy-embed-shell: add missing annotationXan Lopez2012-01-201-1/+1
|
* ephy-embed: if there's a priv variable set, use itXan Lopez2012-01-191-39/+40
|