Open Bug 132700 Opened 23 years ago Updated 4 years ago

Editor embedding: nsIEditingSession::MakeEditable should have options for nested iframes

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

mozilla1.0.1

People

(Reporter: sfraser_bugs, Unassigned)

References

(Blocks 1 open bug)

Details

Currently, nsIEditingSession::MakeEditable() only makes a single <iframe> editable. It needs to take a parameter that indicates whether the caller wants all nested <iframes> to become editable also (e.g. if loading a frameset page). The implementation would look something like: nsCOMPtr<nsISimpleEnumerator> docShellEnumerator; docShell->GetDocShellEnumerator( nsIDocShellTreeItem::typeContent, nsIDocShell::ENUMERATE_FORWARDS, getter_AddRefs(docShellEnumerator)); if (docShellEnumerator) { PRBool hasMore; while (NS_SUCCEEDED(docShellEnumerator->HasMoreElements(&hasMore)) && hasMore) { nsCOMPtr<nsISupports> curSupports; rv = docShellEnumerator->GetNext(getter_AddRefs(curSupports)); if (NS_FAILED(rv)) break; nsCOMPtr<nsIDocShell> curShell = do_QueryInterface(curSupports, &rv); if (NS_FAILED(rv)) break; nsCOMPtr<nsIDOMWindow> childWindow = do_GetInterface(curShell,&rv); if (childWindow) editingSession->MakeWindowEditable(childWindow, PR_FALSE); } }
QA Contact: mdunn → depstein
giving milestone
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0.1
Blocks: 168597
changing component so this shows up in Syd's editor embedding queries
Component: Embedding: APIs → Editor: Core
QA Contact: depstein → dsirnapalli
Blocks: 14156
QA Contact: dsirnapalli → editor
Assignee: mjudge → nobody
Status: ASSIGNED → NEW

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.