This moves the two remaining browser tests in toolkit/mozapps/downloads/tests to
an xpcshell test and a chrome test. The reason for this change is to remove the
dependency of the browser from download manager tests since it is a toolkit
component.
This version unregisters the factory that we register to override the prompt
service in test_bug_412360.xul so we no longer leak.
r=gavin
--HG--
rename : toolkit/mozapps/downloads/tests/browser/browser_bug_406857.js => toolkit/components/downloads/test/unit/test_bug_406857.js
rename : toolkit/mozapps/downloads/tests/browser/browser_bug_412360.js => toolkit/mozapps/downloads/tests/chrome/test_bug_412360.xul
The test now listens for a "domwindowclosed" notification from the window
watch service instead of using a timer which is unreliable. Upon receiving the
notification, it dispatches an event to the main thread to perform the proper
checks to allow time for any other events listening to that topic to process.
This also adds a utils.js file that download manager chrome tests can use. So
far, only one function has been added that will execute a function on the main
thread; executeSoon.
r=gavin
This removes the use of the preference browser.download.manager.useWindow, which
was redundant because we do not have any download manager UI that isn't in a
window, and the preference browser.download.manager.showWhenStarting controls
the appearance of the downloads window. Additionally, this removes the preference browser.download.manager.openDelay which was made obsolete long ago but not
removed from firefox.js.
r=gavin
Disable glib's slice sub-allocator[1], which is implemented as a zone allocator
layered on top of malloc. Since jemalloc is itself a zone allocator, the extra
abstraction level forces segregation of equal-sized objects that could
otherwise be packed together.
[1] http://library.gnome.org/devel/glib/stable/glib-Memory-Slices.html
This moves the two remaining browser tests in toolkit/mozapps/downloads/tests to
an xpcshell test and a chrome test. The reason for this change is to remove the
dependency of the browser from download manager tests since it is a toolkit
component.
r=gavin
--HG--
rename : toolkit/mozapps/downloads/tests/browser/browser_bug_406857.js => toolkit/components/downloads/test/unit/test_bug_406857.js
rename : toolkit/mozapps/downloads/tests/browser/browser_bug_412360.js => toolkit/mozapps/downloads/tests/chrome/test_bug_412360.xul