Commit Graph
651 Commits
Author SHA1 Message Date
norris@netscape.com b84f4e2755 Fix 18553 [DOGFOOD] addEventListener allows sniffing keystrokes
Add checks to nsScriptSecurityManager::CheckCanListenTo that take
a principal and ensure that the currently executing script code
either is from the same origin as that principal or has the
UniversalBrowserRead privilege enabled. (chrome code has all
privileges enabled by default.) It's okay for the principal passed in
to be null. That just signifies a privileged window/document that only
can be listened to with privileges.

I added GetPrincipal/SetPrincipal methods to nsIEventListenerManager.
nsDocument::GetNewListenerManager sets a principal on the listener
manager when it creates one. Obviously there are other places that
create listener managers, but scripts seem to go through this one.

Another change is to save some memory usage. Currently I allocate an
array of PolicyType that is NS_DOM_PROP_MAX elements long.
Unfortunately, compilers appear to allocate four bytes for each
PolicyType, so the array takes around 2400 bytes. I've added changes
to use two bit vectors that should consume about 1/16 that space.

r=joki

There are also changes that push nsnull onto the JSContext stack when
entering a nested event loop.

r=jband
1999-11-25 05:28:18 +00:00
tbogard@aol.net 787dbc744e Removed implementation of nsIURLDispatcher. Changed the QI into a new interface map. 1999-11-24 10:04:13 +00:00
tbogard@aol.net 7560a8d35e Removed the SetURLDispatcher call. 1999-11-24 09:41:45 +00:00
tbogard@aol.net 617bb737a6 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
radha@netscape.com 6d218e8dde Fix for regressed bug # 9699. Comment out the code that removes partially
loaded pages from session History. r=law.
1999-11-23 23:29:58 +00:00
colin@theblakes.com 2888f6b289 Add MOZ_TIMER_LIBS to the link. r=shaver 1999-11-18 22:49:59 +00:00
warren@netscape.com 2faadce595 Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +00:00
warren@netscape.com d781c103fb Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
tbogard@aol.net ad685ae7bc Changed calls to nsIWebShell::GetRootWebShellEvenIfChrome() and further QI's to use the new nsIWebShell::GetTopLevelWindow(). 1999-11-16 20:05:21 +00:00
jdunn@netscape.com 7a2898a716 Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
norris@netscape.com 6e920731f8 * Fix 12124 [DOGFOOD] Reading user's preferences
* Implement site-specific security policies (bug 858)
r=mstoltz
* Use Recycle rather than delete[] to clean up Purify logs
r=law
1999-11-16 05:07:31 +00:00
tbogard@aol.net 2fcf0a2ac4 Changed places where container were set to use nsISupports instead of nsIContentViewerContainer. r=dp 1999-11-15 22:36:41 +00:00
tbogard@aol.net 3b595d6fe3 Changed references to nsIContentViewerContainer to nsISupports in the march to get rid of nsIContentViewerContainer. r=pavlov 1999-11-15 07:29:23 +00:00
saari@netscape.com 6126eea2ce Landing focus changes. R: joki 1999-11-13 05:16:33 +00:00
danm@netscape.com 375bc96cec Use new modal event filtering method on nsIWidget. Reset modal window flag when modal window is closed. part of fix for bug 14131. r:rods@netscape.com. 1999-11-12 23:46:39 +00:00
waterson@netscape.com 6edad3ae9a Bug 17839. Add timer_s.lib to the libraries link deps. 1999-11-11 05:51:53 +00:00
waterson@netscape.com 229e1b58d4 Bug 17839. Call mAppShell->Exit() on a timer callback to allow Quit() to cleanly exit the app on platforms where the event queue gets yanked. a=warren 1999-11-11 05:51:22 +00:00
dmose@mozilla.org 20621227af updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
waterson@netscape.com 0856387b0a Fix leak with nsCOMPtr. r=brendan, a=brendan 1999-11-05 00:44:10 +00:00
radha@netscape.com 5f86f10ee4 Fix for bug # 17893. Pass the url to nsISessionHistory::Add().Don't set
nsWebShell::mURL too early in the loading process.
r=law,nisheeth
1999-11-03 22:30:44 +00:00
davidm@netscape.com ee1d457026 12539 Crash when quitting browser while bookmark properties dialog r = saari nsINetPrompt implementation r morse 1999-11-03 05:25:21 +00:00
danm@netscape.com 985dfa35be oops! Observe() was checked in flawed in 1.90. gtk may one day have noticed. r:noman@odyssey.org 1999-11-03 02:29:59 +00:00
cls@seawood.org 824ba18df3 Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
danm@netscape.com b78e57cfc9 removing implementation of nsIShutdownListener. it was redundant, anyway. r:dp@netscape.com 1999-11-02 01:10:35 +00:00
dp@netscape.com 413290c171 Removing release on a service as this would be taken care by the
NS_WITH_SERVICE() macro. r=danm
1999-11-01 21:16:24 +00:00
morse@netscape.com e00a5cf60d provide compatibility with single signon, r=davidm 1999-10-29 04:30:38 +00:00
sspitzer@netscape.com ed995f5552 fix for #16231, r=mscott. make the file locator know about panels.rdf.
if <profile>/panels.rdf doesn't exist, copy the default to that location.
1999-10-29 04:02:25 +00:00
waterson@netscape.com 1d85771c88 Remove unused references to nsIXULChildDocument and nsIXULParentDocument. 1999-10-28 22:18:21 +00:00
radha@netscape.com 53522e1090 Fix for form values not maintained while going forward. bug # 16377. r=law 1999-10-28 20:29:43 +00:00
danm@netscape.com 224a3e9a7f moving initial content focus from OnEndDocumentLoad to Show. Reinstating SetSizeFromXUL. reduces new window flashing and allows gtk windows to size from JS. r:hyatt@netscape.com 1999-10-28 01:52:49 +00:00
law@netscape.com f38ef3edce Bug #14999; remove last vestiges of app core usage; r=sfraser@netscape.com 1999-10-28 01:41:16 +00:00
warren@netscape.com e7f9437164 Added nsIChannel::GetOriginalURI so that we can get back to the original chrome file (bug#17144). r=rpotts,mscott 1999-10-26 09:16:24 +00:00
law@netscape.com e83943be2f Bug #14999; last holdout that was using toolkit app core - changed to use OpenDialog; r=davidm@netscape.com 1999-10-25 23:02:05 +00:00
law@netscape.com 827c477d04 Bug #14999; use OpenDialog instead of toolkit app core; r=radha@netscape.com 1999-10-25 22:30:40 +00:00
radha@netscape.com 9633feab74 Turning off debug flag that got set in my previous checkin 1999-10-22 22:58:16 +00:00
radha@netscape.com 42ff357ab4 Clean up of Session History apis. Corresponding changes to the users of SH. r=mcafee. No bug #. 1999-10-22 20:48:07 +00:00
danm@netscape.com 6753e1b0be removing (unused) references to nsIWebShell.h. requested by buster@netscape.com, bug 16510, r:me 1999-10-21 22:47:50 +00:00
danm@netscape.com 51572a8a5f observe EventQueue creation and deletion. r:hyatt@netscape.com 1999-10-21 21:36:25 +00:00
danm@netscape.com 11c30e2bb9 moving Push/PopThreadEventQueue to nsIEventQueueService r:hyatt@netscape.com 1999-10-18 15:04:18 +00:00
peterl@netscape.com d25c79a078 Added namespace ID to the AttributeChanged notification
Part of the fix for Bug 15153
r=troy
1999-10-15 23:17:53 +00:00
radha@netscape.com f593eb3ddc fixing session history for frames. I accidently broke the behavior in
my monday's checkin. No bug #. r=law
1999-10-15 03:49:29 +00:00
mscott@netscape.com 7eeded8580 Bug #16115 --> addref the web shell window inside it's Close method to keep the web shell window from getting
deleted out from under us. This could happen because in closing the window, we are destroying a webshell which
could have the last outstanding reference to the webshell window.
r=dp
1999-10-13 02:47:56 +00:00
rjc@netscape.com 785d7b6657 Fix VC5 build bustage. 1999-10-12 23:09:09 +00:00
rjc@netscape.com 5fcab66c1b [performance] When profile manager is being used, don't read in bookmarks twice... by deferring hiddenwindow.xul loading until after profile manager is done. Review: danm and sspitzer 1999-10-12 22:20:28 +00:00
mscott@netscape.com 354d7f7753 Remove this file from the repository to fix the Mac buids.
The mac projects were looking in this folder and always finding the
stale nsISessionHistory.h file instead of using the idl generated
header file
r=davidm
1999-10-12 07:50:17 +00:00
radha@netscape.com 94438fd0e2 Build bustage in solaris 1999-10-12 05:57:03 +00:00
mscott@netscape.com 46584a9eb0 nsISessionHistory.idl needs to be in this project. i think this should fix Radha' build breakage for the mac. 1999-10-12 05:45:10 +00:00
radha@netscape.com a8f6a766e9 XPIDLising session history. bug # 15437. r=law 1999-10-12 04:40:59 +00:00
radha@netscape.com ac542609e5 XPIDised session history. Corresponding changes to users of nsISessionHistory.
Bug # 15437. r=law
1999-10-12 04:37:43 +00:00
waterson@netscape.com 7f6df0914a Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 02:10:08 +00:00