Bug 875986, part 3 - remove thumbnail file after capture. r=adw
authorMark Hammond <mhammond@skippinet.com.au>
Mon, 09 Sep 2013 14:34:15 +1000
changeset 146135 5fa36cd1823d85e98ff906f6b1d1ddb6bc557d9a
parent 146134 968d0083e7d7488d1bde70b9a6fcfbe0cc37970a
child 146136 81f13346eb7ca2ea12d046230eab8e6ad82ab544
push id25242
push useremorley@mozilla.com
push dateMon, 09 Sep 2013 12:13:52 +0000
treeherdermozilla-central@218d4334d29e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs875986
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 875986, part 3 - remove thumbnail file after capture. r=adw
toolkit/components/thumbnails/test/browser_thumbnails_background.js
--- a/toolkit/components/thumbnails/test/browser_thumbnails_background.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_background.js
@@ -245,16 +245,17 @@ let tests = [
 
   // check that if a page captured in the background attempts to set a cookie,
   // that cookie is not saved for subsequent requests.
   function noCookiesStored() {
     let url = testPageURL({ setRedCookie: true });
     yield capture(url);
     let file = fileForURL(url);
     ok(file.exists(), "Thumbnail file should exist after capture.");
+    file.remove(false);
     // now load it up in a browser - it should *not* be red, otherwise the
     // cookie above was saved.
     let tab = gBrowser.loadOneTab(url, { inBackground: false });
     let browser = tab.linkedBrowser;
     yield onPageLoad(browser);
 
     // The root element of the page shouldn't be red.
     let redStr = "rgb(255, 0, 0)";