142 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
2a8ab96873 Stop treating _new as a special window target. No other browser does. Bug
417067, r+sr=jst, a=beltzner


git-svn-id: svn://10.0.0.236/trunk@245671 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-14 05:05:27 +00:00
stuart.morgan%alumni.case.edu
f0ec01bdaa Follow up to bug 404290, make sure embedding clients don't crash (bug 406108). r+sr=bzbarsky a1.9=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@240369 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 00:31:21 +00:00
db48x%yahoo.com
a4c11af5e3 Bug 404290 ÃÂ the size of popup windows needs to be specified in css pixels, not device pixels. r=eli,roc sr=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@239977 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-27 13:30:09 +00:00
jst%mozilla.org
c9e2f0e72a Fixing bug 402866. Don't make modal dialogs resizable just because pref dom.disable_window_open_feature.resizable is set to true. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@239500 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 23:07:13 +00:00
jst%mozilla.org
43143cad1a Fixing bug 391777. Make window.close() work on a modal content dialogs. r+sr+a=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@236796 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 21:53:26 +00:00
jst%mozilla.org
e0304426c5 Fixing bug 393900. Make windows opened with showModalDialog() obey window feature prefs. r+sr=jonas@sicking.cc, a=dsicore@mozilla.com
git-svn-id: svn://10.0.0.236/trunk@235382 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-07 20:30:16 +00:00
bzbarsky%mit.edu
289313ec1a Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@232939 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 17:39:59 +00:00
cbiesinger%gmx.at
efd4e4589c 391100 move nsAutoWindowStateHelper from nsPrompt to nsPromptService
r=bz sr=jst a=bz


git-svn-id: svn://10.0.0.236/trunk@232937 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 17:31:39 +00:00
jst%mozilla.org
450dd656cb Fixing bug 389634. Remove dependency on XUL windows from modal content dialog opening code (window.showModalDialog()). r=bzbarksy@mit.edu, sr=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@231748 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-09 22:03:02 +00:00
jst%mozilla.org
43a9473fed Fixing bug 194404. Adding support for window.showModalDialog() for compatibility with IE. r+sr=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@231061 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 17:52:53 +00:00
bzbarsky%mit.edu
c57e87303d More consistent handling of principals for loads across docshell type
boundaries.  Bug 388121, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@230161 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 01:47:07 +00:00
mats.palmgren%bredband.net
343a090509 Hold a strong ref on the script context while its JSContext is on the stack. b=380512 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@229600 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 13:53:01 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
bzbarsky%mit.edu
8e05132cf4 Apply chrome flags to dialogs, even when opened by untrusted content (so alerts
are not resizable, for example).  Bug 294440, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@214091 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-24 21:42:18 +00:00
mattwillis%gmail.com
7f8db8993d bug 354522 - Moves rv outside the if so nsIAuthPrompt2 works properly. r=biesi,sr=dmose
git-svn-id: svn://10.0.0.236/trunk@212738 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-27 19:41:01 +00:00
dbaron%dbaron.org
b3ece9b8b4 Be more careful pushing/popping contexts. b=352264 r=jst sr=bzbarsky/jst
git-svn-id: svn://10.0.0.236/trunk@209916 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 22:58:11 +00:00
cbiesinger%web.de
50b5a1abdb Bug 265780 part I: Implement nsIAuthPrompt2 and related interfaces per the design at
http://wiki.mozilla.org/Necko:nsIAuthPrompt2
r=darin


