Fix debug warning spam of style editor
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(9 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Assignee | ||
Comment 1•4 years ago
|
||
The spam makes me harder to investigate test failures of my patches. And as I investigated, the QI timing is too late. They are performed in for
loop for same instance so that fixing this must improve the response for changing style with editor API.
Assignee | ||
Comment 2•4 years ago
|
||
There are 2 different warnings which are logged too many.
Assignee | ||
Comment 3•4 years ago
|
||
Okay, coming patch gets rid of 4000+ warnings when I run all tests under editing of WPT.
Assignee | ||
Comment 4•4 years ago
|
||
It should take nsStyledElement&
instead of const Element&
. Then, it
always returns NS_OK
so that it can just return
already_AddRefed<nsICSSDeclaration>
instead.
Depends on D87439
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D87982
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D87983
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D87984
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D87985
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D87986
Assignee | ||
Comment 10•4 years ago
|
||
Depends on D87987
Assignee | ||
Comment 11•4 years ago
|
||
Although it starts to return error if it causes destroying the editor, but
it should not occur because it modifies new and orphan node and it shouldn't
kick any mutation event listeners. Therefore, this patch makes the callers
handle error as-is rather than ignoring errors except
NS_ERROR_EDITOR_DESTROYED
.
Depends on D87988
Assignee | ||
Comment 12•4 years ago
|
||
The editor modules does QI too many times when it sets or removes some style
with execCommand
or XPCOM API. Therefore, there should be an API to
retrieve nsStyledElement
pointer from nsINode*
.
Depends on D87989
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7ee8df5f9eb9
https://hg.mozilla.org/mozilla-central/rev/ee82ab27ad02
https://hg.mozilla.org/mozilla-central/rev/ac6b4ebdf316
https://hg.mozilla.org/mozilla-central/rev/c4e47e9e0e38
https://hg.mozilla.org/mozilla-central/rev/13c9b2ffe14c
https://hg.mozilla.org/mozilla-central/rev/5e5fa801260f
https://hg.mozilla.org/mozilla-central/rev/06759e45f873
https://hg.mozilla.org/mozilla-central/rev/ee4715363f70
https://hg.mozilla.org/mozilla-central/rev/d1a42f86dd61
Updated•4 years ago
|
Description
•