Closed Bug 583770 Opened 15 years ago Closed 15 years ago

Navigating any of the system pages (about:) opens an extra blank tab in background

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(fennec2.0b1+)

VERIFIED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: vladmaniac, Assigned: mbrubeck)

Details

Attachments

(2 files, 1 obsolete file)

Attached image screenshot
Steps: 1. Open a new tab 2. Navigate to about:rights or any other system page 3. Slide the screen from left to right to bring up tab manager 4. Inspect the number of tabs now ================================================================================ Expected: System page should load as expected. You should not have any extra tabs besides the tabs you are browsing on. ================================================================================ Actual: There is an extra-blank tab which is opened as soon as the system page loads in content area.
Confirmed on build: Mozilla/5.0 (X11; U; Linux armv71; Nokia N900; en-US; rv:2.0b2pre) Gecko/20100802 Namoroka/4.0b3pre Fennec/2.0a1pre
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b1+
Assignee: nobody → mbrubeck
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: ARM → All
From the steps to reproduce in comment 0; 1. Open a new tab 2. Type in "about:config" (or any about: page) and press enter. Step 1 creates a new "remote" tab, since "about:blank" is considered "remote". Step 2 tries to load a "local" page, which means we need to open a new "local" tab since the current new tab was created as a "remote" tab. We need to add some code to BrowserUI.goToURI to remove the new, empty "about:blank" tab in this situation.
Attached patch patch (obsolete) — Splinter Review
We still call stop() twice when creating a new browser here. Fixing this would require propagating the loadFlags all the way through addTab to tab._createBrowser, which seemed messier than it was worth.
Attachment #464480 - Flags: review?(mark.finkle)
Comment on attachment 464480 [details] [diff] [review] patch >diff -r 663a2f6aa05a chrome/content/browser-ui.js >+ Browser.loadURI(aURI, {flags: Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP}); >+ Browser.loadURI(submission.uri.spec, {postData: submission.postData}); Add spaces around the { } >diff -r 663a2f6aa05a chrome/content/browser.js >+ loadURI: function loadURI(aURI, aParams) { >+ if (hasLocal != useLocal) { >+ if (currentURI == "about:blank" && !browser.canGoBack && !browser.canGoForward) >+ this.closeTab(this.selectedTab); >+ let tab = Browser.addTab(aURI, true, this.selectedTab); Do we always want "this.selectedTab" to be the owner? What if the user opened a new tab manually, which you check for above? r+, but we should answer the owner question before landing
Attachment #464480 - Flags: review?(mark.finkle) → review+
Attached patch patch v2Splinter Review
(In reply to comment #4) > Add spaces around the { } Done. > Do we always want "this.selectedTab" to be the owner? What if the user opened a > new tab manually, which you check for above? > > r+, but we should answer the owner question before landing Good point. I updated the patch to not set an owner after closing the selected tab.
Attachment #464480 - Attachment is obsolete: true
Attachment #464579 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified FIXED on builds: Mozilla/5.0 (X11; U; Linux armv71; Nokia N900; en-US; rv:2.0b4pre) Gecko/20100811 Namoroka/4.0b4pre Fennec/2.0a1pre and Mozilla/5.0 (Android; U; Linux armv71; en-US; rv:2.0b4pre) Gecko/20100811 Namoroka/4.0b4pre Fennec/2.0a1pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: