891 Commits

Author SHA1 Message Date
bryner%brianryner.com
8ff3b3da53 Fix fastback to not leave the documents-loading counter unbalanced, which would lead to not using the performance-favoring event loop hint after the first fastback. Bug 298794, r+sr=darin, a=chase.
git-svn-id: svn://10.0.0.236/trunk@175193 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-28 02:51:04 +00:00
bryner%brianryner.com
9923520447 Fix failure to repaint on Mac with fastback enabled (bug 298112). Hide the old contentviewer before we invalidate. r=darin sr=dbaron a=asa.
git-svn-id: svn://10.0.0.236/trunk@175111 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 21:08:10 +00:00
bryner%brianryner.com
331cadb813 Fix pending-loads check for fastback so that we detect loads initiated either before or after Stop() is called. Fix assert on reload. Fix problem where the wrong load type was being checked in CanSavePresentation(). Fix problem where we cached a content viewer on the current history entry when it was equal to the new history entry. Bugs 292954 and 292950. r+sr=darin, a=asa.
git-svn-id: svn://10.0.0.236/trunk@175110 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 20:53:43 +00:00
bryner%brianryner.com
89fff37c75 For fastback, dispatch the title change notification after we've updated our history entry in the docshell, so that we don't set the title on the wrong history entry. Bug 296745, r+sr=darin, a=asa.
git-svn-id: svn://10.0.0.236/trunk@174884 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 22:06:30 +00:00
roc+%cs.cmu.edu
e05c85a204 Bug 296315. Remove unimplemented nsIScrollableView::GetScrollbarVisibility, implement nsDocShell::GetScrollbarVisibiilty to use nsIScrollableFrame::GetActualScrollbarSizes, which actually works. r+sr=bzbarsky,a=asa
git-svn-id: svn://10.0.0.236/trunk@174751 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-17 02:48:29 +00:00
bryner%brianryner.com
3274ca4c10 Fix assorted issues with fastback, including adding progress listener notifications and introducing the PageHide and PageShow events. See bug 292971 for all of the details. r=darin, sr=bzbarsky, a=shaver.
git-svn-id: svn://10.0.0.236/trunk@174651 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-15 23:52:46 +00:00
bryner%brianryner.com
285552136f Fix incorrect tinderbox popups with fastback (bug 292933). Make sure mLSHE is nulled out when we finish fastback navigation. r+sr=darin, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@174135 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-03 22:17:06 +00:00
bryner%brianryner.com
797bf6de91 When restoring a presentation via fast-back, where we aren't going to save the existing presentation, defer destruction on a PLEvent to avoid hangs when reentering plugin code (bug 294231). r+sr=jst, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@174012 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 00:57:54 +00:00
cbiesinger%web.de
0266fce802 295279 pass the origin charset of the URI to the error page, esp. for use by
embeddors
patch by Christian Persch <chpe@gnome.org> r=biesi sr=bz a=shaver


git-svn-id: svn://10.0.0.236/trunk@173961 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 19:19:01 +00:00
jag%tty.nl
69ac719674 Attempt to fix btek bustage
git-svn-id: svn://10.0.0.236/trunk@173539 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-18 09:54:04 +00:00
bryner%brianryner.com
7d8cc2fcc3 Fix save/restore of form control contents when reloading (bug 294258). r=sicking, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@173534 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-18 03:52:33 +00:00
bryner%brianryner.com
b3fad70a54 Fix crash with fast-back enabled when a reload wipes out a cached docshell (bug 293534). r+sr=bzbarsky, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@173450 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 00:30:02 +00:00
dveditz%cruzio.com
7792b0edf7 bug 292691 plug IconURL and history.back() XSS exploits fixed in firefox 1.0.4
docshell patch by jst, r=bz,brendan;sr=dveditz,shaver;a=asa
xpinstall patch by dveditz and vlad; r=vlad,jst; sr=jst,shaver; a=asa


git-svn-id: svn://10.0.0.236/trunk@173419 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-13 23:08:09 +00:00
bzbarsky%mit.edu
676bea63e1 Back out the change for bug 277092, since it breaks other compat and pages.
Bug 292921, r=jst, sr+a=brendan


git-svn-id: svn://10.0.0.236/trunk@173196 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-08 21:44:16 +00:00
bryner%brianryner.com
c7593f2912 Don't crash when we've restored a presentation with a frame that has never loaded a document. Bug 292923, r+sr=bzbarsky, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@173116 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-06 18:18:08 +00:00
bryner%brianryner.com
189a661d09 Add support for caching content viewers in session history to speed up back/forward (bug 274784). This initial landing has the feature disabled by default; set browser.sessionhistory.max_viewers to the maximum number of pages to cache to enable the feature. r=bzbarsky, sr/a=brendan.
git-svn-id: svn://10.0.0.236/trunk@173044 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-04 20:22:32 +00:00
roc+%cs.cmu.edu
131435cb9a Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172836 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:57:22 +00:00
cbiesinger%web.de
e65e51f114 291876 fall back to Alert() instead of an error page when we have no nsIURI object
r=bz sr=darin a=asa


git-svn-id: svn://10.0.0.236/trunk@172769 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-27 11:53:27 +00:00
bzbarsky%mit.edu
fea41970b2 Reposting when expired from cache should make sure to use the right history
entry; otherwise docshell is confused about which page it currently has
loaded.  Bug 289301, r=biesi, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@172476 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-20 04:41:48 +00:00
darin%meer.net
d57073c4b3 patch for bug 287648 "make nsIDNSService use nsICancelable and move private methods to nsPIDNSService" r=biesi sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171761 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 01:33:28 +00:00
cbiesinger%web.de
5d85d7ccaa bug 283489 r=darin sr=bz
- Make the HTTP, FTP and file channels implement nsIPropertyBag2 and associated
  interfaces (by inheriting from nsHashPropertyBag)
- Use that interface to expose a "content-length" property giving the length of
  the data as a 64-bit value on the FTP and HTTP channels
- change docshell and xpinstall to use nsIPropertyBag2 instead of nsIProperties
  to read/write the referrer property


git-svn-id: svn://10.0.0.236/trunk@171661 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-05 17:40:32 +00:00
bzbarsky%mit.edu
c980dc5f76 Move processing of various headers from the content sink into the document so
it'll happen for all of our document types.  Bug 288921, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@171627 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-05 03:28:54 +00:00
roc+%cs.cmu.edu
64b260501e Bug 288117. Fix regressions in nsDocShell::SetCanvasHasFocus and in nsListBoxBodyFrame/nsListBoxObject where code made obsolete assumptions about scrollframe structure. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171540 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-03 21:02:47 +00:00
bzbarsky%mit.edu
2c2f36952d Make sure to clone the page descriptor before changing its properties. Also
some cleanup of the GetCurrentDescriptor code.  Bug 285828, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@171531 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-03 16:51:01 +00:00
bzbarsky%mit.edu
b7f2b5b8a5 Don't fire onLocationChange for initial loads in subframes; reverts old
behavior.  Bug 285738, patch by William A. Gianopoulos
<wgianopoulos@yahoo.com>, r=jst, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@171363 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 04:22:00 +00:00
jst%mozilla.jstenback.com
caebf07943 Fixing bug 284993. Make sure the new content viewer is properly initialized before fireing location changed notifications. r=bzbarsky@mit.edu, sr=darin@meer.net
git-svn-id: svn://10.0.0.236/trunk@170437 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-09 14:31:02 +00:00
cbiesinger%web.de
af30395567 181938 allow any protocol to support redirection, using a new
nsIChannelEventSink interface.
r=darin sr=bz


git-svn-id: svn://10.0.0.236/trunk@170312 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 19:46:06 +00:00
jst%mozilla.jstenback.com
8c0a4e56f8 Fixing bug 277574. Make sure all modal dialogs, not just the ones that come from DOM calls, bring the requesting tab to focus. r=dveditz@cruzio.com, sr=darin@meer.net
git-svn-id: svn://10.0.0.236/trunk@169699 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 23:31:37 +00:00
jst%mozilla.jstenback.com
4240308d76 Fixing bug 209020. Make midas (document eiditing mode) not partially persist when leaving a page, and make it possible to turn off designMode dynamically in a page. r=brade@comcast.net, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@169674 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 21:27:20 +00:00
bzbarsky%mit.edu
c368ba2ba4 Remove the parentURIContentListener attribute on docshell; people not using
nsIWebBrowser can getInterface the docshells nsIURIContentListener and set its
parent.  Bug 283108, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@169608 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-22 19:56:11 +00:00
jshin%mailaps.org
b918fc6323 bug 244754 : URL is not shown in the status bar when hovering over a url-escaped URL in an encoding different from the document enecoding (r=darin, sr=bzbarsky)
git-svn-id: svn://10.0.0.236/trunk@169604 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-22 18:25:12 +00:00
bzbarsky%mit.edu
72a6885a89 Docshell doesn't need to hold a pointer to the scriptcontext; the window does
it.  Bug 282807, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@169528 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-20 17:02:02 +00:00
bzbarsky%mit.edu
921bb06afc Scan for plugins when we're asked whether we can handle a type, not when we
actually go to handle it.  Bug 273785, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@169468 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 02:43:03 +00:00
bzbarsky%mit.edu
f609d7f69c Make sure that we have an mParentContentListener at all times in docshell. Bug
282644, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@169402 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 18:20:42 +00:00
danm-moz%comcast.net
fbcab81ca7 unnamed windows can't be a named target. bug 278143 r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169020 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 23:16:52 +00:00
silver%warwickcompsoc.co.uk
80283ef173 Bug 277658 - Make error pages URL a preference.
r=biesi
sr=bz
p=bugmail@q1n.org (Vidar Braut Haarr)


git-svn-id: svn://10.0.0.236/trunk@168714 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 19:42:21 +00:00
bzbarsky%mit.edu
3040cb0efe Make STOP_CONTENT not only stop the content viewer, but also cancel all pending
timeouts and intervals. Bug 277092, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@168587 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 22:49:42 +00:00
bzbarsky%mit.edu
ac25fe7675 Undo the checkin for bug 135811 and refix it better. Fixes bug 279495.
r=danm, sr=jst


git-svn-id: svn://10.0.0.236/trunk@168576 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 20:46:24 +00:00
cbiesinger%web.de
f69f427f1a 157004 don't fire onLocationChange for error pages, and don't change the
docshell's currentURI either. be sure to add the failed URL to session history.

r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@168541 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 11:26:31 +00:00
bzbarsky%mit.edu
2395db24cd Session history traversals from URI with anchor to same URI without anchor
should scroll.  Bug 280215, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@168532 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-30 20:53:42 +00:00
bzbarsky%mit.edu
c4da8e60d3 When doing window access security checks, make sure to treat wyciwyg URIs as
equivalent to their creators.  Bug 270414, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@168131 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-21 16:58:45 +00:00
bzbarsky%mit.edu
b1e96a8340 Add a webnavigation flag to allow callers to stop content, not just stop
network activity.  Make nsLocation use this so it doesn't stop content
unnecessarily.  Bug 277224, r=darin, sr=jst


git-svn-id: svn://10.0.0.236/trunk@168065 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 16:57:04 +00:00
bzbarsky%mit.edu
b9910f7dd3 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


git-svn-id: svn://10.0.0.236/trunk@167788 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-15 17:47:23 +00:00
bzbarsky%mit.edu
d040a84fb5 If we run into a null child SHEntry while cloning, just clone it as null into
the new tree instead of bailing out on the clone altogether.  Bug 275890,
r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@167573 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-12 02:49:24 +00:00
jst%mozilla.jstenback.com
c490295683 Fixing bug 277564. Make sure to update the lock icon state correctly when dealing with wyciwyg: URLs. r=bugmail@sicking.cc, dveditz@cruzio.com, darin@meer.net, sr=brendan@mozilla.org, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@167554 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-12 00:00:53 +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
dveditz%cruzio.com
8b9d168c56 bug 266554 need real referrer internally for various uses. patch by jst, r/sr=dveditz,darin (ported from aviary)
git-svn-id: svn://10.0.0.236/trunk@167292 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 06:04:46 +00:00
bzbarsky%mit.edu
2ac7d9b285 Fix build bustage (swap() called on a cast pointer makes some compilers
unhappy, apparently....).  Bug 272471.


git-svn-id: svn://10.0.0.236/trunk@166437 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 18:02:40 +00:00
bzbarsky%mit.edu
90a640bdff Make docshell inherit from docloader; clean up related code, move toward
eliminating the nsIWebShell, nsIWebShellContainer, nsIDocumentLoader
interfaces and clarifying the other docshell-related interfaces.
r=darin, biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@166435 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 17:32:06 +00:00
bzbarsky%mit.edu
166d0c5c83 Going from foo#bar to foo shouldn't do an anchor scroll. Bug 273158, r=biesi,
sr=darin


git-svn-id: svn://10.0.0.236/trunk@166434 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 17:02:56 +00:00