Bug 47130 - [chromium] Get the link from a plugin when creating a context menu
Summary: [chromium] Get the link from a plugin when creating a context menu
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: John Abd-El-Malek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 16:34 PDT by John Abd-El-Malek
Modified: 2010-10-05 15:46 PDT (History)
1 user (show)

See Also:


Attachments
Patch (2.79 KB, patch)
2010-10-04 16:36 PDT, John Abd-El-Malek
no flags Details | Formatted Diff | Diff
Patch (4.76 KB, patch)
2010-10-05 13:06 PDT, John Abd-El-Malek
fishd: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Abd-El-Malek 2010-10-04 16:34:11 PDT
[chromium] Get the link from a plugin when creating a context menu
Comment 1 John Abd-El-Malek 2010-10-04 16:36:12 PDT
Created attachment 69714 [details]
Patch
Comment 2 Darin Fisher (:fishd, Google) 2010-10-04 20:28:12 PDT
Comment on attachment 69714 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=69714&action=review

> WebKit/chromium/public/WebPlugin.h:104
> +    virtual WebURL absoluteURL(const WebPoint& position) const { return WebURL(); }

hmm... the name of this method could use some improvements.  something like
absoluteURLAtPosition would be better, but even that is fairly awkward and
not as self-documenting as it ought to be.

maybe using the word "link" would help or even "href"...  hmm, I'll think on
this.
Comment 3 Darin Fisher (:fishd, Google) 2010-10-04 22:19:31 PDT
Could this API also be used to show a status message when the user hovers over a link?

WebPlugin::{href,link}AtPosition
Comment 4 John Abd-El-Malek 2010-10-05 12:59:34 PDT
(In reply to comment #3)
> Could this API also be used to show a status message when the user hovers over a link?

ah yes, good suggestion.

> 
> WebPlugin::{href,link}AtPosition

linkAtPosition sounds good
Comment 5 John Abd-El-Malek 2010-10-05 13:06:10 PDT
Created attachment 69830 [details]
Patch
Comment 6 John Abd-El-Malek 2010-10-05 15:46:06 PDT
Committed r69154: <http://trac.webkit.org/changeset/69154>