Re: [webkit-dev] checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 = 2.23) were not met:

2009-02-17 Thread Bo Yang
I have came across this error, too.
The problem is , webkit need is 2.24 or later. But the libsoup 2.4 is not
suitable, and webkit can't build with it because libsoup 2.4 miss the
SoupCookieJar and something which exist in 2.24.

Install libsoup 2.24 , it will work!

Regards!
Bo
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] BREW Webkit port?

2009-02-17 Thread Ed Nurse
Hi all,

Does anybody know if there has been an attempt to port Webkit to a BREW device? 
 And if so, how successful it was?

Regards,

Ed.

This message, including attachments, is intended solely for the addressee 
indicated in this message and is strictly confidential or otherwise Privileged. 
If you are not the intended recipient (or responsible for delivery of the 
message to such person) : - (1) please immediately (i) notify the sender by 
reply email and (ii) delete this message and attachments, - (2) any use, copy 
or dissemination of this transmission is strictly prohibited. If you or your 
employer does not consent to Internet email messages of this kind, please 
advise Purple Labs by reply e-mail immediately. Opinions, conclusions and other 
information expressed in this message are not given or endorsed by Purple Labs 
unless otherwise indicated by an authorized representative independent of this 
message.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Quick Look at Gtk+ test failures

2009-02-17 Thread Gustavo Noronha
Yo!

On Tue, 2009-02-17 at 01:05 +0100, Holger Freyther wrote:
 I just had a quick look at the dom/svg test failures (actually one result) 
 and 
 my first idea is that we transmit the wrong mimetype for the GIO based local 
 file handling.
 
 I plan to find some time to tomorrow...

Thought it might help:

I tested LayoutTests/dom/svg/level3/xpath/XPathResult_stringValue.svg
here by putting the files available through my HTTP server and adding a
g_warning call to print the contentType in soup and GIO handlings. This
is what I got for the file:/// access:

** (lt-GtkLauncher:20591): WARNING **: GIO MimeType: image/svg+xml
** (lt-GtkLauncher:20591): WARNING **: GIO MimeType: application/javascript
** (lt-GtkLauncher:20591): WARNING **: GIO MimeType: application/javascript

And for the http:// one:

** (lt-GtkLauncher:20472): WARNING **: Soup MimeType: image/svg+xml
** (lt-GtkLauncher:20472): WARNING **: Processed Soup MimeType: image/svg+xml
** (lt-GtkLauncher:20472): WARNING **: Soup MimeType: application/javascript
** (lt-GtkLauncher:20472): WARNING **: Processed Soup MimeType: 
application/javascript
** (lt-GtkLauncher:20472): WARNING **: Soup MimeType: application/javascript
** (lt-GtkLauncher:20472): WARNING **: Processed Soup MimeType: 
application/javascript

Soup has two because it doesn't use the content type it gets from the
message, but the one it gets from feeding it to a WebCore call. Looking
at the SVG file in my HTTP server through the launcher I also see the
test failure.

Thanks!

-- 
Gustavo Noronha g...@gnome.org
GNOME contributor

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Queries on Bug: 23310

2009-02-17 Thread David Kilzer
I don't think modifying KURL to parse JavaScript syntax is the correct approach.

I have a fix for this in my local tree.  I will try to post a patch for it 
today for review.

Dave





From: Vikram Hegde vhegd...@yahoo.com
To: webkit-dev@lists.webkit.org
Sent: Monday, February 16, 2009 9:50:06 PM
Subject: [webkit-dev] Queries on Bug: 23310


Hi ,
 
The Bug 23310 is Setting an absolute path (/abs) on an iframe with no src 
doesn't resolve the URL properly.
 
So I have analysed the bug,and here are my comments.Kindly let me know i m on 
the right track of solving the bug.
 
Analysis:
 
The kurl.cpp is the actual place where the url gets resolved and is being 
parsed.So the parameter for the init function in kurl.cpp should have the 
complete format i.e. javascript:document.location.replace('/') instead the 
parameter which is being parsed contains only /.This is the reason why the 
parsing of the url is not done properly and invalidate function gets called 
which redirects the page to reflect nothing.
 
In short i think the scr which the kurl should parse should be the entire 
string (javascript:document.location.replace('/') ) . This is the reason i feel 
the parsing of url is not done propely.
 
Kindly suggest whether i m in the right track or not and the possible solutions 
for the problem.
 
Thanks  Regards,
Vikram
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Thank you very much! I edited configure.ac and...

2009-02-17 Thread David Kilzer
Hi Hai,

I'm glad I was able to help you get past this particular build error, but I've 
never built the Gtk+ or Qt builds of WebKit before, so I can't help you any 
further.  Please continue using the webkit-dev mailing list or the #webkit IRC 
channel on irc.freenode.net for additional questions.

Also, I would file a bug on https://bugs.webkit.org/ about the issue with 
identifying the supported version of libsoup in configure.ac.  It seems to me 
that there may need to be multiple checks for the correct version of the 
libsoup package based on your Linux distribution (or *NIX platform) due to the 
inconsistent package names for this library.

Dave





From: nguyen hai deuxliq...@yahoo.com
To: David Kilzer ddkil...@webkit.org
Sent: Monday, February 16, 2009 7:01:24 PM
Subject: Thank you very much! I edited configure.ac and...


Hi Dave,
I opened confugure.ac, I saw some scripts as below:

Script_1:
 # optional modules
LIBCURL_REQUIRED_VERSION=7.15
LIBSOUP_REQUIRED_VERSION=2.23
LIBXSLT_REQUIRED_VERSION=1.1.7
SQLITE_REQUIRED_VERSION=3.0
GSTREAMER_REQUIRED_VERSION=0.10

and Script_2

if test $with_http_backend = soup; then
   PKG_CHECK_MODULES([LIBSOUP],
 [libsoup-2.4 = $LIBSOUP_REQUIRED_VERSION])
   AC_SUBST([LIBSOUP_CFLAGS])
   AC_SUBST([LIBSOUP_LIBS])
fi

firstly, I changed libsoup-2.4 in Script_2 to libsoup but I got an error 
that meant that  it could not find libsoup.
Then, I changed LIBSOUP_REQUIRED_VERSION to 2.4 (that means 
LIBSOUP_REQUIRED_VERSION =2.4) . Then I typed autogen.sh, what great, it run 
well.

At this moment, I am running make. It maybe take 3 hours for making.
I don't know if I did right or wrong. 
If you don't mind , I suppose that make shell will success. What will I do 
for the next? I mean that How many next steps to have a web browser. I am 
really very new to webkit and web browser. 
thank you again
Hai
--- Thứ 3, 17/02/09, David Kilzer ddkil...@webkit.org đã viết:

Từ: David Kilzer ddkil...@webkit.org
Chủ đề: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
requirements (libsoup-2.4 = 2.23) were not met:
Đến: deuxliq...@yahoo.com
Cc: webkit-dev@lists.webkit.org
Ngày: Thứ Ba, 17 tháng 2, 2009, 0:28


Sorry, I was reading that libsoup-2.23 was older than libsoup-2.4.  It looks 
like configure.ac is not comparing the versions correctly.  Try making this 
change (changing libsoup-2.4 to just libsoup in configure.ac) and rerunning 
autogen.sh:

diff --git a/configure.ac b/configure.ac
index 6ac6f8b..75d986f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -637,7 +637,7 @@ fi
 
 if test $with_http_backend = soup; then
PKG_CHECK_MODULES([LIBSOUP],
- [libsoup-2.4 = $LIBSOUP_REQUIRED_VERSION])
+ [libsoup = $LIBSOUP_REQUIRED_VERSION])
AC_SUBST([LIBSOUP_CFLAGS])
AC_SUBST([LIBSOUP_LIBS])
 fi

Note that $LIBSOUP_REQUIRED_VERSION is set to 2.23 anyway.

Dave





From: nguyen hai deuxliq...@yahoo.com
To: David Kilzer ddkil...@webkit.org
Sent: Monday, February 16, 2009 7:05:40 AM
Subject: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
requirements (libsoup-2.4 = 2.23) were not met:


Hi David,
Thank you much for your help.
I tried to install libsoup-2.4 but not avaible.
I run on Fedora. I tyed as following:

yum search libsoup-2.4  (first I looked for libsoup-2.4)
yum install libsoup-2.4  

but I got a message:

not matched
nothing to do

Once I installed libsoup-2.4.1, the same error appeared : hecking for 
LIBSOUP... configure: error: Package requirements (libsoup-2.4 = 2.23) were 
not met

It seems that autogen.sh want exactly libsoup-2.4 ( not 2.4.2 or other).
But I can't find libsoup-2.4.
I spent much time for this. It sounds bad.
Hai 

  

--- Thứ 2, 16/02/09, David Kilzer ddkil...@webkit.org đã viết:

 Từ: David Kilzer ddkil...@webkit.org
 Chủ đề: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
 requirements (libsoup-2.4 = 2.23) were not met:
 Đến: deuxliq...@yahoo.com
 Cc: webkit-dev@lists.webkit.org
 Ngày: Thứ Hai, 16 tháng 2, 2009, 20:43
 The autogen.sh script wants libsoup-2.4 OR NEWER. 
 libsoup-2.4.1 satisfies that requirement, so try installing
 that version.
 
 Dave
 
 
 
 
 
 From: nguyen hai deuxliq...@yahoo.com
 To: webkit-dev@lists.webkit.org
 Sent: Monday, February 16, 2009 1:17:54 AM
 Subject: [webkit-dev] checking for LIBSOUP... configure:
 error: Package requirements (libsoup-2.4 = 2.23) were
 not met:
 
 
 Hi all,
 I typed ./autogen.sh but I got this message:
 
 checking for LIBSOUP... configure: error: Package
 requirements (libsoup-2.4 = 2.23) were not met:
 
 No package 'libsoup-2.4' found
 
 Consider adjusting the PKG_CONFIG_PATH environment variable
 if you
 installed software in a non-standard prefix.
 
 When I looked for libsoup-2.4 , there were only
 libsoup-2.4.1.
 
 Can someone help me?
 thanks
 Hai
  
 

Re: [webkit-dev] checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 = 2.23) were not met:

2009-02-17 Thread x yz
libsoup 2.23 is newer than 2.4. On Fedora9 only 2.4 is available, on FC10 2.24 
is available.
You need to changed the required version 2.23 in configure.ac to 2.4 then you 
can build. I have not completed the build yet.

FC has older libs than ubuntu or so, when I try to compile openembbed flash I 
got lots of lib problem.
Dave, may I suggest that lib version requirements to consider Fedora9? I mean 
can we loose the requirements, or use OS specific one so FC9  just needs 2.4?
rgds
joe


--- On Tue, 2/17/09, Bo Yang techrazy.y...@gmail.com wrote:

 From: Bo Yang techrazy.y...@gmail.com
 Subject: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
 requirements (libsoup-2.4 = 2.23) were not met:
 To: deuxliq...@yahoo.com
 Cc: webkit-dev@lists.webkit.org
 Date: Tuesday, February 17, 2009, 4:31 PM
 I have came across this error, too.
 The problem is , webkit need is 2.24 or later. But the
 libsoup 2.4 is not
 suitable, and webkit can't build with it because
 libsoup 2.4 miss the
 SoupCookieJar and something which exist in 2.24.
 
 Install libsoup 2.24 , it will work!
 
 Regards!
 Bo
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] error: Cannot find icu-config. The ICU library is needed.

2009-02-17 Thread x yz
Pls read build requirements, there are a few devel lib needed and you can 
download rpm to update missed lib


--- On Mon, 2/16/09, nguyen hai deuxliq...@yahoo.com wrote:

 From: nguyen hai deuxliq...@yahoo.com
 Subject: [webkit-dev] error: Cannot find icu-config. The ICU library is 
 needed.
 To: webkit-dev@lists.webkit.org
 Date: Monday, February 16, 2009, 3:56 PM
 Hi all,
 
 I build webkit on Fedora 9.
 I typed ./autogen.sh and I got a message:
 
 checking for icu-config... no
 configure: error: Cannot find icu-config. The ICU library
 is needed.
 [r...@localhost WebKit-r41018]# 
 
 I am looking this error on webkt.org but I have not found
 any answer.
 Can you help me to solve this error?
 Thanks in advance!
 Hai
 
 
 
   Hỗ trợ Tìm kiếm nay đã có trên Yahoo!
 Thanh công cụ. Tải ngay.
 http://vn.toolbar.yahoo.com/___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 = 2.23) were not met:

2009-02-17 Thread x yz
when I changed requirements to 2.4 there are build error:

WebCore/platform/network/soup/CookieJarSoup.h:34: error: expected constructor, 
destructor, or type conversion before ‘*’ token
WebCore/platform/network/soup/CookieJarSoup.cpp:28: error: expected 
constructor, destructor, or type conversion before ‘*’ token
WebCore/platform/network/soup/CookieJarSoup.cpp: In function ‘void 
WebCore::setCookies(WebCore::Document*, const WebCore::KURL, const 
WebCore::KURL, const WebCore::String)’:
WebCore/platform/network/soup/CookieJarSoup.cpp:36: error: ‘SoupCookieJar’ was 
not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:36: error: ‘jar’ was not 
declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:36: error: ‘getCookieJar’ was 
not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:42: error: 
‘soup_cookie_jar_set_cookie’ was not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp: In function ‘WebCore::String 
WebCore::cookies(const WebCore::Document*, const WebCore::KURL)’:
WebCore/platform/network/soup/CookieJarSoup.cpp:48: error: ‘SoupCookieJar’ was 
not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:48: error: ‘jar’ was not 
declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:48: error: ‘getCookieJar’ was 
not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp:53: error: 
‘soup_cookie_jar_get_cookies’ was not declared in this scope
WebCore/platform/network/soup/CookieJarSoup.cpp: In function ‘bool 
WebCore::cookiesEnabled(const WebCore::Document*)’:
WebCore/platform/network/soup/CookieJarSoup.cpp:64: error: ‘getCookieJar’ was 
not declared in this scope
make[1]: *** [WebCore/platform/network/soup/libWebCore_la-CookieJarSoup.lo] 
Error 1
make[1]: Leaving directory `/home/jdai/depot/mp/newarch/webkit/webkit'
make: *** [all] Error 2


--- On Wed, 2/18/09, x yz last...@yahoo.com wrote:

 From: x yz last...@yahoo.com
 Subject: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
 requirements (libsoup-2.4 = 2.23) were not met:
 To: deuxliq...@yahoo.com, Bo Yang techrazy.y...@gmail.com
 Cc: webkit-dev@lists.webkit.org
 Date: Wednesday, February 18, 2009, 2:40 AM
 libsoup 2.23 is newer than 2.4. On Fedora9 only 2.4 is
 available, on FC10 2.24 is available.
 You need to changed the required version 2.23 in
 configure.ac to 2.4 then you can build. I have not completed
 the build yet.
 
 FC has older libs than ubuntu or so, when I try to compile
 openembbed flash I got lots of lib problem.
 Dave, may I suggest that lib version requirements to
 consider Fedora9? I mean can we loose the requirements, or
 use OS specific one so FC9  just needs 2.4?
 rgds
 joe
 
 
 --- On Tue, 2/17/09, Bo Yang
 techrazy.y...@gmail.com wrote:
 
  From: Bo Yang techrazy.y...@gmail.com
  Subject: Re: [webkit-dev] checking for LIBSOUP...
 configure: error: Package requirements (libsoup-2.4 =
 2.23) were not met:
  To: deuxliq...@yahoo.com
  Cc: webkit-dev@lists.webkit.org
  Date: Tuesday, February 17, 2009, 4:31 PM
  I have came across this error, too.
  The problem is , webkit need is 2.24 or later. But the
  libsoup 2.4 is not
  suitable, and webkit can't build with it because
  libsoup 2.4 miss the
  SoupCookieJar and something which exist in 2.24.
  
  Install libsoup 2.24 , it will work!
  
  Regards!
  Bo
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
 
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 = 2.23) were not met:

2009-02-17 Thread David Kilzer
Dave, may I suggest that lib version requirements to consider Fedora9? I mean 
can we loose the requirements, or use OS specific one so FC9  just needs 2.4?

Sure.  I'd suggest filing a bug on https://bugs.webkit.org/ with a patch for 
review.  I don't use the Linux port of WebKit--was just trying to help people 
get through their local build errors.  Those who using 
autoconf/autogen.sh/configure.ac will need to review any changes before they're 
committed anyway.

Dave





From: x yz last...@yahoo.com
To: deuxliq...@yahoo.com; Bo Yang techrazy.y...@gmail.com
Cc: webkit-dev@lists.webkit.org
Sent: Tuesday, February 17, 2009 10:40:54 AM
Subject: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
requirements (libsoup-2.4 = 2.23) were not met:

libsoup 2.23 is newer than 2.4. On Fedora9 only 2.4 is available, on FC10 2.24 
is available.
You need to changed the required version 2.23 in configure.ac to 2.4 then you 
can build. I have not completed the build yet.

FC has older libs than ubuntu or so, when I try to compile openembbed flash I 
got lots of lib problem.
Dave, may I suggest that lib version requirements to consider Fedora9? I mean 
can we loose the requirements, or use OS specific one so FC9  just needs 2.4?
rgds
joe


--- On Tue, 2/17/09, Bo Yang techrazy.y...@gmail.com wrote:

 From: Bo Yang techrazy.y...@gmail.com
 Subject: Re: [webkit-dev] checking for LIBSOUP... configure: error: Package 
 requirements (libsoup-2.4 = 2.23) were not met:
 To: deuxliq...@yahoo.com
 Cc: webkit-dev@lists.webkit.org
 Date: Tuesday, February 17, 2009, 4:31 PM
 I have came across this error, too.
 The problem is , webkit need is 2.24 or later. But the
 libsoup 2.4 is not
 suitable, and webkit can't build with it because
 libsoup 2.4 miss the
 SoupCookieJar and something which exist in 2.24.
 
 Install libsoup 2.24 , it will work!
 
 Regards!
 Bo
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Quick Look at Gtk+ test failures

2009-02-17 Thread Holger Freyther
On Tuesday 17 February 2009 15:08:15 Gustavo Noronha wrote:
 Yo!

 On Tue, 2009-02-17 at 01:05 +0100, Holger Freyther wrote:
  I just had a quick look at the dom/svg test failures (actually one
  result) and my first idea is that we transmit the wrong mimetype for the
  GIO based local file handling.
 
  I plan to find some time to tomorrow...

 Thought it might help:


Okay, some more work today...

void ResourceHandle::loadResourceSynchronously(const ResourceRequest, 
ResourceError, ResourceResponse, Vectorchar, Frame*)
{
notImplemented();
}   


:)
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Error Handling in webkit

2009-02-17 Thread Jenson Lui
Hello all,

   Here is one of the ways to send the error signal to the upper layer from
the webkit core codes. Basically I just comment out the
ASSERT code in DocumentLoader::mainReceiveError()
and emit a GTK signal (error-load-page) in the
FrameLoaderClientGtk::shouldFallBack.
with the corresponding error code from Curl. So the main application
could just subscribe
the signal error-load-page, do error handling when the signal callback.

However, as I am new to webkit, I am not sure if it is the proper way
to fire event in this
particular method. Or someone could show me a better way to do it.

Please note my webkit build is using r41053, GTK+ and Curl backend.
Enjoy!

Regards,
Jenson

Hi all
How can I do error handling in webkit? Suppose I have given wrong URL then
how can I show proper message? How can I handle this situation?Can you give
sample example?

Thanks in advance..

Regards,
Nitin Walke
Index: WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
===
--- WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp	(revision 41053)
+++ WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp	(working copy)
@@ -803,9 +803,12 @@
 return ResourceError(, 0, , );
 }
 
-bool FrameLoaderClient::shouldFallBack(const ResourceError)
+bool FrameLoaderClient::shouldFallBack(const ResourceError error)
 {
-notImplemented();
+//notImplemented();
+gint errorCode = error.errorCode();
+WebKitWebView* webView = getViewFromFrame(m_frame);
+g_signal_emit_by_name(webView, error-load-page, (gpointer)errorCode);
 return false;
 }
 
Index: WebKit/gtk/webkit/webkitwebview.cpp
===
--- WebKit/gtk/webkit/webkitwebview.cpp	(revision 41053)
+++ WebKit/gtk/webkit/webkitwebview.cpp	(working copy)
@@ -132,6 +132,7 @@
 COPY_CLIPBOARD,
 PASTE_CLIPBOARD,
 CUT_CLIPBOARD,
+ERROR_LOAD_PAGE,
 LAST_SIGNAL
 };
 
@@ -1376,6 +1377,24 @@
 g_cclosure_marshal_VOID__VOID,
 G_TYPE_NONE, 0);
 
+/**
+  * WebKitWebView::error-load-page:
+  * @web_view: the object which received the signal
+  *
+  * The #WebKitWebView::error-load-page signal is a signal which
+  * gets emitted when there is error when loading the page.
+  *
+  */
+ webkit_web_view_signals[ERROR_LOAD_PAGE] = g_signal_new(error-load-page,
+ G_TYPE_FROM_CLASS(webViewClass),
+ (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
+ 0,
+ NULL,
+ NULL,
+ g_cclosure_marshal_VOID__INT,
+ G_TYPE_NONE,1,
+ G_TYPE_INT);
+
 /*
  * implementations of virtual methods
  */
Index: WebCore/platform/network/curl/ResourceHandleManager.cpp
===
--- WebCore/platform/network/curl/ResourceHandleManager.cpp	(revision 41053)
+++ WebCore/platform/network/curl/ResourceHandleManager.cpp	(working copy)
@@ -325,8 +325,10 @@
 curl_easy_getinfo(d-m_handle, CURLINFO_EFFECTIVE_URL, url);
 fprintf(stderr, Curl ERROR for url='%s', error: '%s'\n, url, curl_easy_strerror(msg-data.result));
 #endif
-if (d-client())
-d-client()-didFail(job, ResourceError());
+if (d-client()) {
+ResourceError error = ResourceError(String(), (int)msg-data.result, String(), String());
+d-client()-didFail(job, error);
+}
 }
 
 removeFromCurl(job);
Index: WebCore/loader/DocumentLoader.cpp
===
--- WebCore/loader/DocumentLoader.cpp	(revision 41053)
+++ WebCore/loader/DocumentLoader.cpp	(working copy)
@@ -255,7 +255,7 @@
 
 void DocumentLoader::mainReceivedError(const ResourceError error, bool isComplete)
 {
-ASSERT(!error.isNull());
+//ASSERT(!error.isNull());
 
 #if ENABLE(OFFLINE_WEB_APPLICATIONS)
 ApplicationCacheGroup* group = m_candidateApplicationCacheGroup;
Index: WebKitTools/GtkLauncher/main.c
===
--- WebKitTools/GtkLauncher/main.c	(revision 41053)
+++ WebKitTools/GtkLauncher/main.c	(working copy)
@@ -65,6 +65,13 @@
 }
 
 static void
+error_load_page_cb (WebKitWebView* page, gpointer data)
+{
+	gint *error= (gint *)data;
+	g_printf(Error loading page, return:[%d]\n, *error);
+}
+
+static void
 title_change_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame, const gchar* title, gpointer data)
 {
 if (main_title)
@@ -119,6 +126,7 @@
 g_signal_connect (G_OBJECT (web_view), load-progress-changed, G_CALLBACK (progress_change_cb), web_view);
 g_signal_connect (G_OBJECT (web_view), load-committed, G_CALLBACK (load_commit_cb), web_view);
 g_signal_connect (G_OBJECT (web_view), hovering-over-link, G_CALLBACK (link_hover_cb), web_view);
+g_signal_connect (G_OBJECT 

[webkit-dev] network resources in webkit

2009-02-17 Thread abhas saroha
hi all,
   am i right when i say ResourceHandle class does the communication,
ResourceRequest represents requested resource from some remote url,
ResourceResponse is a response(by the remote server) to the requested data
and ResourceError is for error encountered in communication.
Thnx in advance


Abhas Saroha
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev