Commit Graph

670 Commits

Author SHA1 Message Date
Olli.Pettay%helsinki.fi
548ec40fc5 Bug 364398, r+sr=sicking, a=jay
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@218499 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 08:26:09 +00:00
bzbarsky%mit.edu
fd48ffe653 Go into an error state if we get a handler with a command in non-chrome XBL. Bug 362716, r+sr=sicking, a=jay
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@218031 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-09 00:10:50 +00:00
Olli.Pettay%helsinki.fi
7c223d0986 Bug 292833, crash if i press any function key after i removed a parent of an xbl binding, where the binding has a keyset. r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@215303 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-15 00:54:33 +00:00
Olli.Pettay%helsinki.fi
165be52c01 Bug 205735, Browser freeze/crash on this page after few clicks, xbl implementation issue - M17x FF10 [@ nsXBLPrototypeHandler::GetEventName] [@ nsXBLInsertionPoint::GetDefaultContent], r=jst, sr=sicking, a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@208462 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 21:03:36 +00:00
brendan%mozilla.org
c122663df7 Fix 348786, a=drivers.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@207673 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-16 23:49:17 +00:00
mrbkap%gmail.com
c559deaf12 Checking in the required patches for bug 321299 (again). This is the combined work of sicking, jst, and myself, a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@205017 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-28 01:00:57 +00:00
mrbkap%gmail.com
d86e2e964f Backing this patch out to fix smoketest blockers.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@203390 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 20:19:25 +00:00
mrbkap%gmail.com
783282fd69 Checking in the required patches for bug 321299. This is the combined work of sicking, jst, and myself, a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@203266 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-20 17:14:11 +00:00
dbaron%dbaron.org
dfbc3216ea Bug 336791: land leak fixes that use nsIDOMGCParticipant to break cycles caused by JavaScript closures as XPCOM objects (bugs 241518, 319293, 319642, 322985, 323807, 323534, 325279, 326646, 339412, 206520, 321054, 339488). See individual bugs for reviewers. a181=darin
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@199932 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 03:15:48 +00:00
gavin%gavinsharp.com
8153ea41fe Bug 334289, r+sr+a181=bzbarsky
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@199510 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 16:25:05 +00:00
dbaron%dbaron.org
de2169f31d Report exceptions immediately since constructors and destructors are not called from JS and don't propagate the error status. b=339022 r=bzbarsky sr=brendan a=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@198830 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-01 21:51:48 +00:00
bryner%brianryner.com
7a5aaabed3 Make command= event retargeting dispatch a new event rather than reusing the old one. Add a new interface for command events that supports a sourceEvent property for accessing the original event. Bug 336696, r=neil sr/a=jst a=mconnor.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@198444 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-26 06:27:58 +00:00
bryner%brianryner.com
e1152e36c2 Dispatch a command event when a XUL key is activated, rather than executing the oncommand script directly (bug 331290). r+sr+b181=bzbarsky.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@197865 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-17 16:55:48 +00:00
bzbarsky%mit.edu
a6544b13c3 More happy rooting. Bug 328007, r=sicking, sr=brendan , approval181=sicking
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@193531 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 18:25:15 +00:00
bzbarsky%mit.edu
665ccb48e4 Don't force sync load for non-chrome and non-resource XBL. Bug 329410,
r=sicking, sr=bryner, approval1.8.1=sicking


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@193529 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 18:09:29 +00:00
dbaron%dbaron.org
829e7b9651 Fix rooting in nsXBLProtoImplProperty::InstallMember and remove some no-longer-needed null checks of cx. b=327712 r+sr+a=bzbarsky
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@192159 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-10 18:39:43 +00:00
bzbarsky%mit.edu
78f14489ea Fix crash on empty getters or setters. Bug 326910, r=sicking, sr=bryner, branch1.8.1=jst
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@189918 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 02:16:32 +00:00
bzbarsky%mit.edu
5a2d18dcb3 If a binding stops being the most-derived binding for a content node before we've fired its constructor, remove it from the constructors-to-be-fired list. Bug 317265, r+sr=bryner, a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@187055 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-06 03:28:41 +00:00
mrbkap%gmail.com
d1a5daba72 bug 313236: Rolled-up branch version of the same trunk patches for this bug. r=brendan sr=jst/bzbarksy a=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@182802 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-23 09:13:05 +00:00
mrbkap%gmail.com
9daa490a3a bug 312871: Make global objects behave more like each other. r=bzbarsky sr=brendan a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@182668 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 00:30:39 +00:00
bzbarsky%mit.edu
79f44af421 Don't try to duplicate the jsval typedef. Bug 312003, r+sr=brendan, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@182121 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 20:19:49 +00:00
mrbkap%gmail.com
108d77ceaa Attempt to fix splitwindow focus stuff -- bug 305032. Issue found by mrbkap, patch by bzbarsky, r=mrbkap, sr=jst a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181184 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-28 23:03:08 +00:00
bzbarsky%mit.edu
fb6a109396 Make sure to root the function object we compile in
nsXBLPrototypeHandler::ExecuteHandler. Bug 308577, r=jst, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@180954 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-26 13:30:08 +00:00
bzbarsky%mit.edu
b75a5f17e8 Keep the results of EvaluateStringWithValue properly alive while we're using
them, and make sure we don't GC the xbl property getter when we create the
setter.  Bug 299205, r=jst, sr+a=brendan


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@180398 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 15:46:32 +00:00
bryner%brianryner.com
27e0e80771 Fix for crashes in document.addBinding():
- Don't allow the old binding to go away as we insert the new binding into the chain.
- When swapping the nsXBLInsertionPoint array for a content node, remove any entries from the old list that are also in the new list, so that we don't delete them.

Bug 296375, r+sr=bzbarsky, a=asa.


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179513 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 22:15:05 +00:00
bzbarsky%mit.edu
ca0ab54451 Limit xbl:implements a tad. Bug 299518, r=jst, sr+a=shaver
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179275 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 02:26:51 +00:00
Olli.Pettay%helsinki.fi
1c17ed13e7 Bug 304027, XBL handlers for custom events no longer working. r=bryner, sr=jst, a=cbeard
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@178564 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-21 20:45:09 +00:00
mrbkap%gmail.com
941e888ae2 bug 303267: Back/forward with bfcache on break javascript. We now store the entire inner window in the cache instead of just random properties from it. r=bryner sr=jst a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@177856 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 17:59:44 +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
jst%mozilla.jstenback.com
792744ce69 Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
bzbarsky%mit.edu
aba621f2dc Preserve XPCNativeWrappers when "expando" properties are set on them. Bug
295937, r=shaver, sr+a=brendan


git-svn-id: svn://10.0.0.236/trunk@176280 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:40:33 +00:00
timeless%mozdev.org
a05b91a4b9 Bug 289645 nsXBLPrototypeHandler::ExecuteHandler doesn't null/rv check
patch by b.jacques@planet.nl r=bz sr=bz a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176184 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-17 18:50:36 +00:00
bzbarsky%mit.edu
4af0d1dbfb Make sure to notify XPConnect if an XBL constructor or destructor throws an
exception so they get reported in a timely manner.  Bug 299741, r+sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@175693 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 15:46:12 +00:00
cvshook%sicking.cc
57bf09cc27 Bug 296764: Move html keybindings to chrome to make sure they work even with js turned off
r=bsmedberg sr=jst a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@175355 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 22:41:59 +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
peterv%propagandism.org
a22cce94f5 Fix for bug 297311 (consistent crash when trying to call xmlDocument.replaceChild(newChild, xmlDocument.documentElement) on XML document rendered in a frame). r/sr=bz, a=asa.
git-svn-id: svn://10.0.0.236/trunk@174560 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-14 12:30:17 +00:00
bzbarsky%mit.edu
be0542ab2a Make sure to propagate back the result of InstallImplementation and bail
if it fails.  Bug 292944, r+sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@174477 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-11 21:30:20 +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
bzbarsky%mit.edu
d599723a09 Make sure to call ScriptEvaluated after running XBL constructors/destructors.
Bug 295124, r+sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@174363 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-09 15:39:07 +00:00
bzbarsky%mit.edu
daf93216cf Be smarter about XBL constructors and such. Bug 292591, r=sicking, sr=dveditz,
a=shaver


git-svn-id: svn://10.0.0.236/trunk@174102 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-03 01:54:50 +00:00
bzbarsky%mit.edu
64573ba918 Hold a ref to the binding we're tearing down so it doesn't die before we're
done with it.  Bug 292717, r+sr=jst, a=shaver


git-svn-id: svn://10.0.0.236/trunk@173965 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 19:27:43 +00:00
bzbarsky%mit.edu
c0cfcc4420 Pass the document URI for the <key>'s or <command>'s document as the script
filename when compiling the <key>'s handler.  Bug 295160, r+sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@173745 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-24 17:30:07 +00:00
timeless%mozdev.org
4a138c6985 Bug 294831 JS OOM crash [@ nsXBLPrototypeBinding::InitClass]
r=bz sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@173617 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 01:05:55 +00:00
bzbarsky%mit.edu
f5287400e2 Use the document as the context, not the node, since trying to JS-wrap the node
will reenter XBL loading.  Bug 293778, r+sr=jst, a=shaver


git-svn-id: svn://10.0.0.236/trunk@173439 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-14 02:55:41 +00:00
bzbarsky%mit.edu
132d180765 Do content policy checks on XBL binding loads. Bug 292589, r+sr=jst, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@173270 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-10 21:07:00 +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
bzbarsky%mit.edu
546bd6461b Remove unneeded layout flushes in XUL/XBL. Bug 290005, r=roc, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@172820 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 20:23:26 +00:00
bzbarsky%mit.edu
d58b32a8ae Improve error-reporting for XBL content sink. Bug 290870, r+sr=bryner, a=asa
git-svn-id: svn://10.0.0.236/trunk@172580 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-21 21:31:05 +00:00
bzbarsky%mit.edu
62937cbc08 Create CSSLoaders when the document object is created and deCOMify the getter.
Bug 290068, r=sicking, sr=peterv, a=brendan


git-svn-id: svn://10.0.0.236/trunk@172416 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-19 01:27:11 +00:00
bzbarsky%mit.edu
2537c02af3 Remove code that just duplicates what SetAnonymousContentFor(content, nsnull)
will do anyway.  Bug 289391, r=sicking, sr=peterv, a=brendan


git-svn-id: svn://10.0.0.236/trunk@172411 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-18 23:01:30 +00:00