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.
This commit is contained in:
parent
8c57ad1e11
commit
984299e5b4
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue