Closed Bug 386744 Opened 18 years ago Closed 18 years ago

"View Image" on <canvas> throws "Error: uncaught exception: Load of denied."

Categories

(Firefox :: Menus, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3 alpha7

People

(Reporter: ispiked, Assigned: Dolske)

References

Details

Attachments

(1 file, 1 obsolete file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7pre) Gecko/2007070304 Minefield/3.0a7pre Steps to reproduce: 1. Go to http://polyhedra.org/poly/. 2. Right click on the polyhedra on the right side of the page and choose "View Image". Actual results: Nothing happens. No image is shown and I get the following error in the Error Console: Error: uncaught exception: Load of denied. Expected results: Image is shown on separate page, as is done for normal images. From IRC: 13:17 < dolske> the original should have added some code to viewImage() like it did to saveImage().
Attached patch Patch for review, v.1 (obsolete) — Splinter Review
The patch in bug 346849 which added this feature added code to allow "View Image" and "Save Image As" menu items on a <canvas>, but only implemented the "Save Image As" code. This patch implements the "View Image" side of things. [Currently awaiting a build to complete before testing, but seems simple enough.]
Assignee: nobody → dolske
Status: NEW → ASSIGNED
Attachment #270752 - Flags: review?(mano)
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Firefox 3 beta1
Comment on attachment 270752 [details] [diff] [review] Patch for review, v.1 declare viewURL outside the if block and remove single line braces. r=mano otherwise.
Attachment #270752 - Flags: review?(mano) → review+
Checking in browser/base/content/nsContextMenu.js; /cvsroot/mozilla/browser/base/content/nsContextMenu.js,v <-- nsContextMenu.js new revision: 1.16; previous revision: 1.15 done
Attachment #270752 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Litmus would be easiest here, although it could be automated with some trouble.
Flags: in-testsuite?
Flags: in-testsuite? → in-litmus?
Whiteboard: litmus owner needed
Litmus Triage Team: marcia will handle test case.
https://litmus.mozilla.org/show_test.cgi?id=5009 has been added to cover this scenario.
Flags: in-litmus? → in-litmus+
Whiteboard: litmus owner needed
verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007120305 Minefield/3.0b2pre and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b2pre) Gecko/2007120304 Minefield/3.0b2pre.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: