Closed Bug 1225202 Opened 10 years ago Closed 10 years ago

Enable test_fileapi_slice.html with e10s

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
e10s + ---
firefox45 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

This is a continuation of bug 1224338. There are some more tests that need to be converted to use SpecialPowers.createFiles(). dom/base/test/test_fileapi_slice.html: This tests calls createFileWithData() from fileutils.js. I tried to convert it in the obvious way but it was failing to finish for some reason. I don't know if I was just exposing an existing race or causing one. dom/base/test/test_mozfiledataurl.html: This tests has a getFile() method that uses getMyDirectory.sjs to create a File() relative to the test directory, rather than the profile directory, then loads some files. SpecialPowers.createFile() may need to be altered to handle this case.
Blocks: e10s-tests
tracking-e10s: --- → +
Assignee: nobody → continuation
Summary: Enable more DOM tests that use files in e10s → Enable test_fileapi_slice.html with e10s
Depends on: 1226052
No longer depends on: 1226052
imageLoadHandler, testBinaryData, fileData and size are used by all of the subtests, so move their declarations earlier so they will remain at the global scope when we start splitting scopes in preparation for supporting asynchronous file creation. memFile is only used in one subtest, so move it later. code earlier that we want at the global scope also move memFile down, which we don't want at the global scope try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fda4ac8a7b95
Attachment #8689540 - Flags: review?(amarchesini)
I'll attach a -w diff, too. The files are put into single element arrays to prepare for the SpecialPowers createFiles API.
Attachment #8689541 - Flags: review?(amarchesini)
This makes the test work with e10s enabled. Remove createFileWithData from fileutils.js which is no longer used.
Attachment #8689543 - Flags: review?(amarchesini)
Attached patch part 2, with -wSplinter Review
Most of the patch is whitespace changes, so it is easier to see what is happening in this version.
Attachment #8689540 - Flags: review?(amarchesini) → review+
Attachment #8689541 - Flags: review?(amarchesini) → review+
Attachment #8689543 - Flags: review?(amarchesini) → review+
Depends on: 1226477
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: