hlcache handle is not a content, do not treat it as one - oops

This commit is contained in:
Vincent Sanders 2012-07-07 00:14:50 +01:00
parent cc93afcfda
commit 1fc96acf47

View File

@ -1400,7 +1400,9 @@ nserror browser_window_callback(hlcache_handle *c,
* window requires a new global compartment object
*/
assert(bw->loading_content == c);
if (js_newcompartment(bw->jsctx, bw, c) != NULL) {
if (js_newcompartment(bw->jsctx,
bw,
hlcache_handle_get_content(c)) != NULL) {
*(event->data.jscontext) = bw->jsctx;
}
break;