diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-25 14:34:46 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-27 18:07:00 +0100 |
commit | 984299e5b4feda4ffb6fd80f0d1f489c32e6d512 (patch) | |
tree | c1b133118420ca2b6e4a99ad1e3f643c31464404 /desktop | |
parent | 8c57ad1e11b5b09d1c75087dcbe66fd220479407 (diff) | |
download | netsurf-984299e5b4feda4ffb6fd80f0d1f489c32e6d512.tar.gz netsurf-984299e5b4feda4ffb6fd80f0d1f489c32e6d512.tar.bz2 |
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.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 2 | ||||
-rw-r--r-- | desktop/gui.h | 3 |
2 files changed, 2 insertions, 3 deletions
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; diff --git a/desktop/gui.h b/desktop/gui.h index a19f30115..21dd85e68 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -95,8 +95,7 @@ struct gui_window_table { * \param flags flags for gui window creation * \return gui window, or NULL on error * - * If GW_CREATE_CLONE or GW_CREATE_TAB flags are set, existing is - * non-NULL. + * If GW_CREATE_CLONE flag is set existing is non-NULL. * * Front end's gui_window must include a reference to the * browser window passed in the bw param. |