Closed Bug 242301 Opened 21 years ago Closed 20 years ago

Context menu's objectIsImage is totally bogus (and throws exceptions)

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Unassigned)

References

()

Details

Attachments

(1 file)

There are two issues in this function: 1) If "type" is not set you'll get back null and then trying to call indexOf on it will throw. 2) You'd be better off detecting an image by going through nsIImageLoadingContent and looking for an actual image hanging off the node. #1 is extremely bad -- it makes very broken context menus come up (think every single item enabled). You can test with the testcase (and patch) in bug 122685
Blocks: 242302
Blocks: 242303
Depends on: 185714
I meant bug 185714 (as the dependencies say).
This breaks today's seamonkey build; no need for patch from bug 185714 or anything.
Product: Core → Mozilla Application Suite
This was fixed in bug 196380.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: