bzbarsky%mit.edu
c393f33945
Reoder some checks to do the fast one that will test false most often
...
first. Bug 398222, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@237379 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-07 18:23:52 +00:00
bzbarsky%mit.edu
7206991ea7
Block scripts in subframes if the parent has script blocked in the
...
scriptloader. Fixes bug 383331, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@236846 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 15:15:07 +00:00
bzbarsky%mit.edu
fa6a4df864
Fix bug 397605. r+sr+a=jst
...
git-svn-id: svn://10.0.0.236/trunk@236716 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-26 16:52:33 +00:00
bzbarsky%mit.edu
b9d92a233a
Make NS_CheckContent(Load|Process)Policy only take a principal, not a principal
...
and a uri. Get the URI from the principal. Bug 391438, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@231781 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-10 05:35:09 +00:00
bzbarsky%mit.edu
3811c88532
Use the principal doing the load to decide on the URI to pass to content
...
policies. This will help do the right thing for data:/javascript:/about:blank,
as well as allow us to skip content policies altogether if the caller is
system. Bug 388597, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@231622 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-08 01:16:12 +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
4a682ca25f
Don't block the parser on scripts we'll never execute. Bug 371743, r+sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@224419 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-11 20:18:11 +00:00
jonas%sicking.cc
8c63998a0e
Bug 371576: Execute scripts syncronously when inserted in the tree whenever possible. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@221142 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-01 08:11:40 +00:00
cvshook%sicking.cc
b7959518a4
Bug 364692: Process pending script requests asynchronously when the last blocker is removed. r/sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@218040 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-09 01:07:29 +00:00
timeless%mozdev.org
c778d21502
Bug 355300 There should be only one nsGkAtoms creature
...
r=dbaron
git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
cvshook%sicking.cc
0b9688294e
Bug 343730: Don't execute scripts synchronously from BindToTree. Instead we wait until the last EndUpdate has been called. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@214702 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-04 05:45:02 +00:00
bzbarsky%mit.edu
2d7539378c
Make nsIStreamLoader and nsIUnicharStreamLoader be stream listeners. Bug
...
281153, patch by Son Le <son.le0@gmail.com>, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@214092 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-24 21:47:40 +00:00
mrbkap%gmail.com
f589fe7b13
Always report uncaught exceptions to avoid bad interactions with the JS interpreter. bug 343596, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@201609 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-05 21:43:46 +00:00
dveditz%cruzio.com
f869942298
Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
...
simplify OOM checks when growing an nsAString. r/sr=darin
git-svn-id: svn://10.0.0.236/trunk@200610 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:30 +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
brendan%mozilla.org
a85698177b
Fix orange balsa by landing mrbkap's patch for 326497, plus other fixes (340340, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@199021 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-05 07:18:02 +00:00
timeless%mozdev.org
7185e837bc
Bug 337917 Make consumers stop using cids from other modules
...
r=smontagu sr=darin
git-svn-id: svn://10.0.0.236/trunk@198973 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-03 23:35:59 +00:00
cvshook%sicking.cc
cec9ea1123
Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
bzbarsky%mit.edu
bf19ef708d
Rename GetNodePrincipal to NodePrincipal. Bug 327246, r+sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@195579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:21:11 +00:00
bzbarsky%mit.edu
14903561f3
Add comments describing some more files.
...
git-svn-id: svn://10.0.0.236/trunk@193306 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:00:42 +00:00
bryner%brianryner.com
1de3fc0366
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.
...
git-svn-id: svn://10.0.0.236/trunk@192794 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 18:36:36 +00:00
bzbarsky%mit.edu
d77c1d1349
Remove bogus comment. Bug 327071.
...
git-svn-id: svn://10.0.0.236/trunk@190084 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-15 06:21:32 +00:00
bzbarsky%mit.edu
c3ad7ac1fe
Improve function naming and documentation. Bug 327071, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@189915 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 02:04:20 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
1510aacc39
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
git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
mrbkap%gmail.com
61c90940c0
When we don't find a </script> tag, we should put the entire rest of the document into the script element, but not execute the script. This also makes serialization not serialize the end tags for scripts that don't have them (to preserve round tripping). bug 305873, r=sicking sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188619 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:19:46 +00:00
cvshook%sicking.cc
ceaf7bdebc
Bug 323910: Merge atom lists in gklayout
...
r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@187798 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 00:58:12 +00:00
bzbarsky%mit.edu
8ac26548d7
Make sure to call FireErrorNotification whenever we need to. Bug 318473,
...
r=sicking, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185562 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-02 04:32:18 +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
cvshook%sicking.cc
b26f9f52fb
Bug 311827: Make GetAttr return a bool rather then an nsresult.
...
r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
peterv%propagandism.org
8c33ea74e1
Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@182242 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 09:07:29 +00:00
peterv%propagandism.org
86ac4d2e8f
Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). Patch by sicking, updated by peterv, r=bz, sr=peterv.
...
git-svn-id: svn://10.0.0.236/trunk@180911 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-24 18:43:15 +00:00
peterv%propagandism.org
b64b04886f
Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 10:08:43 +00:00
brendan%mozilla.org
bd4b1976a0
Add JS1.6 support, moving E4X and Array extras there (306664, r/sr=mrbkap/shaver).
...
git-svn-id: svn://10.0.0.236/trunk@179702 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 17:43:36 +00:00
bzbarsky%mit.edu
e79cce1c42
Allow passing a cached nsIContentPolicy service pointer to
...
NS_CheckContent*Policy if the caller has one. Bug 304845, r=biesi, sr=jst
git-svn-id: svn://10.0.0.236/trunk@178242 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 15:00:01 +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
brendan%mozilla.org
83e220112b
Support text/ecmascript and other types specified in http://www.ietf.org/internet-drafts/draft-hoehrmann-script-types-03.txt (r=sicking, sr=jst, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@174566 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-14 16:08:05 +00:00
cbiesinger%web.de
27cc66747f
bug 241739 reuse HTML/SVG's <script> loading code for XUL <script>, thus
...
correctly handling non-ASCII characters
r+sr=bz a=asa
git-svn-id: svn://10.0.0.236/trunk@174479 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-12 12:32:05 +00:00
mrbkap%gmail.com
0aecc2c0de
bug 271184: The output of nested document.write()s can get reversed (where later document.write()s are seen before previous document.write()s). This makes nsHTMLDocument use good parser keys. r=sicking sr=jst a=asa
...
git-svn-id: svn://10.0.0.236/trunk@174220 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-07 19:21:05 +00:00
brendan%mozilla.org
bd18836060
Nullify version selection via <script language='JavaScript1.x'> to match other browsers (255895, r+sr=jst).
...
git-svn-id: svn://10.0.0.236/trunk@169512 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-20 03:35:21 +00:00
doronr%us.ibm.com
e54571aca7
Checked in from wrong tree, backing out, sorry.
...
git-svn-id: svn://10.0.0.236/trunk@169428 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 21:28:20 +00:00
doronr%us.ibm.com
3831773869
Bug 279057 - Implement hasFeature for XForms. Patch by smaug, r=bryner/sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@169427 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 21:20:27 +00:00
brendan%mozilla.org
38cce7f3f7
Support ;e4x=1 MIME parameter after application/x-javascript or text/javascript to enable E4X (270553, r+sr=jst).
...
git-svn-id: svn://10.0.0.236/trunk@167294 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 07:25:29 +00:00
jst%mozilla.jstenback.com
57e55d8a58
Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu
...
git-svn-id: svn://10.0.0.236/trunk@161580 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 16:50:12 +00:00
bzbarsky%mit.edu
50d5ce0bc2
Switch context back to being nsISupports, but make it clear that it's expected
...
to be an nsIDOMNode or nsIDOMWindow. Bug 252027, r=mvl, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@159916 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 17:15:53 +00:00
tor%cs.brown.edu
bcbc310507
Bug 235826 - <svg:script> implementation.
...
Patch by alex@croczilla.com , r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@158808 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-06 22:52:03 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
jst%mozilla.jstenback.com
c21b6f5c4d
Fixing bug 245619. Don't bother serializing the result of JS execution when the caller doesn't care about the value. r+sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@157744 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 00:48:00 +00:00
mvl%exedo.nl
c0b2e4667b
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
git-svn-id: svn://10.0.0.236/trunk@156366 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 18:34:18 +00:00