Commit Graph

666 Commits

Author SHA1 Message Date
uid502
1cfabd35d3 Bug 190735. Final patch for deCOMtamination of core nsIFrame methods! rs=dbaron 2003-09-23 17:05:29 +00:00
caillon%returnzero.com
96e5f2e4df Bug 165653
mozilla/dom depends on mozilla/xpfe/components/sidebar (nsISideBar)
r=bryner@brianryner.com
sr=jst@netscape.com
2003-09-13 19:54:41 +00:00
timeless%mozdev.org
9658f79cee Bug 217896 ASSERTION: nsMemoryImpl::Alloc of 0: 'size' in GlobalWindowImpl::Unescape
r=caillon sr=jst
2003-09-11 01:42:53 +00:00
timeless%mozdev.org
323f01b140 Bug 217886 frame structure gets lost in builds since 20030826
patch by mpconnor@rogers.com r=bz sr=bz a=brendan
2003-09-04 02:23:20 +00:00
caillon%returnzero.com
f8e8aed8a7 Backing out the patch to bug 83536.
I will reland this when 1.6a re-opens.
r+sr=jst@netscape.com
a=chofmann
2003-08-22 03:06:53 +00:00
hyatt%mozilla.org
ecfebf6684 Patch the remaining places that use _content to also support _main, r=brendan, sr=ben 2003-08-04 21:52:22 +00:00
hpradhan%hotpop.com
2ad76c90d0 bug 212415 : crash while closing a javascript alert. r=peterv sr=jst 2003-08-01 03:40:24 +00:00
bzbarsky%mit.edu
5fa37ec6f3 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
2003-07-28 21:35:53 +00:00
caillon%returnzero.com
cbfa9bcf5a Bug 213912
If getting the a chrome document's principal fails, handle the error and clean up the navigator object's holder.
r+sr=bzbarsky@mit.edu
2003-07-26 08:16:44 +00:00
caillon%returnzero.com
91b7c60bee Bug 83536.
Merge script principal implementations into one class.
Should reduce footprint, speed up calls to caps a little bit, and fixes several memory leaks.
Also fixes bugs 211174 and 211263
r=jst@netscape.com
sr=bzbarsky@mit.edu
moa=mstoltz@netscape.com (he looked at an earlier patch and said it looked fine, and will do a retroactive review when he returns from vacation as well)
2003-07-24 05:15:20 +00:00
jaggernaut%netscape.com
83c571e877 Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron 2003-07-20 07:47:59 +00:00
cbiesinger%web.de
0838577bf0 212532 patch by riceman+bmo@mail.rit.edu r=biesi,caillon sr=bz
Getting window.history returns null after the first attempt (bug 209866 regression)
2003-07-12 21:23:40 +00:00
danm%netscape.com
b6c4ce13d2 also check for popup window abuse in the internal Open method. bug 210560 r=brendan,jst 2003-06-25 23:38:45 +00:00
jst%netscape.com
abefba9053 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com 2003-06-24 21:43:01 +00:00
bzbarsky%mit.edu
0b4e64910c Trying to fix orange. We were only setting the out param in cases when we
tried to allocate the object for these three objects...
2003-06-21 09:36:03 +00:00
caillon%returnzero.com
4e226fa4ff I just noticed a few potential crashes with my patch for bug 209866. Fixes those and a few minor cleanup issues. No bug for this patch. r+sr=bzbarsky on IRC 2003-06-21 07:15:32 +00:00
caillon%returnzero.com
008f94e6a2 Bug 209866 - Use nsRefPtr for non-COM refcounted members in GlobalWindowImpl and NavigatorImpl
r=sicking, sr=jst
2003-06-20 23:51:46 +00:00
mstoltz%netscape.com
6fc28b1bac Bug 184618 - allow scripts to close a script-generated window even if its opener has been set to null. r=heikki, sr=jst. 2003-06-20 22:44:33 +00:00
stephend%netscape.com
e66ea98b97 Grammatical error. It's is contractive; its is possessive. 2003-06-19 00:08:29 +00:00
caillon%returnzero.com
b2badfa9f7 Bug 163645 - User defined properties of window.navigator are not remembered when a new page is loaded.
Enable this for websites within the same domain only.
Also, fixes CheckSameOriginPrincipal to just check the principals, and not care whether we have anything on the JS stack.
r=mstoltz, sr=jst
2003-06-18 23:48:57 +00:00
alecf%flett.org
b7fa256d74 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
2003-06-17 16:40:34 +00:00
bzbarsky%mit.edu
f55576240c unescape() needs to convert from UTF-16 to page encoding properly, instead of
just using ToNewCString().  Bug 200984, r=smontagu, waldemar, sr=jst
2003-06-17 01:09:41 +00:00
caillon%returnzero.com
2df173e9c8 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
alecf%flett.org
2751c6b097 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
2003-06-11 18:16:03 +00:00
jst%netscape.com
dd01342a24 Fixing bug 205474. Making window.open() (and other ways to target things into existing windows) not reuse already closed windows. r=caillon@aillon.org, sr=bzbarsky@mit.edu 2003-05-29 00:48:35 +00:00
mstoltz%netscape.com
4ccdb6f4c5 Bug 159424 - Don't clear scope of global object when loading the first document in a window, if the document has the same origin as the calling script. r=heikki, sr=jst, a=asa 2003-05-05 20:55:37 +00:00
varga%netscape.com
7967318ca3 Fix for bug 189719. Automatic image sizing: Use a custom magnifying glass cursor.
r=dbaron, sr=roc, a=sspitzer
2003-05-02 22:23:55 +00:00
peterlubczynski%netscape.com
76c4556089 Fixing 169951, crash caused by plugin calling window.close() from an event because we destroy the frame tree and plugin's native window. This fix puts that destruction caused by a window.close() from Javascript on a PLEvent. r=jkeiser sr=jst, a=asa 2003-04-25 22:24:37 +00:00
sfraser%netscape.com
581ad0afe8 Fix window.find() to start searching in the window it was called on, not the focussed frame. Part of bug 118657, r=mstolz, sr=jst. 2003-04-19 00:49:11 +00:00
roc+%cs.cmu.edu
c699b9d44d Bug 198987. Fix regression by making pageXScroll and pageYScroll return 0 and succeed even when there's no scrolling view. r+sr=bzbarsky 2003-04-18 13:52:49 +00:00
danm%netscape.com
4d9279dc54 use new popupblocked domevent. bug 199705 r=jaggernaut,jst 2003-04-16 00:00:55 +00:00
sfraser%netscape.com
d5e2e8f4ac Fix regressions from bug 201560: forward/back reversal on key presses, and an annoying assertion. r=dbradley/brade, sr=peterv. 2003-04-15 19:55:10 +00:00
roc+%cs.cmu.edu
de942543e3 Bug 198987. Prevent smooth scrolling rounding small partial increments down to 0. Add scrollMaxX/scrollMaxY properties to JS window object so mailnews can use a more robust way to detect when the message is scrolled to the bottom of its window. r=bzbarsky,sr=jst 2003-04-15 13:40:46 +00:00
sfraser%netscape.com
2ce89db51a Fix bug 201560: reimplement the DOM window controller using shared controller code, and a singleton nsIControllerCommandTable. This reduces the number of string compares when updating commands, and is cleaner. Include some string cleanup in SetCursor() to reduce codesize. r=brade/jkeiser, sr=jst. 2003-04-12 03:08:23 +00:00
bzbarsky%mit.edu
f742557433 Use const statics for greater good. Bug 201251, r=jst, sr=alecf 2003-04-09 00:52:48 +00:00
shliang%netscape.com
6fb1258807 195924, 195921, 195928 - popup blocking changes to use whitelisting only and provide info dlg when popup first encountered. r=danm, sr=jag. 2003-03-26 02:03:13 +00:00
seawood%netscape.com
d056fe18d0 Resurrect --disable-oji
Bug #197924 r=peterl sr=alecf
2003-03-25 06:54:52 +00:00
jst%netscape.com
320062efa6 Fixing bug 199033. Taking out code that was needed for full-page plugins when they didn't have a document associated with them, that was recently fixed, so now this code is no longer needed. r=peterlubczynski@netscape.com, sr=bzbarsky@mit.edu 2003-03-25 00:17:27 +00:00
roc+%cs.cmu.edu
210e29411b Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz 2003-03-12 03:22:11 +00:00
danm%netscape.com
f2d773dbfd suppress processing of blur events with filepicker showing. bug 68454 r=bryner,kmcclusk,jst 2003-02-24 20:15:59 +00:00
nisheeth%netscape.com
cc8dffbfcc Fix for bug 191377. r=peterv, sr=heikki, a=asa. window.open("") was not opening a blank window. This was a regression from the fix to bug 174628. 2003-02-01 00:39:31 +00:00
nisheeth%netscape.com
861f7bc62c Backout last checkin because it did not have any log message. 2003-02-01 00:35:45 +00:00
nisheeth%netscape.com
bbfad7145e *** empty log message *** 2003-02-01 00:24:14 +00:00
nisheeth%netscape.com
510bd13eac Fix for bug 174628. r=darin, sr=jst, a=asa. Only escape non-ASCII characters in url passed to nsGlobalWindow::InternalLoad(). 2003-01-27 22:02:44 +00:00
mkaply%us.ibm.com
8e455da2c0 No bug - OS/2 only - add #ifdef so OS/2 returns OS/2 for platform 2003-01-15 23:10:56 +00:00
bryner%netscape.com
7f0488eb18 Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky. 2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
098bd15103 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 19:35:36 +00:00
jst%netscape.com
50771e7d42 Fixing bug 158370. Newly created windows not fully usable in JS when running in some embedded apps. r=harishd@netscape.com, sr=peterv@netscape.com 2003-01-06 22:37:54 +00:00
aaronl%netscape.com
600e0c73e6 Bug 183234. Checking in patch for jst. Crash in nsDOMWindowController when F7 key pressed. r=aaronl, sr=peterv 2002-12-20 08:00:08 +00:00
jst%netscape.com
e2f8a3ab91 Fixing bug 183604. Making the DOM code reuse the timer for interval timeouts in stead of creating a new timeout every time. r=caillon@returnzero.com, sr=peterv@netscape.com 2002-12-12 22:37:07 +00:00
jst%netscape.com
f729673363 Fixing bug 184209. Don't access timeout's past the point where they are released in a situation when the release might have deleted the timeout. r=dbradley@netscape.com, sr=rpotts@netscpae.com 2002-12-11 00:03:34 +00:00
mstoltz%netscape.com
16beb8a149 adding an include to fix bustage 2002-12-04 02:51:47 +00:00
mstoltz%netscape.com
b37c501c58 Bug 32571 - add disabling pref and JS console message to window.close security check. r=heikki, sr=jst. 2002-12-04 01:55:56 +00:00
caillon%returnzero.com
b7fdd3b2a7 178291 - using window.fullScreen causes scripts to stop.
r=mstoltz sr=jst
2002-12-03 06:08:08 +00:00
jst%netscape.com
dfc3a21a75 Renaming member variables in nsTimeoutImpl from 'foo' to 'mFoo'. rs=brendan@mozilla.org 2002-11-28 01:35:45 +00:00
jst%netscape.com
aa20bdfceb Fixing bug 178810. Original idea for the fix proposed by keeda@hotpop.com, complete fix written by me. Fix reference counting goofup that is triggerd by timeouts that run while a timeout is executing (due to a bug that lets timeouts fire while modal windows are open). r=peterv@netscape.com, sr=brendan@mozilla.org 2002-11-28 01:04:18 +00:00
caillon%returnzero.com
67da011039 175197 - Caching the window's prefs so we don't need to constantly re-fetch the service, move the calls to use the new prefs API in the process.
r/sr=sicking,jst,alecf
2002-11-25 23:21:25 +00:00
bryner%netscape.com
8beac694e3 Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst. 2002-11-09 00:25:25 +00:00
rpotts%netscape.com
edd519ef65 bug #174404 (sr=jst). forgot to check this file in with the rest of the patch... 2002-11-09 00:15:42 +00:00
blakeross%telocity.com
de604cfe77 170705 - accessing "navigator.cookieEnabled" produces "uncaught exception." r=hyatt sr=bryner 2002-11-06 20:53:52 +00:00
caillon%returnzero.com
53f34d33c0 177526 - Don't block calls to window.open() that don't actually pop open new windows.
r=jkeiser sr=bzbarsky
2002-11-06 20:48:58 +00:00
bryner%netscape.com
9b996ca00d Fix fullscreen mode on Linux to use the fullscreen hint, rather than manually sizing the window (bug 176640). Move the existing implementation of fullscreen mode from nsGlobalWindow to nsBaseWidget, so that it can be overridden in the gtk widget implementation. r=blizzard, sr=hewitt. 2002-11-06 09:35:13 +00:00
dveditz%netscape.com
27878120f5 Don't fire popup blocked event if we decide to open the content in an existing named window (bug 174765 refinement)
r=danm, sr=jag, a=roc
2002-11-01 05:20:07 +00:00
dveditz%netscape.com
54a4cd8e0d Backend changes to support popup blocking whitelists. No Mozilla UI yet but used by Phoenix. bug 174765 r=danm,sr=jag,a=brendan 2002-10-25 02:31:12 +00:00
mstoltz%netscape.com
c66a28d655 Bug 32571 - Don't allow scripts from content to close windows with a null opener.
r=heikki, sr=jst, a=dbaron.
2002-10-25 01:08:29 +00:00
hyatt%netscape.com
c20f1e2f17 Fix code inside a phoenix ifdef. NPOB. 2002-10-08 19:07:29 +00:00
hyatt%netscape.com
8c527dcd7e #ifdefs for phoenix. NPOB. 2002-10-08 03:30:26 +00:00
aaronl%netscape.com
d618542d85 Bug 167921 - allow web pages to use preventDefault so that typeaheadfind doesn't interfere with them. r=kyle, sr=brendan. Also fixes bug 165315 - typeaheadfind shouldn't hardcode kbd shortcuts, bug 77704 - add accelerator for find prev (also added menu item). Also fixes bug 167783 - ctrl+g for typeaheadfind after repeating characters. Also fixes bug 168408 - backspace after bad character typed should do the right thing, but don't add bad characters to buffer. Also fixes bug 71832 - add F3 for find next (also shift+F3). Bug 157669 - Alt+D to select location bar (IE keyboard compatibility), r=sgehani, sr=hewitt 2002-09-24 22:46:50 +00:00
dbaron%fas.harvard.edu
56b82cf05d Fix leak of nsDOMEvent (and thus nsPresContext) caused by the presence of frames or iframes by avoiding early return so we don't skip necessary manual refcounting. b=160268 r=peterv sr=jst 2002-09-20 22:58:40 +00:00
danm%netscape.com
997fa879e8 backing out Txul-regression-causing popup window manager. bug 167929 2002-09-12 01:16:59 +00:00
danm%netscape.com
c0d5889aff moving most of the popup window abuse check to WindowCreator. bug 166442 r=jag,jst,timeless 2002-09-11 02:22:25 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dougt%netscape.com
fae89c4077 Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 05:38:16 +00:00
jst%netscape.com
875e9e7ffd Fixing topcrash bug 155681 (patch from timeless@bemail.org, plus slight modification by me). Don't call methods on mDocShell if it's null. r=cbiesinger@web.de, sr=jst@netscape.com 2002-09-04 02:22:35 +00:00
caillon%returnzero.com
ff02b99644 156849 - embedded gecko can suffer from too little GC in some cases
Patch by Johnny Stenback <jst@netscape.com>
r=caillon sr=bzbarsky
2002-09-04 02:18:52 +00:00
caillon%returnzero.com
dc7d252366 128420 - getComputedStyle should raise NOT_SUPPORTED_ERR per the CSS WG.
r=glazman sr=bzbarsky
2002-08-31 19:57:10 +00:00
bzbarsky%mit.edu
7e75266e76 Fix pgup/pgdown in browser some more. Global window needs to implement
the MovePage commands. Bug 165255, r=aaronl, sr=jag
2002-08-29 23:51:53 +00:00
danm%netscape.com
852b838f63 CheckForAbusePoint spreads to Alert,Confirm,Prompt. because of bug 130719. r=brendan,pavlov 2002-08-20 04:28:21 +00:00
peterv%netscape.com
8a57bbd46e Fix for bug 161880 (privacy hole in JS regexps ?). r=jst, sr=brendan. 2002-08-19 11:19:05 +00:00
bzbarsky%mit.edu
612aea63b0 fix bustage 2002-08-06 07:08:47 +00:00
henry.jia%sun.com
566036896f 5th patch for bug 158080
Description: replace the hardcode of @mozilla.org/embedcomp/window-watcher;1 with NS_WINDOWWATCHER_CONTRACTID
Patch by Henry.Jia@sun.com
r=anto, sr=alecf
2002-08-06 06:20:45 +00:00
ere%atp.fi
e0d21dae0b Fix for bug 153083, mozilla (nearly) hangs on rendering. Change timer mode to idle timer.
r=biesi, sr=jst, a=asa
2002-07-30 06:19:17 +00:00
caillon%returnzero.com
bb88a0eea7 Bug 104470 - Popup blocking breaks window.open()s which are targetted to frames or existing named windows
r=sicking sr=jst a=asa
2002-07-23 23:22:20 +00:00
mjudge%netscape.com
47e8fbc7bf r=akkana sr=sfrasier 125146 a=asa This patch will make the embedding API's a better friend to all. It eliminates the use of multibyte strings in command names and also allows for simple command to not require the nsICommandParams interface to be filled. 2002-07-15 22:04:13 +00:00
jst%netscape.com
48e46fdb38 Fixing bug 156248. Remove pointless code that causes JS errors and fix up some comments. r=peterv@netscape.com, sr=heikki@netscape.com 2002-07-10 04:58:59 +00:00
jst%netscape.com
39e297a855 Fixing regression caused by the fix for bug 134315. Don't clear scope when leaving about:blank in a chrome window. r=bzbarsky@mit.edu, sr=rpotts@netscape.com 2002-07-10 02:00:45 +00:00
suresh%netscape.com
b88690d5c4 Temporarily disabling the fix for bug 134315 since it caused a commercial blocker (bugscape bug 17487).
r-jkeiser
2002-07-10 01:22:35 +00:00
jst%netscape.com
90e476b61f Temporarily disabling the fix for bug 134315 since it caused a commercial blocker (bugscape bug 17487). 2002-07-09 20:11:16 +00:00
jst%netscape.com
26f8891307 Fixing bug 146143. Make sure the JS scope is cleared when leaving a full-page plugin. r=bzbarsky@mit.edu, sr=jaggernaut@netscape.com 2002-07-09 03:43:15 +00:00
jst%netscape.com
f2ccfa37c0 Fixing security bug 134315. Make sure we clear the JS scope in cases where it's needed. r=mstoltz@netscape.com, sr=brendan@mozilla.org 2002-07-09 02:49:58 +00:00
caillon%returnzero.com
9df8f33a00 * Implement CSSValueLists and computed -moz-border-{side}-colors
* Get the computed -moz-binding directly from the style context which is faster than getComputedStyle
* Speed up computed style by not QI'ing so much
* Cache the computed style object so we don't keep re-alloc'ing memory for it.
* Shrink ROCSSPrimitiveValue.
* Don't get computed style of non-existant properties.
* Use nsSize instead of nsRect when we only care about height and width
* Other random code cleanup of computed style

Bug 155525
r=bzbarsky
sr=jst
2002-07-08 07:11:59 +00:00
jst%netscape.com
54201647f0 Fixing potential crasher introduced by the original fix for bug 150087. The weak docshell pointer in the navigator object must be cleared when it's released. r=sicking@netscape.com, sr=alecf@netscape.com 2002-06-27 01:27:00 +00:00
peterlubczynski%netscape.com
0eb6065bb3 Reset the navigator object for each new document -- plugins may have changed, bug 150087 r=av sr=jst 2002-06-21 19:34:54 +00:00
jst%netscape.com
53ecd021aa Fixing bug 123273. Don't let JS timeouts run with 0 delay, always force at least a 10ms delay. r=bzbarsky@mit.edu, sr=rpotts@netscape.com 2002-06-19 00:42:23 +00:00
cbiesinger%web.de
15a321ca78 bug 115473 r=pavlov sr=brendan
Remove timer priorities
2002-06-11 20:47:04 +00:00
jaggernaut%netscape.com
fdd4b9f952 Bug 103452: When window.close() is called, close the tab for that content window, not the whole (XUL) window. r=hewitt, sr=jag, sr=jst 2002-06-05 00:31:45 +00:00
jst%netscape.com
0af1e2085d Fixing one more part of bug 52334. Make onload handlers fire on hidden iframes. r=axel@pike.org, sr=vidur@netscape.com 2002-05-29 17:56:50 +00:00
timeless%mac.com
fa6594c5f9 Bug 145589 we call a getter with null, which crashes winEmbed
r=jkeiser sr=jst

<timeless> *shrug* i'm not actively trying to defend this patch, it's the
right thing to do for the given contract
<jkeiser> timeless: I dunno, doing *x = blah; when you don't need to do
it is definitely more expensive than if (!x)
<timeless> you aren't even allowed to do what you suggest, the
contract explicitly forbids it
[clarification, the caller isn't allowed to rely on this]
if i tried to do what you suggest, shaver would kill me :)
<jkeiser> timeless: so shaver is the guy to ask here?
<timeless> yeah if you're concerned about it
if you care measure. i care about crashing and contract violations
the contract was (out foo). which according to what shaver said
when i asked him and my memory of that, didn't allow 0.
<shaver> it doesn't allow 0
<jst> right
<shaver> we check it all over the place in the code, because we're sheep
<dmose> baaa
2002-05-20 20:06:29 +00:00
jst%netscape.com
f27fd6f6a7 Fixing bug 141442. Make window.openDialog() overridable from web content, and move the security check into the actual method implementation. r=mstoltz@netscape.com, sr=jband@netscape.com 2002-05-17 22:24:06 +00:00
rods%netscape.com
15a673155f Turn on pluggable dialogs (second part of checkin, first part Bug 135441)
Bug 115136 r=dcone sr=attinasi
2002-05-07 12:03:37 +00:00