if (this._headersVisible && this._cookiesView && preferredTab === "cookies")
this._selectCookiesTab();
else if (this._headersVisible && (!this.hasContentTab() || preferredTab === "headers"))
if (this._headersVisible && this._cookiesView && preferredTab === "cookies")
this._selectCookiesTab();
else if (this._headersVisible && (!this.hasContentTab() || preferredTab === "headers"))