Граф коммитов

238 Коммитов

Автор SHA1 Сообщение Дата
bzbarsky%mit.edu 7f9b937064 Dispatch mutation events even in documents that are not rendered in a window.
Bug 201236, patch by Alex Vincent <ajvincent@gmail.com>, r=smaug, sr=peterv
2006-04-24 19:52:21 +00:00
peterv%propagandism.org b4bbbf9633 Better fix for bug 47852 (NAMESPACE_ERR not being thrown when setting Node.prefix). r/sr=sicking. 2006-04-17 17:13:11 +00:00
jst%mozilla.jstenback.com f4f7012c0b Fixing bug 321299. Make sure XPConnect wrappers get properly reparented when moving nodes from document to document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu 2006-04-11 03:49:44 +00:00
bzbarsky%mit.edu d76ac29ddb Add some macros to make using auto-notifiers and auto-gc-roots safer. Bug
333148, r+sr=dbaron
2006-04-07 20:14:51 +00:00
roc+%cs.cmu.edu 8916588e70 Bug 326501. Mark tree views as being suitable for untrusted code. r+sr=bzbarsky 2006-03-26 20:57:53 +00:00
bryner%brianryner.com 7a96206e10 Clean up header includes (bug 331050). This round of changes deals with some of the public content headers, and factors nsDOMClassInfoID out of nsIDOMClassInfo.h so that nsContentUtils.h doesn't have to bring in XPConnect. r+sr=jst. 2006-03-22 18:36:36 +00:00
Olli.Pettay%helsinki.fi f79ea0115b Bug 234455, Centralize event dispatch r=jst, sr=bz 2006-03-07 17:08:51 +00:00
bzbarsky%mit.edu 1ee861335f Use nsContentUtils helpers for some localizing in nsGlobalWindow. Bug 326972,
r+sr=jst
2006-02-14 02:06:48 +00:00
peterv%propagandism.org a8a430a797 Fix for bug 315901 (Move RangeList and EventListenerManager hashes to nsContentUtils). r/sr=jst. 2006-02-07 14:34:10 +00:00
bzbarsky%mit.edu 263cf7dc11 Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument.  Bug 324600, r=sicking, sr=jst
2006-02-02 20:02:34 +00:00
roc+%cs.cmu.edu 710ba40206 Bug 323230. Add FindAttrValueIn as an efficient way to look up an attribute value in a table of atoms. r=sicking,sr=bzbarsky 2006-01-18 04:09:33 +00:00
bzbarsky%mit.edu 9ba9e01fb9 Fix wrapper reparenting to work with splitwindow... Bug 318678, r+sr=jst 2005-12-03 06:27:45 +00:00
bzbarsky%mit.edu b7345ce6a8 Switch the name and id hashtable from strings to atoms. Atomize names in
general.  Bug 315771, r=sicking, sr=jst
2005-11-16 02:55:29 +00:00
mrbkap%gmail.com 1bcf4e73fc bug 312363: Use the security info of the dynamic context instead of the static context. r=jst sr=bzbarsky 2005-11-03 22:47:06 +00:00
bzbarsky%mit.edu 836aa0b284 Optimize MatchElementId some. Bug 313082, r=sicking, sr=peterv 2005-10-21 15:17:15 +00:00
roc+%cs.cmu.edu f7e2b45942 Bug 309020. SVG content references in XBL anonymous content should reference content copied from the binding document. This is a partial fix. We also refactor some code to make it shareable in nsContentUtils. r=biesi,tor sr=bzbarsky 2005-10-18 20:33:35 +00:00
peterv%propagandism.org 513c1fd56d Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz. 2005-10-14 09:07:29 +00:00
Olli.Pettay%helsinki.fi cde8aaf024 Bug 306974, Remove some duplicate event dispatching code r=sicking, sr=peterv 2005-10-10 18:38:57 +00:00
bzbarsky%mit.edu d34807f08b Make nsDocument::InsertBefore and nsDocument::ReplaceChild do the right thing
as far as removing kids from their old parent, working with document fragments,
etc.  Mostly just makes nsDocument and nsGenericElement share code.  Bug
278472, r=peterv, sr=jst
2005-09-30 20:06:33 +00:00
peterv%propagandism.org 3609c87767 Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). Patch by sicking, updated by peterv, r=bz, sr=peterv. 2005-09-24 18:43:15 +00:00
bzbarsky%mit.edu a968a0250c Make sure to root the function object we compile in
nsXBLPrototypeHandler::ExecuteHandler.  r=jst, sr=brendan
2005-09-24 02:33:33 +00:00
peterv%propagandism.org 1fd27aa751 Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz. 2005-09-11 10:08:43 +00:00
peterv%propagandism.org c9af0fc826 Fix for bug 298064 (nsContentUtils::GetDocumentFromCaller() is broken.). r=jst, sr=brendan. 2005-09-02 18:02:51 +00:00
bzbarsky%mit.edu 643e0e6e6f Cache the event queue service in nsContentUtils instead of having every single
presshell caching it.  Bug 305689, r+sr=peterv
2005-08-24 21:01:51 +00:00
bzbarsky%mit.edu 1c1bf485db Init the content policy service ptr lazily so we don't reenter layout module
init.  Bug 305310, r+sr=peterv
2005-08-23 21:00:00 +00:00
roc+%cs.cmu.edu 142211a0cb Bug 300313. DeCOMtaminate linebreaker/wordbreaker, and access them directly as services rather than through a factory. r+sr=roc, patch by Joshua Welderson (thanks Joshua\!) 2005-08-22 03:00:06 +00:00
bzbarsky%mit.edu f4c380c572 Allow passing a cached nsIContentPolicy service pointer to
NS_CheckContent*Policy if the caller has one.  Bug 304845, r=biesi, sr=jst
2005-08-19 15:00:01 +00:00
bzbarsky%mit.edu 8145e9fc00 Don't leak radio visitors through shutdown. Bug 302706, r+sr=jst 2005-08-15 02:42:59 +00:00
bzbarsky%mit.edu 75933a51dc Make sure to notify XPConnect if an XBL constructor or destructor throws an
exception so they get reported in a timely manner.  Bug 299741, r+sr=jst, a=chofmann
2005-07-06 15:46:12 +00:00
jst%mozilla.jstenback.com 4e48d2a634 Fixing bug 292464. Use the documents principals to check if a document is a chrome document or not. r=smaug@welho.com, sr=peterv@propagandism.org, a=shaver@mozilla.org 2005-06-02 23:36:08 +00:00
bryner%brianryner.com 40d7ab427b Fix form state save/restore so that it uses the correct history entry (bug 293135). r+sr=bzbarsky, a=shaver. 2005-05-10 02:06:29 +00:00
cst%andrew.cmu.edu 7f22407c14 Bug 287695 fix hardcoded app name in default mailto: form subject
r=biesi sr=bz
2005-04-03 17:16:28 +00:00
bzbarsky%mit.edu e3aebd9c61 Use the content policy REJECT reason as a basis for our "whether to show alt
text" decision instead of reading prefs ourselves.  Bug 202906, r=mvl, sr=jst
2005-03-02 04:05:12 +00:00
jst%mozilla.jstenback.com e4a310c9c7 Fixing bug 280947. Fix regression from bug 279945 that broke dragging images onto the client file system if the image URL didn't have a valid extension. r=bzbarsky@mit.edu, sr=dveditz@cruzio.com 2005-02-07 22:20:14 +00:00
jst%mozilla.jstenback.com 03f7b5677f Fixing bug 279945. Prevent drag n' drop of images whose extensions don't map to image mimetypes. r=caillon@gmail.com, sr=dveditz@cruzio.com 2005-02-03 17:23:35 +00:00
neil%parkwaycc.co.uk a3392e7e6c Bug 276002 Change nsContenUtils::Get/FormatLocalizedString to use nsXPIDLString to save on nsAutoString copies r=dbaron sr=bryner 2005-01-18 23:46:59 +00:00
bzbarsky%mit.edu 1d87c3297f Include the part number inside a multipart document in the state key, so that
state restoration works correctly on each part.  Bug 47350, patch by Hideo
Saito <saito@densan.co.jp>, r=bzbarsky, sr=js
2005-01-15 17:47:23 +00:00
neil%parkwaycc.co.uk 08b341aca4 Bug 51444 Make xbl:inherits work with namespaced attributes p=smaug@welho.com r+sr=bz 2005-01-01 18:02:03 +00:00
dbaron%dbaron.org 972b29f4a1 Remove nsFormControlHelper::GetLocalizedString, improve string bundle methods in nsContentUtils, and convert callers. b=273829 r+sr=bryner 2004-12-17 20:40:48 +00:00
peterv%propagandism.org a7ac96fea9 Fix for bug 192139 (Integrate latest Expat). r=bz, sr=jst. 2004-12-15 15:37:23 +00:00
bzbarsky%mit.edu 095f0fe791 Use nsContentUtils for error-reporting for <area> parsing. Bug 269697,
r+sr=jst
2004-11-23 17:45:37 +00:00
alex%croczilla.com 1fce2c4058 Landing of the XTF branch, bug#253225. XTF is the eXtensible Tag
Framework; see mozilla/content/xtf/readme.txt. r=bryner, sr=jst. Code
is not enabled by default (requires --enable-xtf configure option).
2004-10-07 20:59:53 +00:00
dbaron%dbaron.org 5f62984111 Add function to nsContentUtils to report a localized error message to the error console, and use it from the three places that were doing pretty much the same thing. b=187007 r+sr=bzbarsky 2004-09-14 17:26:35 +00:00
jst%mozilla.jstenback.com bc321b52bc Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu 2004-09-01 16:50:12 +00:00
bzbarsky%mit.edu 91a0c731f4 nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage (and
CanLoadImage).  Bug 253627, r+sr=dbaron
2004-08-04 19:48:55 +00:00
bzbarsky%mit.edu e628e82cc1 Remove some knowledge about drag-drop innards from nsFrame.cpp by refactoring
shared code into utility methods in nsContentUtils.  Use the new methods to fix up
nsContentAreaDragAndDrop to make it possible to drag image <objects> and image
inputs.  Bug 251775 and bug 244859, r=biesi, sr=jst
2004-07-30 06:04:57 +00:00
tor%cs.brown.edu e091eb70b5 Bug 242234 - svg event attributes.
Original patch by sicking, r=bryner, sr=jst
2004-07-22 16:38:05 +00:00
dbaron%dbaron.org a5d71df614 Send the stylesheet as the HTTP Referer header for images loaded from CSS stylesheets. b=249168 r=bzbarsky sr=darin 2004-07-14 21:56:23 +00:00
peterv%propagandism.org a7908e751a Fix for bug 236408 (deCOMtaminate nsINodeInfoManager). r=caillon, sr=jst. 2004-06-25 12:26:02 +00:00
mvl%exedo.nl fc48c463fc Make content policy api (nsIContentPolicy) not suck.
bug 191839. Original patch and hard work by Tim <riceman+bmo@mail.rit.edu>, r=bzbarsky (on backend stuff), r=neil (on the tabbrowser stuff), sr=bzbarsky
2004-05-13 18:34:18 +00:00
jst%mozilla.jstenback.com 77c4322ab2 Fixing bug 240543. Hiding some nsIPref* API bloatyness in nsContentUtils. r=caillon@aillon.org, sr=peterv@propagandism.org 2004-04-29 23:34:19 +00:00
gerv%gerv.net 9d2ee4928c Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
caillon%redhat.com 3409f38f65 Remove a bogo assert, and explicitly mention when exceptions are thrown here.
219506, r+sr=jst
2004-04-14 20:12:54 +00:00
jst%mozilla.jstenback.com 3b9482b945 Fixing bug 239953. Remove duplicated code in nsContentUtils. r=jonas@sicking.cc, sr=peterv@propagandism.org. 2004-04-13 03:21:50 +00:00
bzbarsky%mit.edu 134fed8856 Load background images from style instead of from painting. This makes us
start loading the background images when we resolve style on an object that
needs them instead of when we scroll down and see it for the first time.  Bug
57607, r=pavlov, sr=dbaron
2004-03-09 03:57:51 +00:00
caillon%redhat.com bfd1f05ff4 Bug 86193
Add a preference allowing users to prevent sites from cancelling the contextmenu event, so right click will always bring up a context menu if the pref is set.
r=jst sr=bryner
2004-03-06 02:58:08 +00:00
peterv%propagandism.org 713c734ef8 Fix for bug 16603 (DOM doesn't throw INVALID_CHARACTER_ERR for arguments with invalid characters). r=sicking, sr=jst. 2004-02-10 10:58:13 +00:00
jst%mozilla.jstenback.com 505c634885 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com. 2004-02-09 22:48:53 +00:00
caillon%returnzero.com 319d92fa7d Bug 226375
We were leaking nsIClassInfo objects because a DOM class info getter returned AddRef()ed raw pointers.  Most of our dom/ and content/ QueryInterface() implementations knew this and accounted for it, but not all. The leak fix is thus achieved by fixing the method to not call AddRef() on its return value, and fixing the appropriate QueryInterface() macros/implementations. As a bonus, this macro-izes many  QueryInterface() implementations in content/ which were fully written out.
r=peterv@propagandism.org
sr=alecf@flett.org
 CVS: ----------------------------------------------------------------------
2004-01-06 00:36:01 +00:00
caillon%returnzero.com 528a54842a Ensure that content can always grab a security manager and namespace manager.
Bug 223373; r+sr=bzbarsky
2003-10-30 02:53:08 +00:00
caillon%returnzero.com 66caced69a Re-land patch for bug 83536, merging principal objects.
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst
2003-10-21 22:11:49 +00:00
bzbarsky%mit.edu ddba83b841 Fix up name resolution under forms to not find elements that are just
randomly in the document.  Bug 148782, r=caillon, sr=jst
2003-07-15 02:07:55 +00:00
bzbarsky%mit.edu 094e6e3f3a Make comment change requested by caillon in review that I forgot about 2003-07-08 09:23:32 +00:00
bzbarsky%mit.edu c0d3c15a88 DOM properties that return URIs should return absolute URIs when they
are accessed (even if the corresponding attribute value is a relative URI).
Bug 47534, r=caillon, sr=jst
2003-07-08 05:35:04 +00:00
jaggernaut%netscape.com 756d8ef907 Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt 2003-05-30 00:21:01 +00:00
jst%netscape.com 819f27dd06 Fixing bug 191579. Make <script for='window' event='onload'> execute as inline script like it used to. r=bzbarsky@mit.edu, sr=peterv@netscape.com 2003-02-27 00:49:36 +00:00
peterv%netscape.com c1e3bc0d5e Fix for bug 186538 (Touching the ownerElement of an attribute through XPath generates a security error.). r=sicking, sr=jst. 2003-01-22 03:25:51 +00:00
caillon%returnzero.com 02dff0ba15 Bug 177328: Update compareTreePosition to compareDocumentPosition as per the latest DOM3 Core WD: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20021022/core.html#Node3-compareDocumentPosition
r=bzbarsky sr=jst
2002-12-04 05:18:39 +00:00
peterv%netscape.com 2cd27f702a Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst. 2002-11-29 23:44:07 +00:00
bratell%lysator.liu.se 60ab58236e Bug 165893 - avoid refetching the parser service all the time. r=jst@netscape.com, sr=bzbarsky@mit.edu 2002-11-19 13:39:20 +00:00
peterv%netscape.com 7a93a8cbf1 Fix for bug 163810 (Option Object created, own properties added, but Mozilla "forgets" them after some time.). r=sicking, sr=jst. 2002-09-20 13:40:53 +00:00
sicking%bigfoot.com 443bb6d0bc Bug 64945: XML Prettyprinting stage 1
r=peterv sr=jst
2002-09-04 06:57:25 +00:00
peterv%netscape.com 1182ac5c30 Fix for bug 138295 (XML Loading on Mac fails on .childNodes of non-root nodes). r=mstoltz, sr=jst. 2002-08-09 08:45:30 +00:00
sicking%bigfoot.com c2e51f12c5 Reenable same-origin checks. Patch by me and jst.
b=156452 r=peterv/sicking/jst sr=bz/jst a=chofmann
2002-07-18 05:53:28 +00:00
sicking%bigfoot.com 17bc6e66e4 Add same-origin checks in a few DOM methods. Patch by me and jst.
b=156452, r=jst/me, sr=bz, a=pending
2002-07-16 13:09:15 +00:00
sicking%bigfoot.com e19f713214 Add sameorigin checks to treewalker
b=156452, r=mstoltz, sr=jst, a=chofmann
2002-07-15 19:25:27 +00:00
bzbarsky%mit.edu ab09ad1a83 Make content lists lazy. Bug 104603, r=jkeiser, sr=jst 2002-06-28 01:30:09 +00:00
caillon%returnzero.com 4318c04f8d Bug 154401. Cannot paste HTML on clipboard into composition or editor windows.
r=bzbarsky, sr=kin
2002-06-26 21:05:00 +00:00
caillon%returnzero.com 56487d7001 Speed up and move the helper functions in nsRange to nsContentUtils and make compareTreePosition() faster.
Bug 144014 r=bzbarsky sr=jst
2002-06-25 20:03:06 +00:00
harishd%netscape.com c5b2e00d88 Strip leading/trailing spaces from img src attribute value that was preventing image rendering. b=87894, r=jkaiser, sr=jst 2002-06-11 23:23:12 +00:00
caillon%returnzero.com f14a42b26d Bug 117707. Disabling most of the prefs in Edit>Prefs>Advanced>Scripts/Windows was causing real JS scripts to break because it used CAPS. Move the checks for these features into C++, with new prefs. Patch by doronr@naboonline.com (initial work) and caillon@returnzero.com. r=fabian sr=jst a=asa. 2002-04-12 10:11:00 +00:00
dbaron%fas.harvard.edu f2747806e2 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 23:54:46 +00:00
timeless%mac.com dec943eb10 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
dougt%netscape.com 942988df26 Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172, 104316, 104420, 104426, 104461, 104511, 104527 2001-10-19 20:59:33 +00:00
jst%netscape.com 7ad971a08f Fixing bug 83433, exposing DOM constructors and prototypes to JS. r/sr=rpotts@netcape.com, vidur@netscape.com, dbradley@netscape.com 2001-07-11 09:09:30 +00:00
harishd%netscape.com 7ef87f6bbd 40072 - (patch provided by pollmann) Do not process METAs after FRAMESET. r=harishd sr=vidur
58809 - Handle numeric & hexadecimal entities correctly r=heikki sr=vidur
72249 - Per SGML endtag can contain whitespace between generic identifier and tagc. r=heikki sr=vidur
82971 - if the last character was a CR make sure to not lose that information. r=heikki sr=vidur
2001-07-05 22:20:34 +00:00
jst%netscape.com f7460d0269 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. 2001-05-08 16:46:42 +00:00
heikki%netscape.com de8d58f084 Checking in new files needed for layout split. Not part of the build yet. 2001-02-17 09:53:29 +00:00