Re: [webkit-dev] Regarding QtWebkit Builds on Win32

2007-08-31 Thread Mark Rowe

Chris,

Please consider checking the mailing list archives before posting ().  This issue has come up several times this week.  See , for instance.


Kind regards,

Mark Rowe

On 01/09/2007, at 13:41, Fuenty, Chris wrote:

When building Qtwebkit (with Perl and MinGW paths in the PATH  
envirment var, and through the Qt command prompt), I exit with the  
following errors, which I can not really make out what they are.


cd WebCore\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/QtWebkit/WebKitBuild/Release/ 
WebCore'

mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/QtWebkit/WebKitBuild/Release/ 
WebCore'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable- 
runtime-pseudo-rel
oc -Wl,-s -mthreads -Wl -shared -Wl,--out-implib,c:\QtWebkit 
\WebKitBuild\Release
\lib\libQtWebKit.a -o "..\lib\QtWebKit.dll"  
object_script.QtWebKit.Release -L"c

:\Qt\4.3.1\lib" -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4
Creating library file: c:\QtWebkit\WebKitBuild\Release\lib 
\libQtWebKit.a
./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7):  
undefined reference

to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\lib\QtWebKit.dll] Error 1
mingw32-make[2]: Leaving directory `C:/QtWebkit/WebKitBuild/Release/ 
WebCore'

mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/QtWebkit/WebKitBuild/Release/ 
WebCore'

mingw32-make: *** [sub-WebCore-make_default-ordered] Error 2
Your vendor has not defined POSIX macro WEXITSTATUS, used at  
WebKitTools\Scripts

\build-webkit line 141

C:\QtWebkit>


Anyone got any advice what this is and what to do?  Thanks.

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


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


[webkit-dev] Regarding QtWebkit Builds on Win32

2007-08-31 Thread Fuenty, Chris
When building Qtwebkit (with Perl and MinGW paths in the PATH envirment var,
and through the Qt command prompt), I exit with the following errors, which
I can not really make out what they are.

cd WebCore\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory
`C:/QtWebkit/WebKitBuild/Release/WebCore'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory
`C:/QtWebkit/WebKitBuild/Release/WebCore'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -mthreads -Wl -shared
-Wl,--out-implib,c:\QtWebkit\WebKitBuild\Release
\lib\libQtWebKit.a -o "..\lib\QtWebKit.dll" object_script.QtWebKit.Release
-L"c
:\Qt\4.3.1\lib" -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4
Creating library file: c:\QtWebkit\WebKitBuild\Release\lib\libQtWebKit.a
./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined
reference
to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\lib\QtWebKit.dll] Error 1
mingw32-make[2]: Leaving directory `C:/QtWebkit/WebKitBuild/Release/WebCore'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/QtWebkit/WebKitBuild/Release/WebCore'
mingw32-make: *** [sub-WebCore-make_default-ordered] Error 2
Your vendor has not defined POSIX macro WEXITSTATUS, used at
WebKitTools\Scripts
\build-webkit line 141

C:\QtWebkit>


Anyone got any advice what this is and what to do?  Thanks.

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


Re: [webkit-dev] Window::isSafeScript: which URLs to use in the error message

2007-08-31 Thread Anyang Ren
Maciej,

Thank you for your reply.  I just checked the current trunk.
The error message has been changed to use thisURL and actURL
in r24900.

-- 
Anyang Ren
Open source developer
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Window::isSafeScript: which URLs to use in the error message

2007-08-31 Thread Maciej Stachowiak


On Aug 31, 2007, at 2:24 PM, Anyang Ren wrote:


In kjs_window.cpp, Window::isSafeScript(ExecState *exec), we have:

 KURL actURL = activeFrame->loader()->url();
 WebCore::String actDomain = actURL.host();
 ...
 KURL thisURL = frame->loader()->url();
 ...
 WebCore::String thisDomain = thisURL.host();

 if (actDomain == thisDomain && actURL.protocol() ==
thisURL.protocol() && actURL.port() == thisURL.port())
   return true;

 if (Interpreter::shouldPrintExceptions()) {
 printf("Unsafe JavaScript attempt to access frame with URL %s
from frame with URL %s. Domains, protocols and ports must match.\n",
thisDocument->URL().latin1(), actDocument- 
>URL().latin1());

 }
 String message = String::format("Unsafe JavaScript attempt to access
frame with URL %s from frame with URL %s. Domains, protocols and ports
must match.\n",
 thisDocument->URL().latin1(), actDocument- 
>URL().latin1());


Since thisURL and actURL are the URLs used in the test, why are
we using thisDocument->URL() and actDocument->URL() in the
error messages?


I think perhaps the message should mention both. thisURL and actURL  
(not such great names!) may identify the frame that is considered to  
own this frame in cases like about:blank or javascript: frame source,  
but they are not the true URL of the frame, so may not be very helpful  
in the error message. I think the format should be something like:


"Unsafe JavaScript attempt to access frame with URL %s (owned by %s)  
from frame with URL %s (owned by %s). Domains, protocols and ports  
must match.\n"


But the "owned by" part should probably be dropped entirely in the  
common case where the URLs are the same.


We'd take a patch to improve this.

In fact, actDocument could be NULL.  Earlier in this function, we  
have:


 WebCore::Document* actDocument = activeFrame->document();

 if (actDocument) {
   if (thisDocument->domainWasSetInDOM() && actDocument- 
>domainWasSetInDOM()) {

 if (thisDocument->domain() == actDocument->domain())
   return true;
   }
 }

The if (actDocument) test suggests that actDocument could
be NULL.


I'm not sure it's possible for a frame to be executing script with a  
null document, so I don't think this is actually possible. In fact, in  
current trunk, I don't think it is ever possible for any frame to have  
a null document.


Regards,
Maciej


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


[webkit-dev] Window::isSafeScript: which URLs to use in the error message

2007-08-31 Thread Anyang Ren
In kjs_window.cpp, Window::isSafeScript(ExecState *exec), we have:

  KURL actURL = activeFrame->loader()->url();
  WebCore::String actDomain = actURL.host();
  ...
  KURL thisURL = frame->loader()->url();
  ...
  WebCore::String thisDomain = thisURL.host();

  if (actDomain == thisDomain && actURL.protocol() ==
thisURL.protocol() && actURL.port() == thisURL.port())
return true;

  if (Interpreter::shouldPrintExceptions()) {
  printf("Unsafe JavaScript attempt to access frame with URL %s
from frame with URL %s. Domains, protocols and ports must match.\n",
 thisDocument->URL().latin1(), actDocument->URL().latin1());
  }
  String message = String::format("Unsafe JavaScript attempt to access
frame with URL %s from frame with URL %s. Domains, protocols and ports
must match.\n",
  thisDocument->URL().latin1(), actDocument->URL().latin1());

Since thisURL and actURL are the URLs used in the test, why are
we using thisDocument->URL() and actDocument->URL() in the
error messages?

In fact, actDocument could be NULL.  Earlier in this function, we have:

  WebCore::Document* actDocument = activeFrame->document();

  if (actDocument) {
if (thisDocument->domainWasSetInDOM() && actDocument->domainWasSetInDOM()) {
  if (thisDocument->domain() == actDocument->domain())
return true;
}
  }

The if (actDocument) test suggests that actDocument could
be NULL.

-- 
Anyang Ren
Open source developer
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] disable scroll bars in webView....

2007-08-31 Thread Mitz Pettel

I think something like

WebView* myWebView;
...
[[[myWebView mainFrame] frameView] setAllowsScrolling:NO];

will do the trick. See 


On Aug 31, 2007, at 9:34 PM, David D. Kilzer wrote:

If you're going to build your own custom version of WebKit, you  
could modify
WebCore/css/html4.css and WebCore/css/quirks.css to include the  
"overflow:
hidden;" style on the body tag.  This would have essentially the  
same effect.


I'm not aware of any "switch" to disable scroll bars completely  
(although that

doesn't mean there isn't one).

Dave


Kathryn Tate <[EMAIL PROTECTED]> wrote:


Actually, yes, I see what you are doing, but I meant something
entirely different--kind of strange.

Is it possible to disable the scrolling bars WebView in Xcode? (I am
asking WebKit group as you have
produced the bridge to making browsers).

What I am trying to do is create a web browser that is tiny and has
no scroll bars--the images
would be thumbnails.

Thanks, Kathryn



On Aug 31, 2007, at 9:54 AM, David D. Kilzer wrote:


Hi Kathryn,

Are you wanting to do this using HTML?  If so:

http://webkit.org/images/icon-gold.png"; style="top:
200px; left:
200px; position: absolute;">

To make a containing element not scroll, use the "overflow: hidden"
style (e.g.
to disable scroll bars for the entire page):


http://webkit.org/images/icon-gold.png"; style="top:
1000px; left:
200px; position: absolute;">


BTW, if you have questions about HTML, neither the webkit-dev list
nor the
xcode-users list is appropriate.  I would suggest the web-dev
mailing list for
that:

http://lists.apple.com/mailman/listinfo/web-dev

Dave


Kathryn Tate <[EMAIL PROTECTED]> wrote:


Guys,
Is there a way to disable the scroll bars in WebView so that the
image is fixed?

Thanks







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


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


Re: [webkit-dev] disable scroll bars in webView....

2007-08-31 Thread David D. Kilzer
If you're going to build your own custom version of WebKit, you could modify
WebCore/css/html4.css and WebCore/css/quirks.css to include the "overflow:
hidden;" style on the body tag.  This would have essentially the same effect.

I'm not aware of any "switch" to disable scroll bars completely (although that
doesn't mean there isn't one).

Dave


Kathryn Tate <[EMAIL PROTECTED]> wrote:

> Actually, yes, I see what you are doing, but I meant something  
> entirely different--kind of strange.
> 
> Is it possible to disable the scrolling bars WebView in Xcode? (I am  
> asking WebKit group as you have
> produced the bridge to making browsers).
> 
> What I am trying to do is create a web browser that is tiny and has  
> no scroll bars--the images
> would be thumbnails.
> 
> Thanks, Kathryn
> 
> 
> 
> On Aug 31, 2007, at 9:54 AM, David D. Kilzer wrote:
> 
> > Hi Kathryn,
> >
> > Are you wanting to do this using HTML?  If so:
> >
> > http://webkit.org/images/icon-gold.png"; style="top:  
> > 200px; left:
> > 200px; position: absolute;">
> >
> > To make a containing element not scroll, use the "overflow: hidden"  
> > style (e.g.
> > to disable scroll bars for the entire page):
> >
> > 
> > http://webkit.org/images/icon-gold.png"; style="top:  
> > 1000px; left:
> > 200px; position: absolute;">
> > 
> >
> > BTW, if you have questions about HTML, neither the webkit-dev list  
> > nor the
> > xcode-users list is appropriate.  I would suggest the web-dev  
> > mailing list for
> > that:
> >
> > http://lists.apple.com/mailman/listinfo/web-dev
> >
> > Dave
> >
> >
> > Kathryn Tate <[EMAIL PROTECTED]> wrote:
> >
> >> Guys,
> >> Is there a way to disable the scroll bars in WebView so that the
> >> image is fixed?
> >>
> >> Thanks
> >
> 
> 

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


Re: [webkit-dev] build QTwebkit errors on windows

2007-08-31 Thread Silex
> hi,all
> Is there anybody knows this error :
> ./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined 
> reference
> to [EMAIL PROTECTED]'

Sounds like "you" just forgot to link to shlwapi.lib.

See http://msdn2.microsoft.com/en-us/library/ms628559.aspx for more details.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] disable scroll bars in webView....

2007-08-31 Thread David D. Kilzer
Hi Kathryn,

Are you wanting to do this using HTML?  If so:

http://webkit.org/images/icon-gold.png"; style="top: 200px; left:
200px; position: absolute;">

To make a containing element not scroll, use the "overflow: hidden" style (e.g.
to disable scroll bars for the entire page):


http://webkit.org/images/icon-gold.png"; style="top: 1000px; left:
200px; position: absolute;">


BTW, if you have questions about HTML, neither the webkit-dev list nor the
xcode-users list is appropriate.  I would suggest the web-dev mailing list for
that:

http://lists.apple.com/mailman/listinfo/web-dev

Dave


Kathryn Tate <[EMAIL PROTECTED]> wrote:

> Guys,
> Is there a way to disable the scroll bars in WebView so that the  
> image is fixed?
> 
> Thanks

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


[webkit-dev] disable scroll bars in webView....

2007-08-31 Thread Kathryn Tate

Guys,
Is there a way to disable the scroll bars in WebView so that the  
image is fixed?


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