Public bug reported:

Hi. Sorry for bad English :).

My Devhelp don't want to open CppReference pages, says that it has
"Error opening the requested link.".

The situation is the same, as here https://aur.archlinux.org/packages
/cppreference-devhelp/

I tried to fix this myself, but after 2 days it seems that i'm at a
deadlock. What i know now:

1) All paths are correct, all files are readable, but Devhelp can open files 
like /usr/share/cppreference/doc/html/en/c.html only when it was done by root. 
When i try to do this by a regular user - webkit2gtk returns an error code 
WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE. Seems that webkit 
raise this error if it tried to load uri as a page, next it tried to load it as 
a file, and if all this was unsuccessfull - this error occurs.
2) If i change first line in /usr/share/cppreference/doc/html/en/c.html to 
something like <!DOCTYPE html> (as for html5) or any older html4 DOCTYPEs - 
Devhelp begin to work fine with this file. But if there is something like 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML (any XHTML) - Devhelp shows an error. 
Also i tried to use epiphany-browser - it has the same behavior with local urls 
(file://).

So, seems that it is a Webkit or Webkit2gtk bug. I tried to debug
webkit2gtk, but it is too large and i has too low debugging skills - all
stopped on multithreading and IPC - i cant trace full chain, i only see
how Devhelp asks webkit to load an URL and then i see how IPC catches a
message with error (in GUI thread). Seems i do something wrong or my
breakpoints don't work or something else :(.

All this i see on two different computers with Ubuntu 16.10.

So, may be the best way to fix this is just simply to fix "<!DOCTYPE.."
in html files? It is not a clean solution, but it will work :).

I use Ubuntu 16.10, cppreference-doc-en-html 20151129+dfsg0-1, devhelp
3.22.0-1, libwebkit2gtk-4.0-37-gtk2 2.14.5-0ubuntu0.16.10.1

** Affects: cppreference-doc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1668085

Title:
  Can't be open by Devhelp with the user other than root

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cppreference-doc/+bug/1668085/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to