Closed
Bug 252977
Opened 20 years ago
Closed 20 years ago
nsWebBrowserFind::GetFrameSelection triggers assertion in nsFrameManager.cpp
Categories
(Core :: DOM: Selection, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
Details
(Keywords: testcase)
Attachments
(3 files)
814 bytes,
text/plain
|
Details | |
945 bytes,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
173 bytes,
text/html
|
Details |
nsWebBrowserFind::GetFrameSelection triggers assertion in nsFrameManager.cpp STEPS TO REPRODUCE: 1. Load testcase in a debug build 2. Context menu: "Select All" 3. Context menu: "View Selection Source" ACTUAL RESULTS: WARNING: NS_ENSURE_TRUE(aContent) failed, file nsFrameManager.cpp, line 403 WARNING: NS_ENSURE_TRUE(aContent) failed, file nsFrameManager.cpp, line 403 The problem is that nsWebBrowserFind::GetFrameSelection assumes that focusController->GetFocusedElement returns a non-null value. There is actually no harm done in this case, but unnecessary assertions distracts from real ones, IMO.
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #154274 -
Flags: superreview?(bzbarsky)
Attachment #154274 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•20 years ago
|
||
Comment 4•20 years ago
|
||
Comment on attachment 154274 [details] [diff] [review] Patch rev. 1 r+sr=bzbarsky
Attachment #154274 -
Flags: superreview?(bzbarsky)
Attachment #154274 -
Flags: superreview+
Attachment #154274 -
Flags: review?(bzbarsky)
Attachment #154274 -
Flags: review+
Assignee | ||
Comment 5•20 years ago
|
||
Checked in 2004-08-08 10:18 PDT -> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: [FIX] nsWebBrowserFind::GetFrameSelection triggers assertion in nsFrameManager.cpp → nsWebBrowserFind::GetFrameSelection triggers assertion in nsFrameManager.cpp
You need to log in
before you can comment on or make changes to this bug.
Description
•