Closed
Bug 867745
Opened 12 years ago
Closed 2 years ago
leaking docshell mochitest-chrome test causes many other tests to fail, pass, etc...
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jmaher, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [leave open])
Attachments
(1 file, 1 obsolete file)
1.58 KB,
patch
|
armenzg
:
review+
|
Details | Diff | Splinter Review |
While debugging why dom/tests/mochitest/chrome/test_fullscreen.xul fails on ubuntu VM's, I found that I couldn't reproduce the problem by running just the dom subdirectory of the mochitest-chrome tests.
Upon further investigation I had removed the docshell/* tests from the chrome folder and my tests pass. What is more disturbing is new tests fail:
6333 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html | Test timed out.
8715 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/layout/forms/test/test_bug536567_perwindowpb.html | uncaught exception - TypeError: can't access dead object at chrome://mochitests/content/chrome/layout/forms/test/test_bug536567_perwindowpb.html:120
12689 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/toolkit/components/passwordmgr/test/test_privbrowsing_perwindowpb.html | Checking submitted password - got , expected notifyp1
So something in docshell is causing 3 private browsing tests to pass and causing test_fullscreen.xul to fail.
Reporter | ||
Comment 1•12 years ago
|
||
seems to be in test_bug[1-3]*.
Reporter | ||
Comment 2•12 years ago
|
||
appears to be in test_bug36* and test_bug39*. There are 4 files and if all are missing I pass the fullscreen test consistently.
As for the private browsing errors, those tests are not related to it.
Reporter | ||
Comment 3•12 years ago
|
||
test_bug364461.xul is the culprit for the fullscreen.xul errors, could it be we don't call finish here? I would assume if we messed up the call to SimpleTest.finish() that it would affect one of the dozen or so other test cases between it and fullscreen.xul:
http://mxr.mozilla.org/mozilla-central/source/docshell/test/chrome/bug364461_window.xul#74
Comment 4•12 years ago
|
||
This test looks like it could use the new SimpleTest.registerCleanupFunction from bug 866641!
Reporter | ||
Comment 5•12 years ago
|
||
yes, but what would we clean up?
Comment 6•12 years ago
|
||
The stuff that finish is doing?
Reporter | ||
Comment 7•12 years ago
|
||
oh yeah...lets make sure when this test case is fixed that it get retrofitted for some new goodness. No point in fixing this if the test case will be disabled soon (i.e. the original developers cannot fix this).
Reporter | ||
Comment 8•12 years ago
|
||
ok, it also looks test_bug301397.xul (like http://mxr.mozilla.org/mozilla-central/source/docshell/test/chrome/bug301397_window.xul) is also causing this to display as well.
I am not sure what to do here.
removing only:
test_bug364461.xul
or removing only:
test_bug301397.xul
allows for test_fullscreen.xul to work. What is even more strange is that we can remove just one of them and the other doesn't cause problems. Removing both allows us to work just fine.
With all the problems these docshell tests seem to be causing I am really tempted to turm them all off. I can't do that because all kinds of other chrome tests (i.e. private browsing related) will time out.
speaking of private browsing, removing:
test_bug303267.xul
seems to make all the private browser tests fail (by timeout). So far 3 out of 29 of these tests are causing problems in other tests.
Reporter | ||
Comment 9•12 years ago
|
||
cc'ing folks who have all written tests mentioned in this bug to date, if you are an original author, please look at this bug and help figure out what is going on.
Reporter | ||
Comment 10•12 years ago
|
||
jgriffin, if you are going to look at this on your loaner ubuntu slave, remember to remove the mochitest/tests.jar file so you can use the tests from the mochitest/chrome/ folder.
Reporter | ||
Comment 11•12 years ago
|
||
we can disable one test for now since the original test authors haven't come up with a fix for the last week. Once this is landed and we are running mochitest-other on ubuntu, this will be easy to test on try server.
Attachment #747467 -
Flags: review?(armenzg)
Comment 12•12 years ago
|
||
Comment on attachment 747467 [details] [diff] [review]
disable one of the known leaking tests for linux (1.0)
Review of attachment 747467 [details] [diff] [review]:
-----------------------------------------------------------------
Not that I know much about these type of patches but you don't seem to do anything scary! :P
Attachment #747467 -
Flags: review?(armenzg) → review+
Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Reporter | ||
Updated•12 years ago
|
Whiteboard: [leave open]
Comment 13•12 years ago
|
||
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Reporter | ||
Comment 16•12 years ago
|
||
in debug mode these 3 tests cause test_fullscreen.xul to fail:
browser/components/feeds/test/chrome/test_423060.xul
docshell/test/chrome/test_bug301397.xul
dom/tests/mochitest/chrome/test_callback_wrapping.xul
Reporter | ||
Comment 17•12 years ago
|
||
re-enable the docshell test and disable the test_fullscreen.xul. After finding 3 other tests which cause interference, I am going to disable the one test which is in our way.
Attachment #747467 -
Attachment is obsolete: true
Attachment #748516 -
Flags: review?(armenzg)
Updated•12 years ago
|
Attachment #748516 -
Flags: review?(armenzg) → review+
Comment 18•12 years ago
|
||
Updated•2 years ago
|
Severity: normal → S3
Comment 19•2 years ago
|
||
This test eventually became test_fullscreen.xhtml. It was accidentally re-enabled in bug 1798274, and I don't see any intermittent failures on file for it. I filed bug 1818000 for re-enabling the other test that was accidentally disabled at the same time, and deleting the annotation here.
You need to log in
before you can comment on or make changes to this bug.
Description
•