Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about the NetscapePlugin implementation in WebKit




On Oct 13, 2005, at 11:39 PM, Jerome Foucher wrote:

Hi there,

I have developed a Netscape-style internet plugin that has a problem in Safari

The plugin supports hrefs. So when the user clicks on an image in my plugin view, the browser is sent to the link given by the href parameter, just like it was a regular text or image link.

To open a link, I use the browser API browser->geturl()
Everything works fine until I tried with anchored-urls.

For instance :
- http://mysite.com/index.html gets loaded in the browser's window and contains an instance of my plugin
- when the user clicks on the plugin's view, I call :
browser->geturl(instance, "index.html#bottom" target="_self")


What happens is that the page reloads completely and moreover does not scroll to the #bottom anchor.

This same code works fine in other browsers (FireFox, Mozilla, Camino and Opera).

I tried looking into the WebKit sources, but could not find any particular bug. This was my first look at these sources, so I'm reporting my problem here in hope someone more familiar with WebKit might find the bug / a solution / a workaround.

I'm afraid I don't know the cause of the bug off-hand, but we'd appreciate a bug report, either via RadarWeb, or in the WebKit open source project bug tracker, Bugzilla:


http://bugzilla.opendarwin.org

It will help a lot if the bug report includes a way to reproduce the bug, such as possibly a stripped-down version of your plug-in.

You might also have more luck asking on email@hidden, where there are many people knowledgable about the WebKit source code.

We do handle anchor scrolling properly in most cases, so I am not sure why it would go wrong when triggered by a plug-in.

Regards,
Maciej

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Question about the NetscapePlugin implementation in WebKit (From: Jerome Foucher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.