[webkit-gtk] webkit 2.8.3 load-failed
Joachim Schiele
js at lastlog.de
Wed Jun 3 06:03:42 PDT 2015
love the
NO_AT_BRIDGE=1
thingy, thanks for pointing out!
On 03.06.2015 02:21, Niranjan Rao wrote:
> Not really expert, but perhaps this might help. I faced similar problems
> and this link helped me.
>
> https://askubuntu.com/questions/432604/couldnt-connect-to-accessibility-bus
>
>
> On 06/02/2015 05:02 PM, Joachim Schiele wrote:
>> hi,
>>
>> i've packaged webkitgtk-2.8.3 for nixos and i'm using it with the
>> gowebkit2 from github.com/sourcegraph/go-webkit2
>>
>> gowebkit2 requires gojs and gotk3 where both of these pass their
>> respective go unit tests.
>>
>> === question ===
>>
>> i'm getting this error:
>>
>> [nix-shell:~/Desktop/projects/webloop]$ go run gowebkit2.go
>>
>> ** (gowebkit2:20348): WARNING **: Error retrieving accessibility bus
>> address: org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.a11y.Bus was not provided by any .service files
>>
>> ** (WebKitWebProcess:20355): WARNING **: Error retrieving accessibility
>> bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.a11y.Bus was not provided by any .service files
>> Load finished.
>> Title: "Index of /"
>> URI: http://localhost/
>>
>>
>> i don't really know how to debug this. anyone an idea how i could get
>> started? is this a go specific issue?
>>
>> thanks.
>>
>>
>>
>>
>>
>>
>> however, the webserver is working from which i query:
>>
>> [nix-shell:~/Desktop/projects/webloop]$ curl localhost
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
>> <html>
>> <head>
>> <title>Index of /</title>
>> </head>
>> <body>
>> <h1>Index of /</h1>
>> <table>
>> <tr><th valign="top"><img src="/icons/blank.gif"
>> alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a
>> href="?C=M;O=A">Last modified</a></th><th><a
>> href="?C=S;O=A">Size</a></th><th><a
>> href="?C=D;O=A">Description</a></th></tr>
>> <tr><th colspan="5"><hr></th></tr>
>> <tr><th colspan="5"><hr></th></tr>
>> </table>
>> </body></html>
>>
>>
>>
>>
>>
>> package main
>>
>> import (
>> "fmt"
>> "github.com/conformal/gotk3/glib"
>> "github.com/conformal/gotk3/gtk"
>> "github.com/sourcegraph/go-webkit2/webkit2"
>> "github.com/sqs/gojs"
>> "runtime"
>> )
>>
>> func main() {
>> gtk.Init(nil)
>> runtime.LockOSThread()
>> hasFailed := 0
>>
>> webView := webkit2.NewWebView()
>> defer webView.Destroy()
>>
>> webView.Connect("load-failed", func() {
>> fmt.Println("Load failed.")
>> hasFailed = 1
>> })
>> webView.Connect("load-changed", func(_ *glib.Object, loadEvent
>> webkit2.LoadEvent) {
>> //if hasFailed == 0 {
>> switch loadEvent {
>> //case webkit2.LoadStarted:
>> // fmt.Println("Load started")
>> //case webkit2.LoadRedirected:
>> // fmt.Println("Load redirected")
>> case webkit2.LoadFinished:
>> fmt.Println("Load finished.")
>> fmt.Printf("Title: %q\n", webView.Title())
>> fmt.Printf("URI: %s\n", webView.URI())
>> webView.RunJavaScript("window.location.hostname",
>> func(val *gojs.Value, err error) {
>> if err != nil {
>> fmt.Println("JavaScript error.")
>> } else {
>> fmt.Printf("Hostname (from JavaScript):
>> %q\n", val)
>> }
>> })
>> gtk.MainQuit()
>> }
>> //}
>> })
>>
>> glib.IdleAdd(func() bool {
>> webView.LoadURI("http://localhost")
>> //webView.LoadURI("http://www.lastlog.de/")
>> return false
>> })
>>
>> gtk.Main()
>> }
>>
>>
>>
>>
>> === my configuration: ===
>>
>> Build configuration:
>> Enable debugging (slow) : no
>> Compile with debug symbols (slow) : no
>> Enable GCC build optimization : yes
>> Code coverage support : no
>> Optimized memory allocator : yes
>> Accelerated rendering backend : OpenGL (gl,
>> egl, glx)
>> Geolocation backend : none
>>
>> Features:
>> =======
>> WebKit1 support : yes
>> WebKit2 support : yes
>> Accelerated Compositing : yes
>> Accelerated 2D canvas : yes
>> Battery API support : no
>> Gamepad support : no
>> Geolocation support : no
>> HTML5 video element support : yes
>> JIT compilation : auto
>> FTL JIT compilation : no
>> Opcode stats : no
>> SVG fonts support : yes
>> SVG support : yes
>> Spellcheck support : yes
>> Credential storage support : yes
>> Web Audio support : yes
>> WebGL : yes
>>
>> GTK+ configuration:
>> GTK+ version : 3.0
>> GDK targets : x11, wayland
>> Introspection support : yes
>> Generate documentation : no
>>
>>
>>
>>
>>
>> http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#WebKitWebView-load-failed
>>
>>
>> hope for help!
>> best wishes,
>> joachim
>>
>> _______________________________________________
>> webkit-gtk mailing list
>> webkit-gtk at lists.webkit.org
>> https://lists.webkit.org/mailman/listinfo/webkit-gtk
More information about the webkit-gtk
mailing list