Closed
Bug 682507
Opened 14 years ago
Closed 14 years ago
Expose tab.linkedBrowser.__SS_restoreState as a tab attribute to help style unloaded tabs
Categories
(Firefox :: Session Restore, enhancement)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 9
People
(Reporter: tabutils+bugzilla, Assigned: tabutils+bugzilla)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
4.54 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
Build ID: 20110811165603
Steps to reproduce:
1. Set browser.sessionstore.max_concurrent_tabs to 0 in about:config
2. Restart Firefox
Expected results:
I want to style the unloaded tabs with a lower opacity. Adding an attribute like "restoring" to reflect __SS_restoreState would help.
Updated•14 years ago
|
Severity: normal → enhancement
Attachment #560710 -
Flags: review?(dietrich)
Comment 2•14 years ago
|
||
Comment on attachment 560710 [details] [diff] [review]
patch
looks fine to me, f+. needs a test though. once you have a test for it, ask for final review.
Attachment #560710 -
Flags: review?(dietrich) → feedback+
Attachment #560710 -
Attachment is obsolete: true
Attachment #561507 -
Flags: review?(dietrich)
Comment 5•14 years ago
|
||
Sorry, I wasn't cc'd on the bug, so didn't see the follow-up comment! For future reference, check out the tests directories where the sessionstore code is - lots of examples there. Though, I presume that's what you did :)
Comment 6•14 years ago
|
||
Comment on attachment 561507 [details] [diff] [review]
patch v2
Review of attachment 561507 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/test/browser/browser_682507.js
@@ +4,5 @@
> +function test() {
> + waitForExplicitFinish();
> +
> + Services.prefs.setBoolPref("browser.sessionstore.restore_on_demand", true);
> + gBrowser.addTab("about:mozilla");
looks ok, r=me.
my one concern was that in the case where you actually depend on the web content loading in the tab, you'd want to listen for some event before continuing on with the test. however, in this case, it doesn't really matter.
Attachment #561507 -
Flags: review?(dietrich) → review+
Updated•14 years ago
|
Assignee: nobody → ithinc
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #561507 -
Attachment is obsolete: true
Keywords: checkin-needed
Updated•14 years ago
|
Flags: in-testsuite+
OS: Windows XP → All
Hardware: x86 → All
Comment 8•14 years ago
|
||
Comment on attachment 562304 [details] [diff] [review]
patch for checkin
>+++ b/browser/components/sessionstore/test/browser/browser_682507.js
>+ let ss = Cc['@mozilla.org/browser/sessionstore;1'].getService(Ci.nsISessionStore);
ss should already be available, head.js sets it.
>+ executeSoon(finish);
executeSoon shouldn't be needed here.
Comment 9•14 years ago
|
||
In fact, finish should be removed altogether along with waitForExplicitFinish...
Comment 10•14 years ago
|
||
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 9
Assignee | ||
Comment 12•14 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #9)
> In fact, finish should be removed altogether along with
> waitForExplicitFinish...
Thanks for the corrections. This is my first testcase.
Updated•14 years ago
|
Keywords: dev-doc-needed
Comment 13•14 years ago
|
||
Documented:
https://developer.mozilla.org/en/XUL/Attribute/pending
Updated:
https://developer.mozilla.org/en/Firefox/Updating_add-ons_for_Firefox_9#Theme_changes
https://developer.mozilla.org/en/XUL/tab
And listed on Firefox 9 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•