mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
hlcache handle is not a content, do not treat it as one - oops
This commit is contained in:
parent
cc93afcfda
commit
1fc96acf47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user