101 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
dabf286525 Bug 467005. Be smarter about our removable script blockers. r=sicking, sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259161 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-03 19:11:13 +00:00
jonas%sicking.cc
7647002619 Don't keep a separate count of currently running scripts in the parser since all sorts of badness happens if there's running scripts when we create a new parser. r/sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@257021 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 06:54:35 +00:00
mrbkap%gmail.com
070e8296b2 Bug 444322 - Ignore OnDataAvailable calls when we're executing a script. r+sr=bzbarsky/jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255767 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:40:47 +00:00
bent.mozilla%gmail.com
8369be1fe9 Bug 425551 - "Fix async DOM events from keeping link elements alive past unlink". r+sr=sicking, a=beltzner.
git-svn-id: svn://10.0.0.236/trunk@250079 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-11 17:29:11 +00:00
jonas%sicking.cc
1cbce53417 Backing out due to test failures
git-svn-id: svn://10.0.0.236/trunk@249885 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-09 03:20:42 +00:00
jonas%sicking.cc
44f2be870f Bug 425551: Improve script blocker code and use it to prevent async DOM events from keeping link elements alive past CC. Patch by bent. r/sr=sicking
git-svn-id: svn://10.0.0.236/trunk@249878 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-09 02:06:31 +00:00
peterv%propagandism.org
2eaf19396d Fix for bug 415192 (Crash (within nsCycleCollector::Shutdown and nsXBLBinding::RemoveInsertionParent) with <xul:wizard>, cloneNode). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@248764 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-28 14:09:03 +00:00
jruderman%hmc.edu
ff28d9eca0 Make nsContentSink, instead of subclasses, be responsible for making sure RemoveObserver is called (bug 420835). r+sr=sicking, a=blocking1.9+.
git-svn-id: svn://10.0.0.236/trunk@247070 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-05 04:54:21 +00:00
roc+%cs.cmu.edu
342a643308 Bug 317189. Do the second-scroll-to-anchor on onload (i.e. subresources have loaded), not just when the document has finished loading. Also, don't do it at all if the user has scrolled manually between the first anchor scroll and the second. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246661 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 10:01:18 +00:00
jonas%sicking.cc
35f305467d Bug 416534: Clean up cross-site xmlhttprequest security checks. With fixes to tests this time. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@246616 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 03:45:32 +00:00
myk%mozilla.org
425e84676b backing out fix for bug 416534 as potential cause of mochitest failure
git-svn-id: svn://10.0.0.236/trunk@246615 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 03:23:38 +00:00
jonas%sicking.cc
05e58d7ee2 Bug 416534: Clean up cross-site xmlhttprequest security checks. r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@246608 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 02:17:52 +00:00
bent.mozilla%gmail.com
e21a2262ee Bug 386769 - "Make setting innerHTML faster". r=jst, sr=peterv, a=blocking1.9.
git-svn-id: svn://10.0.0.236/trunk@245266 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-08 22:07:53 +00:00
bzbarsky%mit.edu
cc0346a98b When showing a document viewer, don't start layout on the documnt unless it's
already had layout started once.  Otherwise, just wait for the sink, or whoever
is responsible for it, to start layout once they're ready.  Bug 404470, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@243619 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 18:02:03 +00:00
dcamp%mozilla.com
72024253e9 Bug 402272: Replace <link rel="offline-resource"> with manifests, and navigator.offlineResources/pendingOfflineLoads with window.applicationCache. p=dcamp/Honza Bombas, r=biesi, r+sr=jst, blocking1.9=jst
git-svn-id: svn://10.0.0.236/trunk@243319 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-16 21:54:35 +00:00
dcamp%mozilla.com
9f40ca2397 move the offline cache update logic from the content sink and prefetch service into an nsOfflineCacheUpdate object. bug=388839, r=biesi, sr=jst
git-svn-id: svn://10.0.0.236/trunk@230909 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 05:35:40 +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
dcamp%mozilla.com
807016d25e implement navigator.pendingOfflineLoads. b=372969, r=biesi, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@229529 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-09 06:19:29 +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
sayrer%gmail.com
d143b58aff bug 384507. nsContentSink.h contains static non-member functions and globals. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@228268 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 22:44:12 +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
roc+%cs.cmu.edu
3522336c80 Bug 372970. Implement navigator.offlineResources. patch by Dave Camp, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@227141 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-29 09:45:34 +00:00
Olli.Pettay%helsinki.fi
8b4c3d38dd Bug 378776, Need safe way to iterate a document's presshells, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@226813 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 21:45:07 +00:00
mrbkap%gmail.com
a18ef71807 Don't assume that the parser is still enabled after we've returned to the event loop. bug 380590, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@226755 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 22:40:59 +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
cbiesinger%web.de
6e69609e46 Bug 370195 – sql device for the offline cache
patch by Dave Camp <dcamp@mozilla.com> r=jst (content part) r=biesi (rest)


git-svn-id: svn://10.0.0.236/trunk@226398 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-14 20:09:20 +00:00
bzbarsky%mit.edu
fa937acf1d Process XBL constructors right after the frame construction in
InitialReflow().  Bug 377119, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@226371 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-14 03:52:49 +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
708c53b956 Make InitialReflow just post a reflow event instead of doing a synchronous
reflow.  Bug 378975, r=dbaron and Eli Friedman, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@225391 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 17:15:08 +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
e2223aa143 Flush tags before calling StartLayout; otherwise we might end up
double-constructing frames for whatever content we hadn't notified on yet.  Bug
378559, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@225104 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 18:57:58 +00:00
bzbarsky%mit.edu
4d238d61d2 Fix the vertical scrollbar guessing in nsHTMLScrollFrame to do better for an
initial reflow if we're doing that initial reflow a ways into the document
load.  Bug 378480, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@225067 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 02:29:21 +00:00
bzbarsky%mit.edu
e06f02a85d Back out. This actually hurts Tp2, the mac reftests are _still_ orange
git-svn-id: svn://10.0.0.236/trunk@224929 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-24 07:33:58 +00:00
bzbarsky%mit.edu
d341915f41 Another peformance test for bug 378480. Will back out in a few cycles.
git-svn-id: svn://10.0.0.236/trunk@224928 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-24 05:46:11 +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
roc+%cs.cmu.edu
f427e2bbff Bug 367447. Support <link rel="offline-resource">. Patch by Dave Camp, r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@221859 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-14 01:52:07 +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
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
sharparrow1%yahoo.com
ac106dc516 Bug 370379: Create views less frequently. Stops creating views for -moz-hidden-unscrollable, opacity, fixed backgrounds, and scrollbars, plus removes some unneeded methods from views and view managers. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@220852 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 00:23:42 +00:00
bzbarsky%mit.edu
d469ce73e6 Remove the dummy parser request. Bug 294115, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@219844 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-09 04:50:13 +00:00
bzbarsky%mit.edu
e00419d442 These aren't actually interface methods. Bug 369167, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219465 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-04 05:14:23 +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
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
Olli.Pettay%helsinki.fi
8c8d5effa7 Bug 337586, Crash [@ PresShell::InitialReflow] when window gets destroyed duren beforeunload event handler, pressing reload, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@196551 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 17:51:35 +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