diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index d43098003..48c04c5a9 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1399,8 +1399,8 @@ nserror browser_window_callback(hlcache_handle *c, /* only the content object created by the browser * window requires a new global compartment object */ - if (js_newcompartment(bw->jsctx, - hlcache_handle_get_content(c)) != NULL) { + assert(bw->loading_content == c); + if (js_newcompartment(bw->jsctx, bw, c) != NULL) { *(event->data.jscontext) = bw->jsctx; } break; |