Open Bug 334213 Opened 20 years ago Updated 3 years ago

"Copy link location" should add UniformResourceLocator (URL) flavor to clipboard

Categories

(Core :: Layout, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: david, Unassigned)

Details

When choosing "Copy Shortcut" from within IE, the following flavours are added to the DataObject in the Clipboard: FileContents FileGroupDescriptorW FileGroupDescriptor UniformResourceLocatorW System.String UnicodeText Text UniformResourceLocator Where as Firefox currently only does these: System.String UnicodeText Text It would be good to at least add support for the UniformResourceLocator and UniformResourceLocatorW flavours. I think this would involve patching CopyLinkLocation in layout\base\nsDocumentViewer.cpp. http://lxr.mozilla.org/seamonkey/source/layout/base/nsDocumentViewer.cpp#2488 -dave
I wouldn't be so confident that that's what requires patching (did you trace through cmd_copyLink?), and I wouldn't be surprised if such a change required interface changes and changes to the clipboard stuff in widget/src/windows/ as well.
I thought that was the likely place to patch after reviewing the call stack from a breakpoint I put in the clipboard code. You could be right though. If I have a go at doing a patch, then I'll no doubt get a better idea of what's really involved in fixing this. -dave
related to/dupe bug 281873?
Summary: "Copy link location" should add UniformResourceLocator flavor to clipboard → "Copy link location" should add UniformResourceLocator (URL) flavor to clipboard
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.