Open
Bug 684770
Opened 14 years ago
Updated 3 years ago
Attributes are not persisted correctly, if the tab is never restored
Categories
(Firefox :: Session Restore, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: tabutils+bugzilla, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.99 KB,
patch
|
ttaubert
:
review-
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
Build ID: 20110830092941
Steps to reproduce:
Similar to bug 607016, but happens on the attributes that are requested to persist with persistTabAttribute.
1. Set restore_on_demand = true (max_concurrent_tabs = 0)
2. Open some tabs and restart Firefox
3. Execute in JS shell:
gBrowser.selectedTab.previousSibling.setAttribute("dummy", true);
Cc["@mozilla.org/browser/sessionstore;1"]
.getService(Ci.nsISessionStore)
.persistTabAttribute("dummy");
4. Restart Firefox and check the "dummy" attribute
gBrowser.selectedTab.previousSibling.hasAttribute("dummy");
Actual results:
The "dummy" attribute on the unloaded tab is not saved.
Expected results:
The "dummy" attribute should be saved.
Attachment #692679 -
Flags: review?(ttaubert)
Comment 2•13 years ago
|
||
Comment on attachment 692679 [details] [diff] [review]
patch
Review of attachment 692679 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch, thanks for the patch! Should be simple to write a test for this, no?
Attachment #692679 -
Flags: review?(ttaubert) → feedback+
Added testcase.
Attachment #692679 -
Attachment is obsolete: true
Attachment #695480 -
Flags: review?(ttaubert)
Comment 4•13 years ago
|
||
Comment on attachment 695480 [details] [diff] [review]
patch v2
Review of attachment 695480 [details] [diff] [review]:
-----------------------------------------------------------------
The 'pending' attribute assertions fail when running the full test suite. The test completely fails when run in single mode. Sorry I currently don't have the time to look into why exactly it is failing. Thank you for writing the test and it would be great if you could take a look at the failures.
Attachment #695480 -
Flags: review?(ttaubert) → review-
What I can think of only is that browser.sessionstore.restore_on_demand is turned off. Is this the case?
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•