Changes

Jump to: navigation, search

Add an Infobar style warning for window resize/move

3,609 bytes removed, 18:24, 5 October 2008
no edit summary
== 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) ==
* [[User:Twlai1|Tony Lai]]
 
== Project Contributor(s) ==
 
* David Humphrey (Seriously!)
* [[User:pplam3 | Patrick Lam ]] (Wrote resize html)
 
== Project Details ==
'''10/05/2008''' -
*[http://mxr.mozilla.org/mozilla-central/source/content/events/src/nsEventDispatcher.cpp#644 nsEventDispatcher]'s nsEventDispatcher::DispatchDOMEvent() function needs to recognize our event, DOMWindowResized.
* A similar idl file to define a DOMWindowResized event /dom/public/idl/events/nsIDOMPopupBlockedEvent.idl
 
'''10/01/2008''' -
* \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 ==
'''10/01/2008''' -
* Fresh Month, Fresh Updates, and more! Fresh plan!
'''09/29/2008''' -
* Bad news? Looks like I'll need to familiarize myself with the XPCOM API Reference if I want to be able to call Javascript code from the nsWindow.cpp..
'''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/]
'''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/25/2008''' - '''What to expect for 0.1 release?'''
* I hope to have a working infobar that displays whenever a site tries to resize the current window. Hopefully I'll have an allow option available. For future releases I will need to allow users to add sites to an exception list, and a way to set it to allow by default.
'''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. <br />But that's not all. These are probably the things I expect will need to be covered (from my viewpoint)
<blockquote>
<ul>
<li>Changes to the infobar to accomodate this </li>
<li>An option to enable/disable the infobar from popping up in browser config (users know it as about:config)</li>
<li>'''Would be nice to know what else I'd need. Anyone with information please let me know'''</li>
</ul>
</blockquote>
* Reading Documentation on Mozilla's developer site. There's a lot to read: [http://developer.mozilla.org/en/Mozilla_Hacker%27s_Getting_Started_Guide 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.
 
== Links to keep ==
[http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#3136 Set Inner Width function]<br />
[http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#4005 Can Move Resize Windows function]<br />
[http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#4760 FirePopupBlockedEvent()]<br />
[http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#4938 Call to FirePopupBlockedEvent()]<br />
[http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#835 The place to add eventlisteners]<br />
 
== Related Bugs ==
[https://bugzilla.mozilla.org/show_bug.cgi?id=421172 Bug 421172: Infobar for Offline Storage only displayed on page reload] - Something to do with the infobar <br />
[https://bugzilla.mozilla.org/show_bug.cgi?id=186708 Bug 186708: don't allow web sites to resize windows with toolbars (by default)] - Looks kinda dead
1
edit

Navigation menu