91 Commits

Author SHA1 Message Date
jst%netscape.com
262beabfdd Fixing bug 130265. Don't stop current network activity when loading javascript: URL's unless the URL results in data to parse. r=adamlock@netscape.com, sr=darin@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@142481 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 01:23:26 +00:00
jst%netscape.com
394e9fef7e Fixing bug 202994. Make sure the proper security check is done when converting the result of a JS expression in a javascript: URL to a string. r=mstoltz@netscape.com, sr=brendan@mozilla.org, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@142350 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-12 22:23:52 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
darin%netscape.com
2b1d90b6ed modifications for bug 176919 "async streams" r=dougt,gordon sr=sspitzer a=valeski,asa
git-svn-id: svn://10.0.0.236/trunk@136572 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 02:15:14 +00:00
dbaron%dbaron.org
0653a5fa91 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135993 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:35:36 +00:00
nhotta%netscape.com
42e97995a2 Changed to use uconv util function to do the unescape which
checks for valid UTF-8 and fallback to the doc charset,
bug 161479, r=shanjian, sr=jst, a=dbaron.


git-svn-id: svn://10.0.0.236/trunk@129064 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-08 15:08:45 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
andreas.otte%debitel.net
97eb045c70 fix bug 166175 [javascript: urls as frame source no longer work] this
is a regression from bug 163225, cloneing the url in case of an
existing base url makes no sense and fixing bug 163225 exposed that. Also
fixing a leak in nsViewSourceHandler in case setting the spec
fails. r=bzbarsky, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128682 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-02 22:15:07 +00:00
jst%netscape.com
4c6e97ddb3 Checking in rpotts' fix for bug 158128. Plugging javascript: URL related leak found by keeda@hotpop.com. r=peterv@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@127807 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-21 23:01:23 +00:00
nhotta%netscape.com
7da2a94cbd Change nsJSProtocolHandler to listen to originCharset to apply conversion if necessary,
also changed the callers to set originCharset,
bug 137182, r=caillon, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125650 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:28:28 +00:00
locka%iol.ie
1a423ebcd7 Fix for opening javascript: popup windows in embedding. b=149307 r=adamlock@netscape.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124193 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:07:32 +00:00
andreas.otte%debitel.net
0e2a226965 fix bug 104081 [javascript: URL cant submit because of %20 instead of
SPACE] the script in a javascript url was not getting unescaped before
being evaluated by the js engine, r=jst, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@117228 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 21:41:06 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
dougt%netscape.com
5aa996cd82 Fixes 127918. Mime Service was being accessed from a non-ui thread. This causes all kinds of problems. Found that content type is not needed while opening most stream io's. Removes content type result from nsIStreamIO::Open(). Added atrribute content type nsIStreamIO. Fixes callers. r=gordon@netscape.com, sr=darin@netscape.com, a=asa@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@116447 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 00:34:54 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
rginda%netscape.com
a2ecfff1f8 bug 124076, "nsJSProtocolHandler.cpp doesn't set filename", sr=shaver, r=jband
compile javascript: urls with an appropriate filename/line number


git-svn-id: svn://10.0.0.236/trunk@113962 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 01:06:25 +00:00
sfraser%netscape.com
67a35c1a08 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:14:20 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
612ee840db License changes, take 2. Bug 98089. mozilla/dom/.
git-svn-id: svn://10.0.0.236/trunk@103755 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:43:09 +00:00
darin%netscape.com
76c7355ac1 checking bbaetz's patch for bug 89500 "SOCKS: only http|https re-directted in (post Mozilla 0.9.2)"
patch=bbaetz, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@102859 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 02:21:05 +00:00
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