git-svn-id: svn://10.0.0.236/trunk@208549 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-26 21:42:54 +00:00
bzbarsky%mit.edu
0583386559 Remove special-casing of about:blank for security purposes; give about:blank
pages the principal of whoever is responsible for loading them, when possible.
Bug 332182, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@207471 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-15 17:31:16 +00:00
bzbarsky%mit.edu
5554d8d284 Diverting window.open into a tab doesn't stop the about:blank load before
returning the new window.  Bug 348272, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@207201 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-12 02:09:23 +00:00
marria%gmail.com
59502dae7c Bug 346851 (LOAD_FLAGS_NEW_WINDOW naming doesn't make much sense) Changed variable name and updated comment. r=cbiesinger, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206673 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-06 18:17:29 +00:00
bzbarsky%mit.edu
45b187a5f4 Don't set the dependent bit on windows not being opened at chrome, even if it's
in the features.  Bug 344257, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@203021 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 20:40:43 +00:00
mrbkap%gmail.com
adf3fc0b27 Remove extraneous newline. No bug, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@201910 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 22:55:09 +00:00
marria%gmail.com
c8758b856c Bug 241972 (new window opened by window.open('xxx.exe') or target="_blank" isn't closed automatically when a download begins). Fix stores state on the channel indicating whether a window was opened specifically for the download. The external helper app service then closes the window if there is no refresh header and if the window was opened specifically for the download. r=cbiesinger, sr=darin
git-svn-id: svn://10.0.0.236/trunk@201538 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-04 20:48:33 +00:00
mrbkap%gmail.com
ee6bb80696 Restore lost compatibility by not defining an arguments object on the window if there weren't any to begin with. Also, explode nsIArray as well as nsISupportsArray in OpenWindow. bug 342813, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@201022 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-27 20:09:16 +00:00
mrbkap%gmail.com
84778e1771 Fix this to be a real null check. No bug, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199900 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-14 22:25:12 +00:00
mrbkap%gmail.com
ff2e460cf2 Restore old behavior where an nsISupportsArray is exploded into multiple arguments whereas any other COM object simply becomes argv[0]. bug 341362, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199899 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-14 22:18:03 +00:00
mhammond%skippinet.com.au
e96b5e495a Land DOM_AGNOSTIC3_BRANCH, bug 255942. r=a few people, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@199778 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-13 03:07:47 +00:00
mrbkap%gmail.com
0b7523274b Checking in Ben Turner <bent.mozilla@gmail.com> and timeless's patch to make Gecko use the JS engine's request model to help multithreaded embedders avoid GC races and crashes. bug 176182, r=mrbkap assumed-rs=brendan
git-svn-id: svn://10.0.0.236/trunk@199768 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-12 22:39:55 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
mrbkap%gmail.com
fc92c031ec Hold a strong reference to our context if we're using a script context from a window, since the window could navigate away before we're done with the context. bug 310508, r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@191193 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-24 21:14:01 +00:00
bzbarsky%mit.edu
f9ccbdf7ba Keep track of the original window opener (or rather whether one was present)
even if window.open calls target the window.  Bug 266371 and bug 212298,
r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@190070 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-15 03:22:17 +00:00
bryner%brianryner.com
dfa7da67ad Dispatch a notification that a newly-opened window has been initialized (bug 326784). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@189785 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-12 00:39:26 +00:00
bzbarsky%mit.edu
c87e7e48b2 Make nsIWindowProvider report whether it created a new window. Bug 326006,
r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@189575 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 20:50:43 +00:00
bzbarsky%mit.edu
e446371b8e Move the "force into tab" code out of Gecko and allow embeddors to do the same
sort of thing.  Bug 323810, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@189344 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 20:46:39 +00:00
mark%moxienet.com
ebb85c87fe 190307 Add MathML support to Camino, adding a non-blocking alert service to handle MathML's missing-font dialog. Patch by Makoto Yamashita <makotoy@ms.u-tokyo.ac.jp>, fixed up for CaminoStatic by me. r=smfr sr=pink
git-svn-id: svn://10.0.0.236/trunk@188729 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 02:07:45 +00:00
jst%mozilla.jstenback.com
b3caccffbd Fixing bug 318461. Move SetNewDocument() and SetOpenerWindow() from nsIScriptGlobalObject to nsPIDOMWindow to clean out non-script related methods form the nsIScriptGlobalObject interface. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@185536 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 19:35:27 +00:00
jst%mozilla.jstenback.com
895df6e6ca Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
roc+%cs.cmu.edu
e766708159 Backing out fix for bug 303484 since it exposed some other issues and doesn't fix any known crashers.
git-svn-id: svn://10.0.0.236/trunk@182432 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 01:41:11 +00:00
bzbarsky%mit.edu
a29f4399fa Don't try to duplicate the jsval typedef. Bug 312003, r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@182120 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 20:16:35 +00:00
bzbarsky%mit.edu
1517e962f4 Attempt to fix splitwindow focus stuff -- bug 305032. Issue found by mrbkap,
patch by me, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@181102 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-28 02:44:16 +00:00
roc+%cs.cmu.edu
57bffe2488 Bug 303484. Limit the nesting of modal event loops so we avoid overflowing the C++ stack. r+sr=brendan,a=asa
git-svn-id: svn://10.0.0.236/trunk@177889 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 21:03:12 +00:00
bzbarsky%mit.edu
45924dadca Removing unused code. Bug 303102, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@177741 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 02:49:22 +00:00
jst%mozilla.jstenback.com
792744ce69 Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
jst%mozilla.jstenback.com
454862af81 Fixing bug 295093. Check the window chrome flags when opening a new window before pushing the callee context onto the context stack. r=dveditz@cruzio.com, sr=brendan@mozilla.org, a=dveditz@curzio.com
git-svn-id: svn://10.0.0.236/trunk@174962 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-21 21:42:08 +00:00
jst%mozilla.jstenback.com
e9863e3952 Fixing bug 296850. Unregress frame injection bug 246448. r=bzbarsky@mit.edu, sr+a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@174259 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-07 23:34:22 +00:00
mconnor%steelgryphon.com
888756dba6 land windowwatcher portions of jst's fix for bug 289949, r+sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@172577 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-21 21:21:11 +00:00
bzbarsky%mit.edu
baca2afa60 Fix nsWindowWatcher::FindItemWithName to pass in the right requestor; expose it
on nsPIWindowWatcher and use it from nsDocShellTreeOwner.  Bug 282296, r=danm,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@170137 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-03 17:26:34 +00:00
pedemont%us.ibm.com
20b65d2019 Bug 256911 - Implement weakref support for SetWebBrowserChrome. r=darin, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@168822 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-04 23:32:32 +00:00
jst%mozilla.jstenback.com
a15240a6ab Fixing bug 103638 (and bug 273699). Targets with same name in different windows open in the wrong window. Patch by bzbarsky@mit.edu and myself, r=danm.moz@gmail.com, bzbarsky@mit.edu, sr=dveditz@cruzio.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@167537 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-11 19:36:40 +00:00
bzbarsky%mit.edu
1eceb876b2 Try to keep window.arguments from being wiped out by scope-clearing by setting
the document in the window to null before setting window.arguments in
AttachArguments.  Bug 25040, r=danm, sr=jst


git-svn-id: svn://10.0.0.236/trunk@163138 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-02 16:11:57 +00:00