Giter Site home page Giter Site logo

Comments (2)

xabolcs avatar xabolcs commented on July 25, 2024

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.

from nightlytt.

whimboo avatar whimboo commented on July 25, 2024

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.

from nightlytt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.