| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|