424 Commits

Author SHA1 Message Date
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
asqueella%gmail.com
cf57b4c15a Bug 342487 - XSLT should use CheckLoadURIWithPrincipal
p=Ryan Jones <sciguyryan@gmail.com>
r+sr=jonas


git-svn-id: svn://10.0.0.236/trunk@230140 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 21:15:50 +00:00
bzbarsky%mit.edu
3906ef0e33 Don't start layout for XML just because the root has been opened. And don't
start layout until <html:head> closes if <html:head> gets opened.  For XHTML
documents, this should prevent flashes of unstyled content.

Also, don't flush tags unless forced to if a sheet is pending.

Bug 380028, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@229666 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 03:42:12 +00:00
Olli.Pettay%helsinki.fi
f918f74635 Bug 385315, Remove unused parameters from XML/XBL/RDFContentSink::FlushText, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@228812 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 04:22:36 +00:00
peterv%propagandism.org
544621f0d2 Fix for bug 383951 (nsXMLContentSink:: ReportError should ignore NS_ERROR_HTMLPARSER_INTERRUPTED). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@227812 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-11 10:15:17 +00:00
peterv%propagandism.org
7f92d79182 Fix for bug 343870 (Line breaks normalized twice). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@227809 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-11 09:15:27 +00:00
bzbarsky%mit.edu
829c92df27 Add an API to observe all loads in a CSSLoader. Change XML prettyprinting to
not start layout till after the prettyprinter stylesheet is loaded, so we don't
reflow and reconstruct the whole thing twice.  Bug 380612, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@227308 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-31 01:42:48 +00:00
jonas%sicking.cc
8aac19d83c Bug 366417: Set up scriptloader in the nsDocument ctor to ensure that the blocker-count stays in sync with the notification depth. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@227284 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-30 20:43:42 +00:00
bzbarsky%mit.edu
1fd9b3275d SVG Load events shouldn't need a presshell to fire. Bug 380417, r=jwatt and
smaug, sr=tor


git-svn-id: svn://10.0.0.236/trunk@226902 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 20:05:53 +00:00
mrbkap%gmail.com
5b0afeed77 Update our child counts if notifying on our children caused more updates. bug 376761, r=bzbarsky sr=sicking
git-svn-id: svn://10.0.0.236/trunk@226590 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-17 23:54:35 +00:00
bzbarsky%mit.edu
336e5d5940 Push the new content on the stack before calling BindToTree, since some
BindToTree implementations apparently flush out the sink (!).  Bug 372323,
r+sr=sicking.


git-svn-id: svn://10.0.0.236/trunk@226495 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 02:21:55 +00:00
bzbarsky%mit.edu
d2d337437c Introduce a GetPrimaryShell() API on nsIDocument. Convert existing callers of
GetShellAt(0) to using this API.  Bug 378780.  API introduction part by me,
r+sr=jst.  Mass-changes done by taras using squash, r+sr=me


git-svn-id: svn://10.0.0.236/trunk@225416 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 22:24:25 +00:00
bzbarsky%mit.edu
b230f09954 Don't unblock onload on the document if we no longer have a parser. Bug
375051, r=mbkap, sr=sicking


git-svn-id: svn://10.0.0.236/trunk@225123 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-27 04:05:08 +00:00
bzbarsky%mit.edu
9b9e29922e Stop blocking the parser on CSS stylesheet loads. We still block script
execution on them, however.  Bug 84582, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@224813 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-20 22:59:18 +00:00
bzbarsky%mit.edu
c11b9496d3 Make sure to end our update before we decrement mSink->mInNotification. Bug
373669, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@224288 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-07 00:20:09 +00:00
Olli.Pettay%helsinki.fi
6de13cdbca 375196, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@222385 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-26 05:38:22 +00:00
bzbarsky%mit.edu
22cd821e27 Relanding bug 267833. Let's see what Txul does now. Still r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@221651 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 23:43:50 +00:00
bzbarsky%mit.edu
1646da9ee6 Back out bug 267833 to test performance effect.
git-svn-id: svn://10.0.0.236/trunk@221409 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 21:12:49 +00:00
bzbarsky%mit.edu
dc7b70aa9c Fire XBL constructors asynchronously after binding attachment, unless we're in
the middle of an update.  In that case, fire them at the end of the update.
Bug 267833, r+sr=sicking, fingers-crossed=me


git-svn-id: svn://10.0.0.236/trunk@221404 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 19:36:36 +00:00
tor%cs.brown.edu
cd7fb65143 Bug 370210 - SVG onload attribute broken since incremental XML landing.
r=hsivonen, sr=sicking


git-svn-id: svn://10.0.0.236/trunk@221077 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 17:28:17 +00:00
jonas%sicking.cc
465b8fad66 Bug 370230: unbreak --enable-perf-metrics. Patch by me and Mats Palmgren. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@220080 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-13 21:18:25 +00:00
sharparrow1%yahoo.com
4e50607a9e Bug 370185: clean up view header includes (trivial). rs=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@219987 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-12 19:17:33 +00:00
Olli.Pettay%helsinki.fi
e9ed4c38ab Bug 369753, remove nsIXMLContent, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@219798 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-09 00:15:14 +00:00
bzbarsky%mit.edu
5d122039d9 Hoist the ref-scrolling stuff up to nsContentSink. Bug 369015, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219436 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-03 00:48:29 +00:00
bzbarsky%mit.edu
a4c17fc701 Make sure to initialize all members and that sort of thing. Bug 369011, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219372 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-02 02:12:48 +00:00
jonas%sicking.cc
dc89ea1f2d Bug 18333: Make the XML content sink incremental. Patch by Henri Sivonen<hsivonen@iki.fi>. r=peterv sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219201 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 21:21:06 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +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
cvshook%sicking.cc
b6bee32b30 Bug 221335: Speed up output by using internal methods and interfaces rather than nsIDOMNode and friends. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@213051 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-03 02:22:22 +00:00
bzbarsky%mit.edu
98edc48be7 Remove unneeded notification on node creation. Bug 351910, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@209835 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 04:48:12 +00:00
cvshook%sicking.cc
02de6f657e Bug 324092: Allow XSLT output handlers to fail. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@209472 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-08 21:09:43 +00:00
bzbarsky%mit.edu
b59b0dd36c Allow nsIExpatSink implementations to control whether the expat driver logs
parse errors to the console.  Bug 342164, patch by Alex Vincent
<ajvincent@gmail.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@208410 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 16:34:57 +00:00
bzbarsky%mit.edu
6120458898 Allow anonymous box selectrors in catalog sheets loaded via our doctype. Bug
347303, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@206571 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 15:02:28 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
cvshook%sicking.cc
aba7c6ff77 Bug 342062: Add nsIMutationObserver which has the ability to get notifications for just mutations happening in a subtree under a given node. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@201460 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-02 07:23:10 +00:00
peterv%propagandism.org
40c612fc40 Fix for bug 337704 (Clean up files moved from xmlextras). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@200030 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 20:30:44 +00:00
benjamin%smedbergs.us
3a80a8ef78 Sweeping up after irresonsible content hackers who break the tree and go to lunch... ;-)
git-svn-id: svn://10.0.0.236/trunk@197993 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 10:51:56 +00:00
cvshook%sicking.cc
99cbbe5339 Bug 194387: Support parameter-passing in PI XSLT transformations. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@197991 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 10:29:43 +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
cvshook%sicking.cc
750f907d8b Bug 314985. Merge adjacent textnodes when the document is going to be transformed by XSLT. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@193669 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 06:17:51 +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
peterv%propagandism.org
c7f6949390 Fix for bug 286132 (xml-stylesheet PI doesn't handle href attribute as in specification), checking in the right patch this time. r=sicking, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@192539 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-17 14:38:57 +00:00
peterv%propagandism.org
ec404d9e2f Backing out to fix bustages.
git-svn-id: svn://10.0.0.236/trunk@192477 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-16 15:12:21 +00:00
peterv%propagandism.org
2c216711c7 Fix for bug 286132 (xml-stylesheet PI doesn't handle href attribute as in specification). r=sicking, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@192471 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-16 13:47:42 +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
d3ecc5dd10 bug 323908: Pass line and column information to ReportError. Patch by Robert Sayre <sayrer@gmail.com>. r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@187941 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 02:02:02 +00:00
bzbarsky%mit.edu
31719bf3ba Implement an nsINode interface; move some common stuff from nsIContent and
nsIDocument to nsINode.  Bug 323311, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@187813 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 03:34:18 +00:00
bzbarsky%mit.edu
cf434cba7f Remove content ids. Bug 166637, r=sicking, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@185376 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 16:47: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