Closed Bug 104244 Opened 23 years ago Closed 23 years ago

[RFE] add reload this/all tab(s) to context menu

Categories

(SeaMonkey :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mythdraug, Assigned: simmo)

Details

Attachments

(1 file)

Add two item to tab context menu

  "Reload this tab"
  "Reload all tabs"

Reload this tab is not redundant with reload button.  Any tab could
be reloaded, not just the current one.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Attached patch patch to fixSplinter Review
Looks good to me. r/sr=hyatt
Attachment #54697 - Flags: superreview+
+            var l = this.mPanelContainer.childNodes.length;
+            for (var i = 0; i < l; i++)
+              if (this.mTabContainer.childNodes[i] == aTab)
+                this.mPanelContainer.childNodes[i].webNavigation.reload(true);

Why do you have to enumerate the children to find aTab, just to use aTab?  Is
that just to ensure that we have a valid tab, because the same context menu
appears for the tab strip itself?  But if so, shouldn't we be preventing those
items from showing up in the menu at all if the popupNode is the tab strip?  (I
notice Close Tab and Close Other Tabs incorrectly appear in the menu for the tab
strip).

hyatt knows this code better than me, so if he doesn't think it should be
aTab.webNavigation.reload(true), r/sr=me...
(But if we wanted to double check we could always just check the localName, so
it seems like that should be changed.)
checking in for simm0@ii.net
Assignee: hyatt → simm0
Checking in resources/content/bindings/tabbrowser.xml;
/cvsroot/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml,v  <-- 
tabbrowser.xml
new revision: 1.8; previous revision: 1.7
done
Checking in resources/locale/en-US/tabbrowser.dtd;
/cvsroot/mozilla/xpfe/global/resources/locale/en-US/tabbrowser.dtd,v  <-- 
tabbrowser.dtd
new revision: 1.2; previous revision: 1.1
done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
timeless, did you resolve my question?
thx all
Status: RESOLVED → VERIFIED
reload(true) is wrong (it should be some kind of numeric flag).

This code also doesn't deal well with getting called for the tabstrip itself
(see bug 112697). Arguably the context menu code should deal with that, but
that's not the pattern used by the other context menu items.

Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: