Extension not working in Chrome 24

1,011 views
Skip to first unread message

Chao Huang

unread,
Jan 14, 2013, 5:34:36 PM1/14/13
to chromium-...@chromium.org

I use the following lines to define BlobBuilder object and slice function in Chrome extension

    window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder;

Blob.prototype.slice = Blob.prototype.slice || function(start, length) {
return this.webkitSlice(start, start + length);
}

It works in Chrome with version up to 23, but for the latest version 24, it does not recognize my definitions any more. For example, var builder = new BlobBuilder() will prompt an error: Uncaught TypeError: undefined is not a function.

Does anyone know what's going on here? Thanks!

John J Barton

unread,
Jan 14, 2013, 7:49:48 PM1/14/13
to Chao Huang, Chromium-extensions
Perhaps your problem is related to change in Blob...BlobBuilder has been changing:
see also

jjb


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/0n9WMMQrdYQJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

David Levin

unread,
Jan 14, 2013, 6:16:58 PM1/14/13
to Chao Huang, chromium-...@chromium.org
"In the course of standardization, the BlobBuilder API was removed in
favor of just using the Blob constructor. " -- http://trac.webkit.org/changeset/128797 (and the follow up http://trac.webkit.org/changeset/130343).

So it looks like WebkitBlobBuilder was removed and the replacement is just using the Blob constructor.

dave



On Mon, Jan 14, 2013 at 2:34 PM, Chao Huang <mister.h...@gmail.com> wrote:

--
Reply all
Reply to author
Forward
0 new messages