240 Commits

Author SHA1 Message Date
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
rods%netscape.com
ca25456113 Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi


git-svn-id: svn://10.0.0.236/trunk@86352 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:03:17 +00:00
pollmann%netscape.com
04dee7132e Bug 8065: Prevent crashing on infinitely recursive framesets, r=jst@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@86269 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 00:52:36 +00:00
jst%netscape.com
e0215f1fd4 Fixing bug 58753. Making document.referrer work for documents in [i]frames and window.open()'ed windows. r=mstoltz@netscape.com and pollmann@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@86138 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-03 01:17:00 +00:00
dcone%netscape.com
5556760ab2 Added nsIPrintContext interface.
Added this so you can now tell if your laying out to a printer.
r=attinasi sr=buster


git-svn-id: svn://10.0.0.236/trunk@84586 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 20:26:05 +00:00
dbaron%fas.harvard.edu
b4de65c19e Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@84233 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 19:22:22 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mstoltz%netscape.com
9351f77d32 Fixing 56009, exploit allowing XPConnect access. r,a=hyatt, sr=scc
git-svn-id: svn://10.0.0.236/trunk@81158 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:59:47 +00:00
pollmann%netscape.com
b7892bccb1 Bug 16346: Implement overflow:hidden support from frames and iframes. Fix by peterlubczynski, r=pollmann, sr=buster
git-svn-id: svn://10.0.0.236/trunk@80657 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 05:37:27 +00:00
danm%netscape.com
da8244bfdb fix horrible url loading regression introduced by previous revision. r=hyatt. bugs 44437,55275
git-svn-id: svn://10.0.0.236/trunk@80521 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:30:56 +00:00
hyatt%netscape.com
027949517d Fix for 44437. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@80223 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-02 23:23:55 +00:00
locka%iol.ie
b3b9b2c9a7 Changes to loadURI & reload methods on nsIDocShell, nsIWebNavigation. b=50949, r=radha, a=radha
git-svn-id: svn://10.0.0.236/trunk@79623 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 12:23: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
jst%netscape.com
f54ba5cc66 Removing static IID's (NS_DEFINE_IID()) and replace the static IID's with NS_GET_IID(), this cleans things up and simplifies my fix for nsbeta3+ bug 7515. r=pollmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78591 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 05:46:14 +00:00
jst%netscape.com
d6162316cc Fixing nsbeta3+ bug 48763. <frame src=' '> caused an infinite loop if the base URL for the frame happens to be the URL for the containing frameset. r=pollmann@netscape.com&nisheeth@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78500 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 06:56:15 +00:00
mstoltz%netscape.com
fc5da7534f Fixing exploits involving changing the location of a window and getting the wrong principal. Bug 48723, r=vidur
git-svn-id: svn://10.0.0.236/trunk@77748 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 05:53:32 +00:00
attinasi%netscape.com
4d92d67952 Fix for leak: have to release the style context after initializing the frame...
git-svn-id: svn://10.0.0.236/trunk@76932 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 01:22:26 +00:00
attinasi%netscape.com
a52967f7e1 Resolving style context for the htmlInnerFrame instead of using the parent frame's context. Also added some basic error checking... b=49739 r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76916 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 00:12:30 +00:00
scc%mozilla.org
a0a2b1b7fe fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@76727 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 22:23:46 +00:00
pollmann%netscape.com
e5357b4864 Bug 35986: document==NULL for FRAMEs created without SRC; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75528 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:23:48 +00:00
hyatt%netscape.com
5da5e40053 fix assert for dogfood bug#37854, r=danm
git-svn-id: svn://10.0.0.236/trunk@70469 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 21:08:27 +00:00
pollmann%netscape.com
4d8371e915 Bug 32746 (3 of 3): Make iframe borders respond to both css and frameborder attribute, un-reverse frameborder=yes/no, and misc clean up with nsCOMPtrs. r=harishd
git-svn-id: svn://10.0.0.236/trunk@70106 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 21:59:23 +00:00
dbaron%fas.harvard.edu
65a4685f64 Fix AtomImpl leaks (includes bug 32608). r=pollmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@69785 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 13:12:27 +00:00
pollmann%netscape.com
b49f7fb020 Bug 27383: Pass referer when loading iframe's document to allow javascript: urls - combine load methods, r=nisheeth
Bug 23014: Percent width on iframes allowed, r=karnaze (does not include percent height fixes)


git-svn-id: svn://10.0.0.236/trunk@69301 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 00:57:28 +00:00
rods%netscape.com
a54cc52332 Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66762 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:51:35 +00:00
scc%netscape.com
b5432ec86e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66103 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:18:29 +00:00
tbogard%aol.net
6eda3aac98 Use the docShell APIs to do the Load rather than nsIWebShell methods.
git-svn-id: svn://10.0.0.236/trunk@64816 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:26:21 +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
norris%netscape.com
17c637de9c Added intersection of principals when multiple scripts are encountered. r=norris
(this is mstoltz's checkin)


git-svn-id: svn://10.0.0.236/trunk@63539 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 04:12:56 +00:00
norris%netscape.com
09ff59d528 Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63404 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 17:48:12 +00:00
pierre%netscape.com
c84deb6d8c Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.

In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.


git-svn-id: svn://10.0.0.236/trunk@63284 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 10:15:13 +00:00
norris%netscape.com
fab29b0e70 Files:
caps/idl/nsICertificatePrincipal.idl
	caps/idl/nsIPrincipal.idl
	caps/src/nsBasePrincipal.cpp
Implement the ability to manipulate multiple capabilties simultaneously.
r=mstoltz@netscape.com

Files:
	caps/src/nsCodebasePrincipal.cpp
Codebase equality should be based upon origin, not full path.
r=mstoltz@netscape.com

Files:
	caps/src/nsScriptSecurityManager.cpp
Change URI checking to deny based upon scheme rather than allow based upon
scheme for greater flexibility.
r=mstoltz@netscape.com

Files:
	dom/public/nsDOMPropEnums.h
	dom/public/nsDOMPropNames.h
	dom/src/base/nsGlobalWindow.cpp
	modules/libpref/src/init/all.js
Fix bug 20469 Seeing JS functions and global variables from arbitrary host
r=vidur@netscape.com

Files:
	dom/src/base/nsJSUtils.cpp
	dom/src/base/nsJSUtils.h
	dom/src/base/nsJSEnvironment.cpp
	dom/tools/JSStubGen.cpp
	layout/base/src/nsDocument.cpp
	layout/html/content/src/nsGenericHTMLElement.cpp
Improve performance by removing NS_WITH_SERVICE call for every DOM access.
Propagate XPCOM failure codes out properly.
r=vidur@netscape.com

Files:
	layout/html/document/src/nsFrameFrame.cpp
Fix 27387 Circumventing Same Origin security policy using setAttribute
r=vidur@netscape.com


git-svn-id: svn://10.0.0.236/trunk@62633 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 06:32:42 +00:00
tbogard%aol.net
2011f00f70 Changed nsHTMLFrameInnerFrame to hold on to a subShell that is an nsIBaseWindow instead of a webShell. This paves the way for holding different types of objects. Also gets rid of that stupid nsIWebShell interface. :) When creating the docShell use the new docShell interfaces rather than the old webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62571 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:41:04 +00:00
buster%netscape.com
24b2c8d931 fixed bug 27161 by adding interfacs onto nsIPresShell to get/set the "subshell" for an nsIContent
this part of the fix is temporary, but sufficient for beta.  it calls the pres shell to do the initial association.
after beta, this will be done by the frame construction code.
r=travis
a=jar


git-svn-id: svn://10.0.0.236/trunk@62171 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 23:16:43 +00:00
tbogard%aol.net
495826cccc nsIPref is no longer passed around through inits on webshell, content viewers and presContext. In places where it is needed, it can be retrieved from the service manager. I removed a number of the getters and setters for prefs as the prefs will be the same from the service manager so we don't need getters. r=waterson a=rickg
git-svn-id: svn://10.0.0.236/trunk@62038 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 07:13:02 +00:00
pollmann%netscape.com
8a83557c05 Bug 28670: Move scroll methods from webshell to docshell r=travis a=rickg
git-svn-id: svn://10.0.0.236/trunk@61848 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 06:51:48 +00:00
norris%netscape.com
bf96355ad4 Fix 28612 META Refresh allowed in Mail/News
r=mstoltz,a=jar
Fix 28658 File upload vulnerability
r=vidur,a=jar


git-svn-id: svn://10.0.0.236/trunk@61523 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:34:40 +00:00
pollmann%netscape.com
26c8b9b673 Bug 14827: Adding a comment, removing unused code r=harishd a=rickg
git-svn-id: svn://10.0.0.236/trunk@61346 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 02:32:38 +00:00
tbogard%aol.net
498b17c6b6 Made sure we set the tree item before adding it to the parent. Then we also must notify the tree owner of the addition of the content shell after it has been added. This the bugs having to do with treeOwner showing up (27087, 2719, 25951). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@60298 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 07:04:09 +00:00
norris%netscape.com
bf2113353a Fix 24217 Access to functions in chrome: protocol using IFRAME
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@58787 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 15:29:43 +00:00
pollmann%netscape.com
f70927eba7 Bug 16218: Create webshell for frames with no src to allow js manipulation r= harishd
git-svn-id: svn://10.0.0.236/trunk@57079 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-07 06:18:48 +00:00
tbogard%aol.net
b5cb13131e Fixing some places when talking to the webshell object to start talking through the new docshell interfaces.
git-svn-id: svn://10.0.0.236/trunk@56167 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:09:29 +00:00
pollmann%netscape.com
a31c8c8d4c Bug 11762: Create a webshell for an iframe even if size is 0x0. r=evaughan a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56002 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 00:09:10 +00:00
hyatt%netscape.com
7e24c61109 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy


git-svn-id: svn://10.0.0.236/trunk@55321 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 23:49:50 +00:00
tbogard%aol.net
067920c238 1.) WebShell no longer implements nsIScriptContextOwner.
2.)  WebShell now implements the new nsIScriptGlobalObjectOwner.
3.)  WebShell supports GetInterface to nsIScriptGlobalObject.
4.)  Documents no longer carry around a reference to nsIScriptContextOwner.  Instead they hold on to a nsIScriptGlobalObject.  nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject().  Same change to the set methods.


git-svn-id: svn://10.0.0.236/trunk@55175 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 09:24: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
tbogard%aol.net
50834581e0 nsFrameFrame now uses the nsIBaseWindow interface off the WebShell object to do positioning stuff instead of nsIWebShell interface. Also changed the call to GetTitle to properly free the returned pointer as an internal const pointer is no longer returned.
git-svn-id: svn://10.0.0.236/trunk@54495 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-27 03:06:59 +00:00
tbogard%aol.net
ae5a81e394 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00
tbogard%aol.net
80ea367e86 Changed the concept of the webshell holding an mChromeElement object to it holding a nsIChromeEventHandler interface. This is more generic and allows other apps to plugin nicer into the API.r=hyatt
git-svn-id: svn://10.0.0.236/trunk@54270 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 09:57:47 +00:00