Remove XBL related tests
Categories
(Core :: XBL, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: surkov, Assigned: bgrins)
References
(Blocks 2 open bugs)
Details
Attachments
(4 files)
bug 1510785 puts all XBL related stuff including tests under MOZ_XBL directive, and has a patch D45616 that disables all XBL related tests. Bz pointed out that numbers of tests might be relevant for shadow DOM and thus need to be rewritten to use shadow DOM.
It might be a good idea to track this work separately from bug 1510785: the work volume might be large to mix with other stuff and it seems there's no point to keep XBL tests running after we have no XBL binding left in the tree (textbox is the last one bug 1513325), so we can remove them safely without any interference with bug 1510785.
Assignee | ||
Comment 1•5 years ago
|
||
Unblocking Bug 1397874 since I'd like to track this type of work in Bug 1566221 specifically.
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hello, i was browsing the code repo and noticed that there are a lot of tests that declare bindings https://dxr.mozilla.org/mozilla-central/search?q=%3Cbindings+-path%3A*.rs+-path%3A*.cpp&redirect=false
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Vlad Stanimir from comment #2)
Hello, i was browsing the code repo and noticed that there are a lot of tests that declare bindings https://dxr.mozilla.org/mozilla-central/search?q=%3Cbindings+-path%3A*.rs+-path%3A*.cpp&redirect=false
These are being ported to use shadow dom when applicable in Bug 1510785 / https://phabricator.services.mozilla.com/D45616
Reporter | ||
Comment 4•5 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #3)
(In reply to Vlad Stanimir from comment #2)
Hello, i was browsing the code repo and noticed that there are a lot of tests that declare bindings https://dxr.mozilla.org/mozilla-central/search?q=%3Cbindings+-path%3A*.rs+-path%3A*.cpp&redirect=false
These are being ported to use shadow dom when applicable in Bug 1510785 / https://phabricator.services.mozilla.com/D45616
for some reason the phab didn't show me the whole history of the revision, so if Brendan is about to finish all the conversion there, then let's keep that bug to remove tests that live under MOZ_XBL flag.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Converting is happening in Bug 1583314. We could use this bug to actually remove the tests once we start to rip out XBL code.
Assignee | ||
Comment 6•5 years ago
|
||
At this point we can remove any test that is marked with skip-if = !xbl
. This should make further code removal easier.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D50650
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D50651
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D50652
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
It could be interesting to look at how code coverage data will change after this, to see if there is opportunity for even more dead code removal.
Assignee | ||
Comment 14•5 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #13)
It could be interesting to look at how code coverage data will change after this, to see if there is opportunity for even more dead code removal.
I like that idea! I'm planning to track any code removal bugs that we can do in Bug 1566221. Could you help track down the changes in ccov? I was planning to land this in pieces but I could hold off and only push dom/ changes until once layout/ is ready if that makes it easier.
Assignee | ||
Comment 15•5 years ago
|
||
I thought about it some more, and I think we've already landed the changeset that would have caused the ccov changes in Bug 1583314. At that point we disabled MOZ_XBL so all of these tests became effectively skip-if=true. So it'd be interesting to see if we detect the GetWholeText
removal (in Bug 1591588) in ccov after those changesets landed.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Comment 18•5 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #15)
I thought about it some more, and I think we've already landed the changeset that would have caused the ccov changes in Bug 1583314. At that point we disabled MOZ_XBL so all of these tests became effectively skip-if=true. So it'd be interesting to see if we detect the
GetWholeText
removal (in Bug 1591588) in ccov after those changesets landed.
The if branch was taken before 1 and not taken after 2.
From a quick look at the results of a quick and dirty script, I also see a few differences in dom/base/FragmentOrElement.cpp and dom/base/nsGlobalWindowInner.cpp (e.g. SetXBLInsertionPoint 3 is covered before and not after). Analyzing the differences is a bit of a manual process though, as clearly there are a few differences that are simply due to intermittency and a few other which are due to other changes which landed at the same time.
Comment 19•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 20•5 years ago
|
||
bugherder |
Description
•