Closed Bug 742285 Opened 12 years ago Closed 11 years ago

file slicing doesn't work in the html5rocks demosite

Categories

(Tech Evangelism Graveyard :: English US, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alexis+bugs, Unassigned)

References

()

Details

http://www.html5rocks.com/en/tutorials/file/dndfiles/ provides a demo for the file slicing API, which doesn't seem to work either on firefox nightly or on firefox 11.

I'm not sure if it's a problem on the demosite or in gecko tho, so I'm reporting it here so you can investigate further.

They seem to be using file.mozSlice, but I get this error in the browser (in the webconsole):

--
[15:35:03.284] uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMFileReader.readAsBinaryString]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: http://www.html5rocks.com/en/tutorials/file/dndfiles/ :: <TOP_LEVEL> :: line 1043"  data: no]
It also seems to make firefox 11 crash.
FWIW, it's working with Firefox 10 which might help to find the regression if that's a regression and not a spec change.
Hardware: x86 → All
Version: 14 Branch → Trunk
We unprefixed slice in Bug 725289.  The demo needs to be updated to handle that.
Assignee: nobody → english-us
Component: DOM: Core & HTML → English US
Product: Core → Tech Evangelism
QA Contact: general → english-us
Version: Trunk → unspecified
(In reply to Alexis Metaireau (:alexis) from comment #1)
> It also seems to make firefox 11 crash.

If you see a crash please file a separate bug because the Demo works for me in Firefox 11.
Paul, this appears to need a fix on your side.
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #4)
> (In reply to Alexis Metaireau (:alexis) from comment #1)
> > It also seems to make firefox 11 crash.
> 
> If you see a crash please file a separate bug because the Demo works for me
> in Firefox 11.

Thanks, added #742362
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.