Middle clicking the back / forward buttons doesn't go back / forward

RESOLVED FIXED in Firefox 4.0b10

Status

()

defect
--
major
RESOLVED FIXED
9 years ago
6 years ago

People

(Reporter: dao, Assigned: dao)

Tracking

({regression})

Trunk
Firefox 4.0b10
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking2.0 betaN+)

Details

Attachments

(1 attachment)

Assignee

Description

9 years ago
No description provided.
Assignee

Updated

9 years ago
blocking2.0: --- → ?
Assignee

Comment 1

9 years ago
Posted patch patchSplinter Review
This introduces a 'delta' argument to duplicateTab, as pioneered by SeaMonkey. This is a backward compatible interface extension.
Attachment #501975 - Flags: review?(dietrich)
Assignee

Updated

9 years ago
Blocks: 586068
Carrying over blocking from bug 617255.
blocking2.0: ? → betaN+
Comment on attachment 501975 [details] [diff] [review]
patch

>   /**
>    * Duplicates a given tab as thoroughly as possible.
>    *
>    * @param aWindow is the browser window into which the tab will be duplicated.
>    * @param aTab    is the tabbrowser tab to duplicate (can be from a different window).
>+   * @param aDelta  is the offset to the history entry that you want to load.

"entry to load in the duplicated tab" would be clearer.

>+  duplicateTab: function sss_duplicateTab(aWindow, aTab, aDelta) {
>     if (!aTab.ownerDocument || !aTab.ownerDocument.defaultView.__SSi ||
>         !aWindow.getBrowser)
>       throw (Components.returnCode = Cr.NS_ERROR_INVALID_ARG);
> 
>     var tabState = this._collectTabData(aTab, true);
>     var sourceWindow = aTab.ownerDocument.defaultView;
>     this._updateTextAndScrollDataForTab(sourceWindow, aTab.linkedBrowser, tabState, true);
>+    tabState.index += aDelta;

if there is an aDelta parameter passed in, should validate it.

r=me otherwise.
Attachment #501975 - Flags: review?(dietrich) → review+
Assignee

Comment 6

9 years ago
What are the minimum and maximum indices? 1 and tabState.entries.length?
(In reply to comment #6)
> What are the minimum and maximum indices? 1 and tabState.entries.length?

hmm yeah, that looks right based on _collectTabData.
Assignee

Comment 8

9 years ago
http://hg.mozilla.org/mozilla-central/rev/9862560161c4
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b10
No longer blocks: FF2SM
You need to log in before you can comment on or make changes to this bug.