WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
143334
Remove unnecessary ASSERT from XMLDocumentParser::notifyFinished()
https://bugs.webkit.org/show_bug.cgi?id=143334
Summary
Remove unnecessary ASSERT from XMLDocumentParser::notifyFinished()
Gabor Rapcsanyi
Reported
2015-04-02 06:42:31 PDT
Remove the ASSERT(m_pendingScript->accessCount() > 0) because if the MemoryCache is disabled then we never icrease the accessCount.
Attachments
proposed patch
(1.40 KB, patch)
2015-04-02 06:50 PDT
,
Gabor Rapcsanyi
beidson
: review-
beidson
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gabor Rapcsanyi
Comment 1
2015-04-02 06:50:55 PDT
Created
attachment 249976
[details]
proposed patch
Alexey Proskuryakov
Comment 2
2015-04-02 22:15:53 PDT
Comment on
attachment 249976
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=249976&action=review
> Source/WebCore/ChangeLog:9 > + Remove the ASSERT(m_pendingScript->accessCount() > 0) because if the MemoryCache is disabled > + then we never icrease the accessCount.
Is it unnecessary, or incorrect?
Gabor Rapcsanyi
Comment 3
2015-04-03 03:46:21 PDT
(In reply to
comment #2
)
> Comment on
attachment 249976
[details]
> proposed patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=249976&action=review
> > > Source/WebCore/ChangeLog:9 > > + Remove the ASSERT(m_pendingScript->accessCount() > 0) because if the MemoryCache is disabled > > + then we never icrease the accessCount. > > Is it unnecessary, or incorrect?
Well, maybe incorrect is a better word for it. I'm not sure whether we should change the assert or just remove it.
Chris Dumez
Comment 4
2015-04-16 14:53:27 PDT
Comment on
attachment 249976
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=249976&action=review
Couldn't we have a layout test for this by exposing MemoryCache::setDisabled() via Internals?
> Source/WebCore/xml/parser/XMLDocumentParser.cpp:-226 > - ASSERT(m_pendingScript->accessCount() > 0);
Maybe ASSERT(m_pendingScript->accessCount() > 0 || MemoryCache::singleton().disabled()); then?
Brady Eidson
Comment 5
2017-04-24 19:06:51 PDT
Comment on
attachment 249976
[details]
proposed patch This patch has been pending review since 2015 with no recent activity. It seems unlikely that it would even still apply to trunk in its current form. Clearing from the review queue. Feel free to update and resubmit if the patch is still relevant.
Ahmad Saleem
Comment 6
2022-08-04 10:28:51 PDT
>>
ap@webkit.org
- is this required?
https://github.com/WebKit/WebKit/blob/1ffe018f5d5cd17e88f1a34ee7a62d47290ed07d/Source/WebCore/xml/parser/XMLDocumentParser.cpp#L227
Seems like m_pendingScript is now changed to nullptr and it does not asset. Thanks!
Alexey Proskuryakov
Comment 7
2022-08-14 13:49:20 PDT
There is no such assertion in XMLDocumentParser::notifyFinished any more.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug