Commit Graph

71 Commits

Author SHA1 Message Date
valeski%netscape.com
8db35965a8 r=dbaron, sr=dougt. 97667. nsIInterfaceRequestor is now frozen. nsIInterfaceRequestorUtils.h is now required if you want to use do_GetInterface() for convenience. The two were split because the stuff that is now in nsIInterfaceRequestorUtils.h wasn't ready for freezing. Also, .idl files should just contain interface defs anyway.
git-svn-id: svn://10.0.0.236/trunk@102327 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:28:38 +00:00
yokoyama%netscape.com
f8474b312c Bug 40469:
Using proper UTF8toUCS2 converter
r/sr=vidur; /a=asa


git-svn-id: svn://10.0.0.236/trunk@102121 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:56:50 +00:00
mstoltz%netscape.com
7bf513acb6 Bug 92061 - allow javascript: URLs to be targeted at about:blank windows.
Relaxing too-strict security policy. r=rginda, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@102096 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:01:10 +00:00
rpotts%netscape.com
5478c3dde3 Fix warnings...
git-svn-id: svn://10.0.0.236/trunk@101495 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 08:13:04 +00:00
rpotts%netscape.com
78f013faba bug #92425 (r=adamlock, sr=jst). OnLoad() handler which executes a javascript URL causes an infinite loop...
git-svn-id: svn://10.0.0.236/trunk@101489 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:20:53 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
andreas.otte%primus-online.de
e9654a3ac3 bug 40670 [URL: resolution of protocol:/path] checking in the groundwork to have an easy fix if we ever decide to support these kind of deprecated relative urls. For that a new attribute URIType is added to nsIProtocolHandler and its implementations to store some protocol/scheme dependend information to have enough information to allow correct parsing. r=darin@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@100515 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 20:42:57 +00:00
valeski%netscape.com
d1287b8db6 91365. r=dougt, sr=hyatt. nsIScriptGlobalObject->GetContext() can legitimately return NS_OK *and* a nsnull outparam. Various callsites were not respecting the nsnull out param and this patch gracefully handles those cases.
git-svn-id: svn://10.0.0.236/trunk@99570 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-19 05:48:49 +00:00
mstoltz%netscape.com
fd211023d2 Bug 77485 - defining a function in another window using a targeted javascript:
link. Prevent running javascript: urls cross-domain and add a security check for adding
and removing properties. r=harishd, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@99171 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 07:08:26 +00:00
rpotts%netscape.com
883271dbd1 bug #65777. This fixes a regressoion caused by the last patch - which broke javascript bookmarklets
git-svn-id: svn://10.0.0.236/trunk@98826 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 19:40:23 +00:00
rpotts%netscape.com
313254b6e9 bug #65777 (r=jst, sr=vidur). Reworked javascript: protocol so script execution is synchronous inside of AsyncOpen()
git-svn-id: svn://10.0.0.236/trunk@98221 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 00:40:45 +00:00
dougt%netscape.com
4b7b8b12ca Fixes bug 83401. r=gagan, darin, sr=vidur, a=blizzard. Add port blacklisting to necko
git-svn-id: svn://10.0.0.236/trunk@96470 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 00:10:09 +00:00
pinkerton%netscape.com
d4a23a91fd separating jsconsole into its own component. r=damn/sr=hyatt bug# 73127
git-svn-id: svn://10.0.0.236/trunk@94557 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 01:52:11 +00:00
jst%netscape.com
43eee52859 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94242 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:42:36 +00:00
kandrot%netscape.com
2f7e9262c9 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775.
git-svn-id: svn://10.0.0.236/trunk@94028 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 05:33:37 +00:00
pinkerton%netscape.com
56ab94ca43 use openDialog instead of open to get around security manager when opening console. r=rginda/a=asa, bug 59748
git-svn-id: svn://10.0.0.236/trunk@92956 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 22:35:53 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
scc%mozilla.org
e5e006543d if you want a pointer to the characters, you're going to have to |.get()| it
git-svn-id: svn://10.0.0.236/trunk@78957 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:48:08 +00:00
vidur%netscape.com
b10d4adc57 Fix for bug 46861. nsIDOMWindow is now split into two interfaces: a public interface (still called nsIDOMWindow) for embedders and an internal interface (nsIDOMWindowInternal) for internal use. The union of the two interfaces is still visible from JavaScript. r=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77828 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:54:35 +00:00
scc%mozilla.org
b9749d26ca fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@76712 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 20:01:04 +00:00
brendan%mozilla.org
0bbe899178 Avoid costly GetScheme on nsSimpleURI, and avoid yet another "javascript:" string literal and the consequent PL_strcasecmp call, in favor of a fast NUL first-char test.
git-svn-id: svn://10.0.0.236/trunk@74143 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 02:30:16 +00:00
dougt%netscape.com
bf15c34b53 I IDL-ifying the nsProxyObjectManager.
I have updated all users that I found
grepping the source tree.

r=valeski@netscape.com
a=waterson@netscape.com
b=43131

Also checking in changes to the window's embed test which is NOT
hooked up to the build system.


git-svn-id: svn://10.0.0.236/trunk@73129 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:03:10 +00:00
brendan%mozilla.org
39c808b988 Restore "javascript:\n"-in-location-brings-up-console compatibility (r=mccabe@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@72188 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 04:57:49 +00:00
mstoltz%netscape.com
ab175b2de3 Fix for bug 31818. Dogfood. r=brendan
git-svn-id: svn://10.0.0.236/trunk@72152 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 23:56:30 +00:00
jst%netscape.com
9bc1bb4964 Checking in patch from Vidur that fixes part of nsbeta2+ bugs 34667, 36745 and 38537, this fixes a crash associated with javascript: URLs and the fact that javascript: URLs are sometimes invoked multiple times. r=me.
git-svn-id: svn://10.0.0.236/trunk@71164 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 13:57:02 +00:00
warren%netscape.com
c22d12ae9b Bug 34217. Making js protocol not clear window when it returns no result.
git-svn-id: svn://10.0.0.236/trunk@66661 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:18:15 +00:00
warren%netscape.com
40e0941ace Fixed refcounting bug 35794.
git-svn-id: svn://10.0.0.236/trunk@65962 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 07:18:36 +00:00
jst%netscape.com
d7813a8ad1 Reorder member initialzers to fix fompiler wirknings.
git-svn-id: svn://10.0.0.236/trunk@64934 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 13:54:45 +00:00
scc%netscape.com
6dd035308a making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64926 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 08:22:56 +00:00
jst%netscape.com
fe11dafadf Add null ptr checks to avoid crashing, this fixes #30372. r=av@netscape.com
git-svn-id: svn://10.0.0.236/trunk@64653 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 00:31:44 +00:00
warren%netscape.com
9fa657f1cd Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
av%netscape.com
bd3e898b0f Fixing null-pointer access causing variuos crashes, bug #30372, r=jst
git-svn-id: svn://10.0.0.236/trunk@63884 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 21:42:23 +00:00
norris%netscape.com
2018e8127d Fix
28387 nBookmarking javascript: URLs is dangerous
32343 Components object appears to be accessible via javascript: u
31707 Crash when logging into hotoffice.com
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63650 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 23:16:55 +00:00
norris%netscape.com
732190b52e Remove mURL from nsWebShell, and GetURL from nsIWebShell.
r=travis


git-svn-id: svn://10.0.0.236/trunk@62618 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 02:57:39 +00:00
norris%netscape.com
36450a3f42 Fix 25062 Reload vulnerability
25206 Reload vulnerability #2
Implement grant dialogs and persistence for capabilities.
most r=mstoltz, some code from morse w/ r=norris


git-svn-id: svn://10.0.0.236/trunk@60281 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 04:56:56 +00:00
norris%netscape.com
6fc5a6608b Fix bug #25864 watch() vulnerability
r=vidur,rogerl


git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
warren%netscape.com
37ebe73b24 Using generic module.
git-svn-id: svn://10.0.0.236/trunk@59002 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 02:42:07 +00:00
vidur%netscape.com
c204a495ce Fixed typo in JS protocol registration so that we now deal with mocha: URLs as well. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@58883 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 04:04:40 +00:00
norris%netscape.com
0dd1063455 Fix 23227 Document object vulnerability
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@58789 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 15:33:57 +00:00
norris%netscape.com
e4653042f2 Files:
caps/include/nsScriptSecurityManager.h
	caps/src/nsScriptSecurityManager.cpp
	modules/libpref/src/init/all.js
Fix
24565 nsScriptSecurityManager::GetSecurityLevel() is a performance
24567 re-write DOM glue security checks to avoid NS_WITH_SERVICE()
r=waterson

Files:
	dom/src/base/nsGlobalWindow.cpp
	layout/base/src/nsDocument.cpp
	layout/base/src/nsGenericElement.cpp
Fix assertion failure for 1-character property names.


Files:
	dom/src/jsurl/nsJSProtocolHandler.cpp
	webshell/src/nsDocLoader.cpp
Fix 18653 "javascript:" URLs cross windows problems (probably regressi
r=nisheeth

Files:
	layout/events/src/nsEventListenerManager.cpp
Fix
23834 document.onkeypress allows sniffing keystrokes
24152 document.onclick shows links from other window
r=joki


git-svn-id: svn://10.0.0.236/trunk@58429 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-23 04:23:14 +00:00
pp%ludusdesign.com
b5787cf895 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com


git-svn-id: svn://10.0.0.236/trunk@57423 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:49:15 +00:00
warren%netscape.com
c7d8a4a439 Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408
git-svn-id: svn://10.0.0.236/trunk@55285 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 10:01:32 +00:00
tbogard%aol.net
2a3aa9fcb8 Fixes to get rid of relying on webShell implementing nsIScriptContextOwner. It now implements nsIScriptGlobalObjectOwner or can do a GetInterface to nsIScriptGlobalObject.
git-svn-id: svn://10.0.0.236/trunk@55198 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 19:02:31 +00:00
norris%netscape.com
809eeca85a Fix bug 18636 java script security problem when accessing my.netscape.com/
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@55118 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 23:56:25 +00:00
norris%netscape.com
1ffa0ae294 Fix
20257 unable to edit existing images in editor due to JS error
	19933 JavaScript "window.location" core dumps in CAPS
Back out previous changes for enforcing security on listeners and go with a
simple restriction of access to the method for adding listeners.
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@54940 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:23:22 +00:00
warren%netscape.com
51881fbcea Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms.
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +00:00
dougt%netscape.com
69329e38fe Fix for 18078. R=mstoltz,warren
git-svn-id: svn://10.0.0.236/trunk@54638 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:14:55 +00:00
warren%netscape.com
cbcd671c5d Removed the nsICapabilities interface in favor of nsIInterfaceRequestor.
git-svn-id: svn://10.0.0.236/trunk@53856 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 07:36:41 +00:00
warren%netscape.com
d8627fe912 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
git-svn-id: svn://10.0.0.236/trunk@53761 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:14:52 +00:00
norris%netscape.com
331cf153db * 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


git-svn-id: svn://10.0.0.236/trunk@53631 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 05:07:31 +00:00