Open Bug 1421254 Opened 7 years ago Updated 2 years ago

setBrowserState seems to ignore selectedWindow property

Categories

(Firefox :: Session Restore, defect, P5)

defect

Tracking

()

Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix

People

(Reporter: u462496, Unassigned)

References

(Blocks 1 open bug)

Details

STR:

[1] Open scratchpad in browser context

[2] Paste and run the following code:

    var BLANK_SESSION = {windows: [{tabs: [{entries: [{url: "about:newtab"}]}]}]};
    var TEST_STATE = {
      windows: [
        {tabs: [
            {entries: [{url: "http://example.com/?examples1"}]},
        ],
        },
        {tabs: [
            {entries: [{url: "http://example.com/?examples2"}]},
        ],
        },
        {tabs: [
            {entries: [{url: "http://example.com/?examples3"}]},
        ],
        },
      ],
      selectedWindow: 1,
    };

    // Initialize:  
    SessionStore.setBrowserState(JSON.stringify(BLANK_SESSION));
    // Set state:
    SessionStore.setBrowserState(JSON.stringify(TEST_STATE));

Expected behavior:

The first window in the windows array should be the selected window, identified by containing the tab with the url http://example.com/?examples1.

The third window in the windows array is the selected window, identified by containing the tab with the url http://example.com/?examples3.
Related to bug 1413525.
Has STR: --- → yes
Based on the other bug, setting this to P5 also and wontfixing for 57/58.
Blocks: 1413525
Priority: -- → P5
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 297 votes.
:dao, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(dao+bmo)
You need to log in before you can comment on or make changes to this bug.