Closed
Bug 203384
Opened 21 years ago
Closed 21 years ago
Crash when resolving xpath1() XPointer scheme
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.4beta
People
(Reporter: hjtoi-bugzilla, Assigned: sicking)
References
Details
(Keywords: crash, regression)
Attachments
(1 file, 1 obsolete file)
1.15 KB,
patch
|
peterv
:
review+
hjtoi-bugzilla
:
superreview+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
To reproduce, open file mozilla/content/xml/tests/xpointer/xpointer.xml, and click on the "JS" button one line that begins with "xpath1". What happens: We crash in here because |doc| is null: nsXPathEvaluator::CreateExpression(const nsAString & aExpression, nsIDOMXPathNSResolver *aResolver, nsIDOMXPathExpression **aResult) { nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument); ParseContextImpl pContext(aResolver, doc->IsCaseSensitive()); // <= CRASH mDocument is also null and it is not set anywhere, so this seems kind of strange. This piece of code was last changed by jst in bug 111514. Maybe something else changed around here recently as well?
Reporter | ||
Comment 1•21 years ago
|
||
jst emailed me this patch, and it seems to work
Reporter | ||
Updated•21 years ago
|
Attachment #121714 -
Flags: superreview+
Attachment #121714 -
Flags: review?(bugmail)
Reporter | ||
Updated•21 years ago
|
Flags: blocking1.4b?
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla1.4beta
Assignee | ||
Updated•21 years ago
|
Attachment #121714 -
Flags: review?(bugmail) → review+
Comment 2•21 years ago
|
||
*** Bug 203762 has been marked as a duplicate of this bug. ***
Comment 3•21 years ago
|
||
Comment on attachment 121714 [details] [diff] [review] Proposed patch from jst Lowrisk patch which fixes a crash.
Attachment #121714 -
Flags: approval1.4b?
Comment 4•21 years ago
|
||
Comment on attachment 121714 [details] [diff] [review] Proposed patch from jst a=asa (on behalf of drivers) for checkin to 1.4b
Attachment #121714 -
Flags: approval1.4b? → approval1.4b+
Reporter | ||
Comment 5•21 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: [HAVE FIX]
Reporter | ||
Updated•21 years ago
|
Flags: blocking1.4b?
Assignee | ||
Comment 6•21 years ago
|
||
ouch. Sorry guys, this does the wrong thing when the document is missing, my bad. Patch comming in a sec
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•21 years ago
|
||
If there is no document (which is compleatly valid) we should be case sensitive
Attachment #121714 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #123017 -
Flags: superreview?(jst)
Attachment #123017 -
Flags: review?(peterv)
Comment 9•21 years ago
|
||
Comment on attachment 123017 [details] [diff] [review] Do the right thing when the document is missing Fine by me
Attachment #123017 -
Flags: review?(peterv) → review+
Reporter | ||
Updated•21 years ago
|
Attachment #123017 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Comment 10•21 years ago
|
||
Comment on attachment 123017 [details] [diff] [review] Do the right thing when the document is missing this patch is very safe and only affects uses of DOM-XPath and xpointer. Without the patch xpointer will have trouble with casesensitivity
Attachment #123017 -
Flags: approval1.4+
Assignee | ||
Comment 11•21 years ago
|
||
Comment on attachment 123017 [details] [diff] [review] Do the right thing when the document is missing opps, i ment to _request_ approval of course, nothing else
Attachment #123017 -
Flags: approval1.4+ → approval1.4?
Comment 12•21 years ago
|
||
Comment on attachment 123017 [details] [diff] [review] Do the right thing when the document is missing a=asa (on behalf of drivers) for checkin to 1.4.
Attachment #123017 -
Flags: approval1.4? → approval1.4+
Assignee | ||
Comment 13•21 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•