doesn't work after upgrade libwebkit

Bug #327071 reported by leeight
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Pidgin-WebKit
New
Undecided
Unassigned

Bug Description

today i upgrade libwebkit to the trunk version 1.1.0-0.40663

after that pidgin-webkit doesn't work

it look's like lost all of the styles.

Revision history for this message
Michael Opitz (naxat88) wrote :

Hello,

somehow it isn't possible for webkit to load other files on the filesystem when using webkit_web_view_load_[html_]string, since some strange new security policy forbids this in the browser oO".

I've "fixed" this problem by creating temporary files on the filesystem and loading them with webkit_web_view_open(...). Using this method webkit actually embeds external files like .css-files or images.

The patch is attached below.

Revision history for this message
Michael Opitz (naxat88) wrote :

whoops, there are still some issues if the conversion name contains some '/' (slashes). Hopefully the attached patch fixes all those issues.

Revision history for this message
Michael Opitz (naxat88) wrote :

I've investigated on this bug again and found a really simple solution, which I've attached in the patch. The fix also includes the more recent signal "navigation-policy-decision-requested" instead of the depricated "navigation-requested".

Revision history for this message
leeight (leeight) wrote :

thank's a lot

it's works very well with pidgin 2.5.5 and webkitgtk-svn

Revision history for this message
pdf (pdffs) wrote :

@naxat88 - webkit_web_view_load_html_string is also deprecated, and I don't think this fix is correct - why is "file:///tmp" the baseuri?? Also, the return from navigation-policy-decision-requested is only meant to be TRUE if a policy decision has been made.

So, I learned some webkit and gtk today ;)

I've commited the proposed changes to lp:~spoidar/pidgin-webkit/karmic-fixes (see related). Please test and comment on those changes - I'm not entirely sure they're correct, or whether something else should be happening, but they're working for me here.

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

@pdffs I like to revive this. Where is your branch? It seems it got deleted. Can you republish or put it on github?

Revision history for this message
pdf (pdffs) wrote :

@khurshid-alam long gone I'm afraid (this was nearly 7 years ago). I don't use pidgin now in any case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.