Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique user-defined name in the titlebar for each open window #63

Open
whimboo opened this issue Apr 4, 2012 · 2 comments
Open

Unique user-defined name in the titlebar for each open window #63

whimboo opened this issue Apr 4, 2012 · 2 comments

Comments

@whimboo
Copy link
Contributor

whimboo commented Apr 4, 2012

Originally filed as: https://bugzilla.mozilla.org/show_bug.cgi?id=704015

Attempted to assign a unique name for each current window

Actual results:

it failed. Only one userdefined name is now allowed and it applies globally to all current windows

Expected results:

An option for creating a unique user-defined name in the titlebar for EACH open window, eg, BUGS, 'Problem sites', etc., rather than just 1 user defined text which applies globally.

This would help hugely in managing windows and quickly accessing open pages; we often have 10 or more windows with distinctly different subject matters open concurrently.

There is NO addon usable in FF7 or later which allows the creation and retention of a unique user defined name to be prepended to the URI, URL etc in the TitleBar.

I respectfully suggest that this user defined variable window name option should be a part of FF or an addon, it is a MUST HAVE for power users, nightly build testers and others.

@xabolcs
Copy link
Collaborator

xabolcs commented Dec 8, 2012

With nsIDOMWIndowUtils there is chance to implement something like the requested feature.

Gecko 2 introduced windowID which can be queried:

var util = win.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
              .getInterface(Components.interfaces.nsIDOMWindowUtils);
var windowID = util.outerWindowID;

See windows related Code Snippets on MDN!
For Gecko 1.9.2 we could gracefully fail and return undefined for example.

Keeping the window specified titles could be in a hash:

var uniqueTitles = {};
uniqueTitles[windowIDOfwindowOne] = "Something specific string";
uniqueTitles[windowIDOfwindowTwo] = "Window 2 specific title";

With hash, storing would be more easier: serialize it with JSON into a new preference, example: nightly.titlebar.uniqueWindowTitles.

An issue could be the setting of the window specific string.
It would be nice if user would have the ability to set the specific strings for all window independently from the recent window.
For example dorando's keyconfig does have a dropdown list.

@whimboo
Copy link
Contributor Author

whimboo commented Dec 10, 2012

Using that method I don't think it will be persistent. At least when you restart the application all of your windows will get a new id. So probably we should make use of session store and attach a property onto a window. That would be persistent across browser sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants