Closed Bug 175833 Opened 22 years ago Closed 22 years ago

editing session needs to detect mime type and error appropriately

Categories

(Core :: DOM: Editor, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: Brade, Assigned: mjudge)

References

Details

Attachments

(1 file)

nsEditingSession needs to detect the mimetype of a url being loaded and send the caller back an error if the mimetype can't be handled. * The mime type should come from the webbrowser listener. * There should be an error if there is a mismatch with what is requested and the actual type. * null or empty string matches whatever the mimetype is (or "mail")
Blocks: 169029
Severity: normal → critical
Attached patch patch from editor/composer/src (deleted) — Splinter Review
patch that will give you the content type of the document currently attempting to be edited. doesnt do anything with the information yet. This patch is to start some discussion
- rv = SetupFrameControllers(aWindow, htmlController); - if (NS_FAILED(rv)) return rv; Why don't we want to set up controllers right at the time of MakeWindowEditable? The idea was that they controllers and their commands would be available, but that all the commands would be disabled (because there isn't an editor yet). + mEditorClassString = strdup(aEditorType); ... + delete [] mEditorClassString; Mismatched new/delete. You should use free() on the result of strdup(). + nsCOMPtr<nsIControllerContext> editorController = do_QueryInterface(controller); ... + nsCOMPtr<nsIControllerContext> composerController = do_QueryInterface(controller); Do you need these lines at all? You don't do anything with them.
Fixed as part of work on bug 170353
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
rs vrfy.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: