Difference between revisions of "Add an Infobar style warning for window resize/move"
(→Project Details) |
(→Project News / Updates) |
||
Line 30: | Line 30: | ||
== Project News / Updates == | == Project News / Updates == | ||
+ | '''09/24/2008''' - | ||
+ | * I've found the place where infobar text is displayed, and how it is displayed.<br /> The text can actually be found in a file "\src\browser\base\content\browser.xul". This is what I will use to define a new set of text for a resize event. <br /><br />In the meantime I am still looking for a way to cause the resize event to display an infobar | ||
'''09/21/2008''' - | '''09/21/2008''' - | ||
* For those who have trouble viewing the source code (It IS very overwhelming at first): [http://mxr.mozilla.org/ http://mxr.mozilla.org/] | * For those who have trouble viewing the source code (It IS very overwhelming at first): [http://mxr.mozilla.org/ http://mxr.mozilla.org/] |
Revision as of 14:28, 25 September 2008
Contents
Name of Project
Add an Infobar style warning for window resize/move
Description
Many (poorly behaved) web sites attempt to move and/or resize your browser window. It is possible to stop this behaviour (cf. dom.disable_window_move_resize) but it would be nice to have an infobar that informed the user that a web page attempted to move/resize the window, and allow it or ignore it (default). This behaviour is similar to the current Pop-up Blocker already present in Firefox. NOTE: it is not clear whether such a feature would be accepted in the tree or if this would need to be done as an extension.
Leader(s)
Project Contributor(s)
- None
Project Details
09/22/2008 -
- It is possible to trigger the event simply by writing code that resizes the window (using SetPositionAndSize I believe?)
09/21/2008 -
- Found two files which might have something to do with this:
dom\src\base\nsGlobalWindow.cpp
dom\src\base\nsGlobalWindow.h
I don't know how useful these files are yet.
- \widget\public\nsGUIEvent.h contains details on the windows_resize event
- The name of the event dealt with is called: nsSizeEvent, a class inherited from nsGUIEvent. A base event.
Project News / Updates
09/24/2008 -
- I've found the place where infobar text is displayed, and how it is displayed.
The text can actually be found in a file "\src\browser\base\content\browser.xul". This is what I will use to define a new set of text for a resize event.
In the meantime I am still looking for a way to cause the resize event to display an infobar
09/21/2008 -
- For those who have trouble viewing the source code (It IS very overwhelming at first): http://mxr.mozilla.org/
09/18/2008 -
- Starting a Project Plan. Great idea Dave!
09/14/2008 -
- Created Project page for this project. Its a good reason to keep yourself up to date on the weekly schedule!
Project Plans
09/21/2008 -
- Now that I know the name of the event, I need to find a way to cause it to trigger an infobar.
But that's not all. These are probably the things I expect will need to be covered (from my viewpoint)
- Changes to the infobar to accomodate this
- An option to enable/disable the infobar from popping up in browser config (users know it as about:config)
- Would be nice to know what else I'd need. Anyone with information please let me know
- Reading Documentation on Mozilla's developer site. There's a lot to read: here
09/18/2008 -
- First step would be to see how infobars work in Mozilla. I need to see what triggers one, how they are displayed as well as how they can be used. If they can alter the content on a page, that would be an interesting find also.
- Would be a good idea to also look up what event handlers there are.