Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
Commit message (Collapse)AuthorAgeFilesLines
* issue dxo #310 and #2769 Custom start/homepage for BrowseHEADmasterAriel Calzada2013-01-081-1/+25
|
* Display security as a lock icon for secured pages - SL #4245Manuel Quiñones2012-11-291-1/+25
| | | | | | | | | | | | | For pages using the https protocol, display a) a lock icon if there were no errors in the certification, or b) a broken lock icon if the certification failed. Use the same logic as Epiphany: http://git.gnome.org/browse/epiphany/tree/embed/ephy-web-view.c#n2321 Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Manuel Kaufmann <humitos@gmail.com>
* Handle 'create-web-view' signal and open a new tab SL #4236Manuel Kaufmann2012-11-231-17/+31
| | | | | | | | | | | | | | | There are some cases that WebKit.WebView needs to create a new WebKit.WebView (e.g. to open a pop up window) and it emits this signal. Handling this signal we are able to insert a new tab (instead of creating a new window) and attach it next to the current one with the desired url to be load. The signal 'new-window-policy-decision-requested' was removed because it is not more needed because 'create-web-view' will work for all kind of popups. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Title of media files SL #3934Manuel Kaufmann2012-11-231-3/+6
| | | | | | | | | | | | | | When a plugin handles the request, for example to play an .ogg file, WebKit sets the title as 'None' and '__load_status_changed_cb' is not called when status is 'WebKit.LoadStatus.FINISHED', so the title is not set as 'Untitled'. This patch checks if the title is 'None' (because of the case mentioned above) and sets it as the 'os.path.basename' of the 'WebKit.WebView.props.uri' (the name of the filename). Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Grab the WebKit.WebView focus on tab closing #4187Manuel Kaufmann2012-11-221-0/+14
| | | | | | | | | | | | | When the current tab is closed the next tab is shown (left one if the current tab was the last, othercase right one). After this the WebKit.WebView of the tab displayed grabs the focus to show the OSK if this tab was showing it. So, switching between tabs and closing them respect the OSK status (shown / hidden). Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Hanlde focus properly on each tab SL #4200Manuel Kaufmann2012-11-191-0/+1
| | | | | | | | | | | The focus is grabbed after loading the 'Home page' and when the session is restored. This patch allow us to show the OSK when it's needed and to be able to start typing with the hardware keyboard. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Don't show error page when plugin will handle - SL #3934Manuel Kaufmann2012-11-011-3/+6
| | | | | | | | Allow a plugin to handle the request without showing the error page. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* 'load-status' signal handled properly - SL #4087Manuel Kaufmann2012-11-011-8/+19
| | | | | | | | | Connect and disconnect the callback every time that 'switch-page' happens. So, just one callback (the current browse one) is called every time that 'load-status' is emitted. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Show url in url entry when page can not be loaded, SL #4039Manuel Kaufmann2012-10-161-1/+1
| | | | | | | | | | The url is shown in the URL entry so we are able to edit it, it gives us another feedback hint which page could not be loaded and if you connect to the Internet after that we can reload the page. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* New layout of tabs SL #3560Manuel Kaufmann2012-10-121-16/+14
| | | | | | | | | | | | | When Browse starts it shows just one tab sized half of the whole canvas. Every time a new tab is added they are resized and expanded over the full canvas width to make them fit. Once the 9th[1] tab is reached, all of them keep the same size and two buttons are added to be able to scroll over them. [1] this decision was taken here 959f86e0406914267047dc10302f98a059b6ba21 Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Remove space in UserAgent - SL #3631Manuel Quiñones2012-10-121-1/+1
| | | | | | | | | This is safer because the space could be used for separating the parts of the user agent. The change in ASLO has been made: http://git.sugarlabs.org/slo-activities/mainline/commit/f0299da4794371ac5cc4df15be2e8b965313ecf8 Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Handle LoadInterruptedByPolicyChange SL #3972Manuel Kaufmann2012-10-021-0/+6
| | | | | | | | | | | | | This error is raised when the mimetype policy suffers a change. When this happens __load_error_cb is called and we were showing the error page in any case. With this patch that case is properly handled in __load_error_cb and the error page is not shown on the current tab. In fact, we keep the same page where the user clicked the link in the tab. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Update the Sugar (Sucrose) version for the user agent to 0.98Simon Schampijer2012-10-011-1/+1
| | | | | Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Show Sugar's palette when right click is pressed SL #3455Manuel Kaufmann2012-09-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user right clicks over a link, an image or selected text the Sugar's Palette is shown with the proper menu's items for each case. There are 4 possibilities. When the click is done over: - Link: - Title and subtitle (if they are availables) - title is the content text of the link - subtitle is the uri - Copy link (copy the link into the clipboard) - Keep link (download the .html to the Journal) - Follow link in new tab (open a new tab with the url pointed) - Follow link (follow the link inside the current tab) - Image: - Title and subtitle (if they are availables) - title is the "title" property of the <img> - subtitle is the uri - Keep image (download the image to the Journal) - Copy image (copy the image into the clipboard) - Image with a link: - Title and subtitle (if they are availables) - title is the "title" property of the <img> - subtitle is the uri Same Items than "Link" option - Selected Text: - Title and subtitle (not implemented because the function webkit_web_view_get_selected_text was removed: https://bugs.webkit.org/show_bug.cgi?id=62512) - Copy text (copy the text into the clipboard) Signed-off-by: Simon Schampijer <simon@laptop.org> Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Button to clear the url entry SL #3499Manuel Kaufmann2012-09-281-0/+5
| | | | | | | | | | Added an 'X' to clear the url entry easily. This button is shown when the url entry has focus and the user is not reading a .pdf webpage. When the focus is left the icon changes again to the correct one (reload, stop loading or none) Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Display only the URL in the URL entry SL #3553Manuel Kaufmann2012-09-271-0/+4
| | | | | | | | | The Title of the current page is no longer shown in the URL entry. Now, it's only shown in the tab and the current URL is visible all the time in the URL entry. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Error page SL #3500Manuel Kaufmann2012-09-271-0/+22
| | | | | | | | | | | Added an "Error page" with Sugar style that informs the users about the the page could not be loaded for any reason. This patch contains a HTML template (error_page.tmpl) that is used to generate the error page with the correct language. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Busy indication SL #851Manuel Kaufmann2012-09-251-0/+21
| | | | | | | | | | | Show WATCH Cursor when the page is loading and LEFT_PTR when the load finishes. This changes take in consideration the tab that the user is watching, so the cursor refers to the state of the current browser / tab. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Revert zoom with the original value SL #3540Manuel Kaufmann2012-09-101-0/+1
| | | | | | | | | | New functionality to go back to the original zoom value. Added an icon next to zoom properties in View Toolbar. This function can be used with the hotkey "Control + 0" as well. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Restore journal file picker (#3411)Daniel Drake2012-06-141-0/+19
| | | | | | | | | | | | | | The run-file-chooser signal can be used to intercept a request for a file upload and display a custom file chooser. We want to do this to allow the user to upload files from the journal. By default, the standard GTK+ file chooser was being shown. run-file-chooser is present in WebKit2 and has been submitted for final review for inclusion in WebKit1. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Unset "loading..." message when the loading fails SL #3620Manuel Quiñones2012-05-301-2/+7
| | | | | | | | | | | | | Browse has to restore the previous title in the tab and in the URL entry when the loading finishes with WEBKIT_LOAD_FAILED status. This fixes bug #3620 in Sugarlabs trac. The WEBKIT_LOAD_FAILED status is reached in the current webview when the loading is manually handled in the mime-type-policy-decision-requested callback. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Tested-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
*