setBrowserState seems to ignore selectedWindow property

NEW
Unassigned

Status

()

P5
normal
a year ago
6 months ago

People

(Reporter: u462496, Unassigned)

Tracking

(Blocks: 1 bug)

unspecified
Points:
---

Firefox Tracking Flags

(firefox57 wontfix, firefox58 wontfix)

Details

(Reporter)

Description

a year ago
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.
(Reporter)

Comment 1

a year ago
Related to bug 1413525.
Has STR: --- → yes

Comment 2

a year ago
Based on the other bug, setting this to P5 also and wontfixing for 57/58.
Blocks: 1413525
status-firefox57: --- → wontfix
status-firefox58: --- → wontfix
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.