1536 Commits

Author SHA1 Message Date
cbiesinger%web.de
90e318b6fe bug 309702 handle a missing presshell gracefully (happens for display:none
iframes)
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@180870 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-23 17:35:08 +00:00
mrbkap%gmail.com
af75b509d1 bug 306909: Protect against a null mScriptLoader so that we don't crash if we haven't been properly initialized and we're asked to document.write(). r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@180834 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 23:01:33 +00:00
bzbarsky%mit.edu
33eede8798 Pass a boolean indicating whether we've sent a ContentInserted or
ContentAppended notification to DoneAddingChildren.  Bug 309534, r=mrbkap,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@180787 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 02:33:36 +00:00
cbiesinger%web.de
054912c09e bug 1156
- Make object frames have no children
  - Make the frame constructor construct a subdocumentframe, object frame or
    image frame as appropriate
- start the load of <applet>, <embed> and <object> in content code
- fallback to alternate rendering correctly

NOTE: This checkin will break the plugin finder. This will be fixed soon.

r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@180762 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-21 19:14:30 +00:00
mrbkap%gmail.com
9d34c156e2 bug 308140: Make sure to match open and close head calls in the fragment sink, so that other elements don't get closed too early. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@180756 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-21 18:11:05 +00:00
mrbkap%gmail.com
8845072107 bug 264811: Only null out mParser when we're sure that we're not going to be handling any more document.writes(). r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@180340 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 00:19:14 +00:00
timeless%mozdev.org
cb6d168fcc Bug 308573 use if (NS_FAILED(...)) instead of if NS_FAILED(...)
patch by b.jacques@planet.nl r=darin sr=darin


git-svn-id: svn://10.0.0.236/trunk@180324 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-15 23:17:17 +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
mrbkap%gmail.com
4045b60295 bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@179916 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:03:47 +00:00
bzbarsky%mit.edu
0b6167cb4d Fix brendan's nit for bug 299689, r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@179857 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-08 18:39:12 +00:00
bzbarsky%mit.edu
8c2d114c59 Once we've had enough ID lookup misses, make the ID table completely live. Bug
299689, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@179801 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-07 17:04:34 +00:00
bzbarsky%mit.edu
bcd2bcaa21 Make addition or removal of frames in a frameset actually change the
rendering.  Bug 306660, r=jst, sr=roc


git-svn-id: svn://10.0.0.236/trunk@179676 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 02:14:36 +00:00
bob%bclary.com
5a13630914 Bug 303502 - make DOM Don't call me! asserts more meaningful, r=peterv,sr=jst
git-svn-id: svn://10.0.0.236/trunk@179629 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 18:16:58 +00:00
peterv%propagandism.org
f5f85d2946 Fix for bug 298064 (nsContentUtils::GetDocumentFromCaller() is broken.). r=jst, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@179553 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-02 18:02:51 +00:00
bzbarsky%mit.edu
049e52625b Fix comment per my review comments. Bug 305640.
git-svn-id: svn://10.0.0.236/trunk@179124 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 05:16:06 +00:00
vladimir%pobox.com
f561d566b0 b=304561, firefox unsuitable for browsing high-res image galleries due to preview on tab icon, r=mconnor,sr=bzbarsky,a=asa
git-svn-id: svn://10.0.0.236/trunk@178982 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 20:05:24 +00:00
peterv%propagandism.org
bcd5fc4014 Fix for bug 301490 (Rich text editor property useCSS changed meaning). r=brade, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@178929 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 11:51:04 +00:00
jst%mozilla.jstenback.com
b4ac0c9234 Fixing bug 305640. Make document.getElementById() work correctly when the hash changes when flushing. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@178909 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 05:17:06 +00:00
bzbarsky%mit.edu
a8c7d445d5 Make sure that a reflow flush on the document makes the sink start layout if
needed.  Bug 253951, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178851 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 20:56:58 +00:00
bzbarsky%mit.edu
d1afb179ba Make nsIPresShell::GetPrimaryFrameFor return nsIFrame* instead of using an out
param.  Bug 303779, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@178642 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:24:29 +00:00
cst%andrew.cmu.edu
0e0b27bf8a Bug 305215 Fix crash going back while loading an image [@ ImageListener::OnStopRequest] (regression from bug 292503)
patch by Frank Wein <bugzilla@mcsmurf.de>, r=biesi sr=jst


git-svn-id: svn://10.0.0.236/trunk@178522 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-20 22:47:10 +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
cst%andrew.cmu.edu
88c4924d49 Bug 292503 Working images should not have alt text that says there is an error
r=biesi sr=jst


git-svn-id: svn://10.0.0.236/trunk@177926 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 02:49:47 +00:00
bzbarsky%mit.edu
ed6b561eb2 Make sure to set base tag info on the leaf forms we create when HTML is
misnested.  Bug 73818, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@177916 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 22:57:11 +00:00
mrbkap%gmail.com
1990895d08 bug 303267: Store the entire inner window in the window state holder instead of copying properties and restoring them. This fixes going back and forth with the bfcache on when the page gone to has javascript in it. r=jst sr=bryner
git-svn-id: svn://10.0.0.236/trunk@177765 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 18:16:42 +00:00
mrbkap%gmail.com
674ac13620 Backing out changes for bug 303267 until the perf hits on the Seamonkey tinderbox can be explained.
git-svn-id: svn://10.0.0.236/trunk@177687 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 03:54:29 +00:00
mrbkap%gmail.com
7d07d878fd bug 303267: Store the entire inner window object on the history entry instead of copying/restoring JS properties. r=bryner sr=jst. This patch also fixes bugs 304284 and 304078.
git-svn-id: svn://10.0.0.236/trunk@177684 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 00:53:39 +00:00
dbaron%dbaron.org
f5fb8ddaff Make nsIChannel implementations follow the rules that prevent them from leaking due to cycles with their notification callbacks. b=303043 r=biesi sr=darin
git-svn-id: svn://10.0.0.236/trunk@177663 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 22:53:22 +00:00
jst%mozilla.jstenback.com
a9f668bc25 Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
rbs%maths.uq.edu.au
5c823e99f8 Fallback to about:blank to fix bustage of document.open() in consumers such as View MathML Source, b=289363 r+sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@177303 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-08 03:15:56 +00:00
mats.palmgren%bredband.net
2bf311b23d Prefer a MAP that has AREAs over an empty one with the same name (in quirks mode). b=264624 r+sr=bzbarsky a=benjamin
git-svn-id: svn://10.0.0.236/trunk@176584 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-25 23:37:56 +00:00
bzbarsky%mit.edu
e5932bc9f9 Don't flush our parent if we're not safe to flush. Bug 281922, r+sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@176094 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 16:13:09 +00:00
darin%meer.net
00b6268419 fixes bug 295544 "Expose more designMode options to web apps" r=brade sr=jst a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@175101 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 17:18:27 +00:00
jst%mozilla.jstenback.com
fecaf7f5b3 Fixing bug 296830. Use the principal of the calling code in document.open(), not that of the calling window. r=dveditz@cruzio.com, sr=brendan@mozilla.org, a=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@174851 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 16:18:35 +00:00
mrbkap%gmail.com
f2a332e8d4 bug 296677: Fix nsParser::ParseFragment to not screw up setting <textarea>'s innerHTML. r=jst sr=peterv a=asa
git-svn-id: svn://10.0.0.236/trunk@174716 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 18:59:59 +00:00
peterv%propagandism.org
aac2b47f2a Fix for bug 286300 (Clean up HTML tags enum and related code). r=mrbkap, sr=bz, a=asa.
git-svn-id: svn://10.0.0.236/trunk@174703 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 13:10:58 +00:00
bzbarsky%mit.edu
e01bd5e327 Make sure to call ScriptEvaluated when doing all evaluations, to call it
_after_ we've popped the JSContext from the stack, and to handle multiple
termination functions being posted from a single script evaluation.  Fixes
leaks when closing windows or tabs with still-loading documents.  Bug 295983,
r+sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@174364 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-09 15:42:19 +00:00
cvshook%sicking.cc
a1b1c63a31 Bug 245274: Be more strict about which names we allow for createElement, even in quirks mode.
r=doron sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@174299 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-08 16:42:04 +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
jst%mozilla.jstenback.com
0f0277c311 Fixing bug 285873. Make midas independent of the pref editor.CR_creates_new_p and make the default behaviour in midas match IE (such that hitting return in a p tag splits the p instead of inserting a br. r=brade@comcast.net, sr=bzbarsky@mit.edu, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@174031 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 03:11:35 +00:00
bzbarsky%mit.edu
578132afda Fix leak on setting innerHTML in XML, as well as leaks when the parent of a
not-yet-parsed script is removed from the document.  Bug 294274, r+sr=peterv,
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@174028 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 02:38:20 +00:00
mrbkap%gmail.com
1d5ac8765e bug 208869: Setting innerHTML with textarea can isnert an extra newline. This patch makes textarea be treated as a normal container outside CNavDTD (which takes over its first-newline removal duties). r=sicking sr=bzbarksy a=shaver
git-svn-id: svn://10.0.0.236/trunk@173988 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 21:23:23 +00:00
cbiesinger%web.de
620f913e6e 295916 r=mrbkap sr=bz a=shaver
- make parser handle calling Parse with an empty string and aLastCall=true
  correctly
- call that from document.close() even in the non-HTML case


git-svn-id: svn://10.0.0.236/trunk@173960 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 19:13:39 +00:00
timeless%mozdev.org
22257176fd Bug 289068 ASSERTION: WriteToBuffer called with count of zero: 'count', file r:/mozilla/netwerk/cache/src/nsDiskCacheStreams.cpp, line 710
r=jst sr=jst a=shaver


git-svn-id: svn://10.0.0.236/trunk@173928 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 16:10:58 +00:00
bzbarsky%mit.edu
249f50341c Push the mChannel member for documents up to nsDocument and expose it on
nsIDocument.  Bug 292971 preliminaries, r+sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@173866 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 01:15:23 +00:00
bryner%brianryner.com
1cee43af71 Fix crash when closing a tab that contains an image (bug 294630). Patch by bz / beaufour, r+sr=me, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@173618 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 01:31:26 +00:00
bzbarsky%mit.edu
79f2b8e2c7 Fix crash if the DOM gets rearranged while we're parsing. Bug 294235,
r+sr=peterv, a=asa


git-svn-id: svn://10.0.0.236/trunk@173594 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-19 19:56:13 +00:00
bryner%brianryner.com
41e0a9483a Fix form state save/restore so that it uses the correct history entry (bug 293135). r+sr=bzbarsky, a=shaver.
git-svn-id: svn://10.0.0.236/trunk@173242 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-10 02:06:29 +00:00
bzbarsky%mit.edu
c1677f8f9d Fix typo that kept data: images from updating the titlebar. Bug 293399,
r=biesi, sr=brendan, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@173199 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-08 23:21:36 +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