Open main menu

CDOT Wiki β

Changes

User:Rueen

2,529 bytes removed, 10:03, 6 November 2007
Other
<pre>
Index: tabbrowser.xml
=================================================================Other ==RCS fileI'm interested in contributing to the [http: /cvsroot/mozilla/browser/base/content/tabbrowser.xml,vretrieving revision 1.243diff -u -8 -p -r1.243 tabbrowser.xml--- tabbrowserzenit.xml 18 Sep 2007 00:59:41 -0000 1senecac.243+++ tabbrowseron.xml 15 Oct 2007 21:26:23 -0000@@ -1073,32 +1073,41 @@ <parameter name="aURI"ca/> <parameter name="aReferrerURI"wiki/> <parameter name="aCharset"index.php/> <parameter name="aPostData"/> <parameter name="aLoadInBackground"/> <parameter name="aAllowThirdPartyFixup"/> <body> <![CDATADesktop_Social_Networking_Integration Desktop Social Networking Integration]project as well as the [+ + + + + + var bgLoad = (aLoadInBackground != null) ? aLoadInBackground : this.mPrefs.getBoolPref("browser.tabs.loadInBackground"); var owner = bgLoad ? null http: this.selectedTab; var tab = this.addTab(aURI, aReferrerURI, aCharset, aPostData, owner, aAllowThirdPartyFixup); // Set newly selected tab after quick timeout, otherwise hideous focus problems // can occur when "browser.tabszenit.loadInBackground" is false and presshell is not ready if (!bgLoad) { function selectNewForegroundTab(browser, tab) { browsersenecac.selectedTab = tab; } setTimeout(selectNewForegroundTab, 0, getBrowser(), tab); } if (!bgLoad) thison.selectedTab = tab; + + var position = currentTabIndex + 1;+ return tab; ]]> </body> </method> <method name="loadTabs"> <parameter name="aURIs"ca/> <parameter name="aLoadInBackground"wiki/>@@ -1173,19 +1182,24 @@ t.maxWidth = this.mTabContainer.mTabMaxWidth; t.minWidth = this.mTabContainer.mTabMinWidth; t.width = 0; t.setAttribute("flex", "100"); t.setAttribute("validate", "never"); t.setAttribute("onerror", "this.parentNode.parentNode.parentNode.parentNode.addToMissedIconCache(this.getAttribute('image')); this.removeAttribute('image');"); t.className = "tabbrowser-tab"; - this.mTabContainer.appendChild(t);-- if (document.defaultView+ + + var currentTabIndex = this.mTabContainer.selectedIndex;+ this.mTabContainer.insertBefore(t, this.mTabContainer.childNodes.item(currentTabIndex + 1));+ + + + if (document.defaultView .getComputedStyle(this.mTabContainer, "") index.direction == "rtl") { php/* In RTL UI, the tab is visually added to the left side Project_List#Testing_of_Canadian_Banking_and_Financial_Sites_in_Mozilla Testing of the * tabstripCanadian Banking and Financial Sites in Mozilla] project. This means I've emailed the tabstip has to be scrolled back in * order project's leaders and asked them to make sure the same set of tabs is visible before and * after the new tab is added */ this.mTabContainer.mTabstripprovide me with tasks they need completed.scrollBoxObject </pre>
== Other ==
1
edit