From 984299e5b4feda4ffb6fd80f0d1f489c32e6d512 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 25 Jul 2014 14:34:46 +0100 Subject: remove assert for creating new browser context with the tab flag set. This allows creation of new browsing contents (browser/gui window) in a tab but without explicitly providing a sibling browsing context to be placed with. --- desktop/browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index c3432bef8..b71d3ffd4 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -694,7 +694,7 @@ nserror browser_window_create(enum browser_window_create_flags flags, struct browser_window *ret; /* Check parameters */ - if (flags & (BW_CREATE_TAB | BW_CREATE_CLONE)) { + if (flags & BW_CREATE_CLONE) { if (existing == NULL) { assert(0 && "Failed: No existing window provided."); return NSERROR_BAD_PARAMETER; -- cgit v1.2.3