[webkit-help] Windows - loadHTMLString() not loading/using stylesheet from html page

Lakshmi P Shanmugam lakshmipriya.bms at gmail.com
Thu Feb 24 08:48:34 PST 2011


Hi Alex,

Thanks for your response. Is there a way to turn off/workaround this
security feature on Windows?
We are using the same API --> loadHTMLString() on Mac OSX and it loads the
html content and stylesheet without any problem.

Thanks in Advance,

On Thu, Feb 24, 2011 at 9:34 PM, Alexander Shulgin <
alexander.shulgin at yessoftware.com> wrote:

> On 24.02.2011 18:01, Lakshmi P Shanmugam wrote:
>
>> Hello all,
>>
>> I'm using the Windows WebKit APIs.
>> I'm trying to display html content which uses an external css file as
>> stylesheet. I'm using IWebFrame.loadHTMLString(string, baseURL) with
>> baseURL=0.
>> The content is displayed but the style from the css is not applied on
>> the content. The same html content is displayed correctly with the style
>> if I save the html content in a file and load the URL.
>> I'm not sure why this is happening.
>>
>
> You are violating the security constraints.  Basically, only HTML content
> loaded through file:// URL is allowed to access other file:// resources.
>
> You may embed the css using the <stylesheet type="text/css"> tag in the
> <head> section of your HTML.
>
> --
> Alex
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>



-- 
*Lakshmi*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20110224/7fd8db71/attachment.html>


More information about the webkit-help mailing list