Closed Bug 156679 Opened 23 years ago Closed 23 years ago

Can't open image link in new window

Categories

(Core Graveyard :: Embedding: Mac, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: ccarlen)

References

()

Details

(Keywords: embed)

Attachments

(1 file)

For any image that's also a link, the context menu item "Open In New Window" tosses up an exception dialog in PPEmbed. The reason is because the dom node for the context menu is the <IMAGE> tag, not the <A>, so it can't be QI'd to nsIDOMHTMLAnchorElement. Should be relatively easy to fix, just walk up the parent chain until you find the anchor.
we should probably fix this for 1.01 for embedding clients (note, chimera does not have this problem).
Does this affect other Clients (N7, Win32 Embedding?)
nope, only ppembed, and in fact, it's already been fixed by the main client we would care about...not that they would, oh, give us a patch or anything. hmmmmmmmmmm? ;) removing topembed, though we should still fix this.
Keywords: topembed
Blocks: 150046
while not technically a blocker yet, I've added it to the blockers list. Sounds like the kind of thing that could become a blocker...
--> Adding Embed
Keywords: embed
Removing as blocker for 150045 as cough, cough, already has a fix in their tree
No longer blocks: 150046
Attached patch patchSplinter Review
Simple patch which, on finding out that the DOM node is not a link element (though it's been told by the flags that it is), goes up the parent chain to find a link element. Note that it's only done for images. In this case, the flags tell us that it's both an image and a link.
This was fixed by bug 157786 which incorporated this patch.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
to Dharma for verification
QA Contact: mdunn → dsirnapalli
-- verified on latest branch(2002-10-09-05-1.0) and latest trunk(2002-10-10-08-trunk) of PPEmbed. I am able to open image link in new window using context menu. Marking the bug verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: