6765 Commits

Author SHA1 Message Date
pete%alphanumerica.com
81c2b5fa2b b=88049 r=bzbarsky sr=jst
[RFE] Support .selectionStart & friends for textareas

Enjoy

--pete


git-svn-id: svn://10.0.0.236/trunk@124209 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 20:22:28 +00:00
bzbarsky%mit.edu
62d8c48876 No need to CompressWhitespace here... Bug 154345, r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124161 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 04:22:45 +00:00
harishd%netscape.com
cba309a0c0 Make marquee tag a block level element. b=154173, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124152 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:49:38 +00:00
sicking%bigfoot.com
aeb31e27bc Bug 153600: Make <script>s with neither src attribute or childNodes not block the parser.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@124123 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:07:37 +00:00
caillon%returnzero.com
a57921536a Bug 154401. Cannot paste HTML on clipboard into composition or editor windows.
r=bzbarsky, sr=kin


git-svn-id: svn://10.0.0.236/trunk@124121 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:05:00 +00:00
dbaron%fas.harvard.edu
7e821aaa94 Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner
git-svn-id: svn://10.0.0.236/trunk@124073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:38:55 +00:00
akkana%netscape.com
f9a0b8ae70 126259: don't force a linebreak after img tags. Patch from burpmaster@truffula.net, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124051 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:04:53 +00:00
timeless%mac.com
d82a6cb235 Bug 125090 Bad tag enum passed to CNavDTD::IntTagToStringTag()!!: 'str_ptr',
r=bz sr=jst
so much for consistency, the bug fix was errant in its parallelism and caused a crash
thanks to jonsmirl@yahoo.com for pointing out the correct index var


git-svn-id: svn://10.0.0.236/trunk@124050 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:49:02 +00:00
aaronl%netscape.com
faaa4a7e41 Bug 142549. After find, spacebar doesn't scroll page. r=bryner, sr=kin. Bug 102679. Composer loses focus after image delete. r=kyle, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124037 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:57:48 +00:00
rods%netscape.com
d5d3234fab We do not want to skip page ejects when printing the selection
BUg 153964 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@124026 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:11:56 +00:00
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
caillon%returnzero.com
fd710e312e Speed up and move the helper functions in nsRange to nsContentUtils and make compareTreePosition() faster.
Bug 144014 r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@124012 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 20:03:06 +00:00
timeless%mac.com
c865cd2a92 Bug 125090 Bad tag enum passed to CNavDTD::IntTagToStringTag()!!: 'str_ptr',
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@123996 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 06:47:53 +00:00
heikki%netscape.com
7bafc16ab3 Bug 151933, xml:base should call CheckLoadURI like HTML base. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123931 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 19:53:50 +00:00
peterv%netscape.com
9145988f99 Fix for bug 153757 (hasAttribute on a HTML label crashes). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123921 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 11:07:07 +00:00
sicking%bigfoot.com
ffba89f8d6 Make us evaluate a <script> as soon as it's in the main tree and it either contains children or has the "src" attribute set. Also make sure that the same <script> is never evaluated twice.
Bug 26790, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123856 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:16:14 +00:00
rpotts%netscape.com
3b84d785bc bug #147741 (r=jst, sr=darin) Call nsIContentPolicy for toplevel and subdocuments.
git-svn-id: svn://10.0.0.236/trunk@123825 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:47:42 +00:00
bzbarsky%mit.edu
8703400ee9 Fix dynamic changes to generated content. Bug 57226, r=dbaron, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123823 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:31:19 +00:00
jst%netscape.com
0a4d4ff021 Fixing bug 150824. Don't crash if initialization of an XBL JS class fails. r=dbradley@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123810 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:55:17 +00:00
varga%utcru.sk
393768688e Fix for bug 127842 - Reload the Bookmark and History tab context menu in
sidebar crashes mozilla
r=bryner, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@123784 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 12:18:48 +00:00
caillon%returnzero.com
6584856e59 Bug 153044. Computed style implementation for some -moz-border-radius properties.
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@123776 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 06:42:21 +00:00
cmanske%netscape.com
8e324f78b9 Allow drag&drop of image from browser. b=146299 [checking in for mjudge] r=cmanske, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123775 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 06:16:14 +00:00
radha%netscape.com
392fbcdca7 Fix for bug # 35011. r=jst sr=kin. window.onscroll and element.onscroll don't fire.
git-svn-id: svn://10.0.0.236/trunk@123722 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:47:59 +00:00
peterv%netscape.com
ac30d3738a Remove unnecessary includes.
git-svn-id: svn://10.0.0.236/trunk@123694 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 14:35:17 +00:00
peterv%netscape.com
473737daaa Fix for bug 142108 (Crash when reloading XML+XSLT Trunk, M100, N70PR1, M11A [@ nsXMLContentSink::Observe][@ 0x00000001]). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123686 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 12:04:22 +00:00
peterv%netscape.com
c7e9e858d1 Fix for bug 94475 (if first whitespace in line in textarea is a tab it is changed to a new line). Patch by t_mutreja@yahoo.com, r=bratell@lysator.liu.se, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@123685 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 11:45:09 +00:00
rods%netscape.com
5dbadfe64a Need to call EndObservingDocument before destroy of PresShell
Bug 152536 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@123620 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:18:43 +00:00
rods%netscape.com
b9882159d7 Add PR_LOGGING for printing
Bug 121622 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@123612 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:51:13 +00:00
jaggernaut%netscape.com
b506de82e7 Back out changes for bug 35011 (context menu, ctrl+key, page-up/down all stopped working in browser).
git-svn-id: svn://10.0.0.236/trunk@123576 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:37:57 +00:00
caillon%returnzero.com
d20e1a3975 Bug 149474, Implement preventdefault="true" on XBL handlers, so that bindings are able to prevent the default action even if JavaScript is disabled. r=bryner sr=jag
git-svn-id: svn://10.0.0.236/trunk@123553 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:43:46 +00:00
radha%netscape.com
18e3f5da82 Fix for bug # 35011 r=joki sr=jst. window.onscroll and element.onscroll don't fire.
git-svn-id: svn://10.0.0.236/trunk@123534 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:00:50 +00:00
jst%netscape.com
e8443d3679 Adding new file for shared container elements. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@123513 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:03:54 +00:00
bzbarsky%mit.edu
adea31703d Check the status code of HTTP channels before blindly loading the
sheet.  Bug 112644, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123493 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:46:11 +00:00
bzbarsky%mit.edu
8e8e728a62 fix rendering of <font size="+0">. Bug 150022, r=doron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123492 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:42:40 +00:00
bzbarsky%mit.edu
9d76728323 fix build bustage -- views are not refcounted
git-svn-id: svn://10.0.0.236/trunk@123485 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:01:54 +00:00
seawood%netscape.com
da6eccbfc8 Bump lgot buffer again for MIPS builds.
Thanks to Nick Blievers <nickb@adacel.com.au> for the patch.
Bug #152453 r=cls


git-svn-id: svn://10.0.0.236/trunk@123484 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:01:07 +00:00
bzbarsky%mit.edu
bd8809da27 NS4 measures image.x/image.y from the enclosing layer, not from the
body.  Bug 130415, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123477 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:45:21 +00:00
bryner%netscape.com
b848d573e1 Fix crasher 151568 caused by my checkin for focus bug 131651. r=dbaron, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@123405 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 23:38:06 +00:00
mstoltz%netscape.com
3cba7a04ae 133170 - Need to re-check host for security on a redirect after a call to
XMLHttpRequest.open(). For xmlextras, r=heikki, sr=jband. For caps,
r=bzbarsky, sr=jst
147754 - Add same-origin check to XMLSerializer. Patch by jst. r=mstoltz,
sr=jband
113351 - Add same-origin check to XSL Include. Patch by peterv and jst,
r=mstoltz, sr=rpotts
135267 - Add same-origin check to stylesheets included via LINK tags.
r=dveditz, sr=scc


git-svn-id: svn://10.0.0.236/trunk@123373 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:54:18 +00:00
heikki%netscape.com
67bca4fa92 Forgot to remove extra addref.
git-svn-id: svn://10.0.0.236/trunk@123365 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:19:59 +00:00
heikki%netscape.com
0e9d23116e Bug 151745, need to stabilize XPCOM object before using (prevents a crash in SVG). Patch from alex.fritze@crocodile-clips.com, r=peterv, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@123342 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:02:29 +00:00
heikki%netscape.com
76e55d41f0 Bug 125583, disable automatic XLinks in mail, and make it so that pref dom.disable_open_during_load also disables all automatic XLinks that try to open in new window. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123335 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:52:16 +00:00
glazman%netscape.com
fa208cf299 Making nsCSSDeclaration::GetValue() call itself to respond !important values when needed was making the CSS Parser choke in nsCSSParserImpl::AppendValue()
b=148501, r=brade, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123313 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 12:36:43 +00:00
joki%netscape.com
bbd30f7c20 Fix for bug 123700, send synthetic mouseenter/out messages to IFRAME elements to allow tracking when mouse is inside IFRAME. r:harishd, sr:jst
git-svn-id: svn://10.0.0.236/trunk@123295 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 04:14:55 +00:00
dbaron%fas.harvard.edu
f73c8cccfe XUL fastload shouldn't call ParseStyleAttribute when there is no style attribute. b=151262 r=waterson sr=brendan
git-svn-id: svn://10.0.0.236/trunk@123257 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:14:36 +00:00
kin%netscape.com
3016bcf312 Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123237 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:43:32 +00:00
glazman%netscape.com
caec6c87e9 fixing crasher due to outbounds index in nsCSSStyleSheet.cpp; b=151198, r=brade, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123208 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 08:29:51 +00:00
mstoltz%netscape.com
8324b9ee2c Backing out fix for 135267 - this patch requires another change that hasn't gone in yet.
git-svn-id: svn://10.0.0.236/trunk@123192 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 22:49:14 +00:00
mstoltz%netscape.com
4a618befec Fixing 135267 - don't allow access to style rules loaded from a different
host. r=dveditz, sr=scc.


git-svn-id: svn://10.0.0.236/trunk@123189 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 21:20:17 +00:00
jkeiser%netscape.com
b39021ec8c Make pressing enter submit by clicking the first button in form even if there is only one textfield in form. bug 147850, r=bzbarsky@mit.edu, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123143 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 07:50:45 +00:00