Closed
Bug 699807
Opened 15 years ago
Closed 15 years ago
Don't create runnables for setting the title on unlinked documents
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: peterv, Assigned: peterv)
References
Details
Attachments
(1 file)
|
982 bytes,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
When we unlink a title element we unbind it, which tries to change the title of its document. But because we're unlinking, the document might have been unlinked already. Changing the title post a runnable that holds the document. We shouldn't really be touching unlinked documents.
Attachment #571980 -
Flags: review?(jst)
Comment 1•15 years ago
|
||
Comment on attachment 571980 [details] [diff] [review]
v1
> nsDocument::NotifyPossibleTitleChange(bool aBoundTitleElement)
> {
>+ NS_ASSERTION(!mInUnlinkOrDeletion || !aBoundTitleElement,
>+ "Setting a title while unlinking or destroying the element?");
>+ if (mInUnlinkOrDeletion)
>+ return;
>+
if (expr) {
stmt;
}
Attachment #571980 -
Flags: review?(jst) → review+
| Assignee | ||
Comment 2•15 years ago
|
||
Target Milestone: --- → mozilla10
Comment 3•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•