83 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
4e2bfe0308 Propagate the principal responsible an image load all the way to
CanLoadImage/LoadImage in nsContentUtils, and use it for security checks
there.  Bug 310165, r=sicking, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@229261 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 18:45:40 +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
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
graydon%mozilla.com
3998c66e23 Bug 333078: XPCOM cycle collector
r=brendan, sicking, bz, dbaron, bsmedberg


git-svn-id: svn://10.0.0.236/trunk@217781 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-04 22:31:26 +00:00
vladimir%pobox.com
ece4ca3cad backing out bug 333078, xpcom cycle collector due to perf issues
git-svn-id: svn://10.0.0.236/trunk@215718 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 23:18:16 +00:00
vladimir%pobox.com
260a2b3959 b=333078, xpcom cycle collector -- patch from graydon@mozilla.com, r=many
git-svn-id: svn://10.0.0.236/trunk@215695 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 19:23:02 +00:00
cst%yecc.com
73eaab0ee2 Bug 47475 Need "Show(View) Image" / "Reload Image" on context menu (UI is SeaMonkey-only)
r=bz r=biesi sr=neil


git-svn-id: svn://10.0.0.236/trunk@209387 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-07 22:51:57 +00:00
Olli.Pettay%helsinki.fi
fe7d075767 Bug 351036, Combine NS_IMAGE_ERROR and NS_SCRIPT_ERROR, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@209059 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-02 10:00:26 +00:00
Olli.Pettay%helsinki.fi
a65685f201 Bug 350846, Combine NS_***_LOAD events, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@208936 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-31 19:33:01 +00:00
Olli.Pettay%helsinki.fi
7600c51612 Bug 342710, WARNING: NS_ENSURE_TRUE(shell) failed: file nsImageLoadingContent.cpp, line 842, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@201086 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 07:40:13 +00:00
dbaron%dbaron.org
7be4b9c543 Fix GC hazards associated with event handlers on images only reachable from their current network loads, some of which are regressions from 241518. b=321054 r=darin sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@198815 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-01 18:35:21 +00:00
bzbarsky%mit.edu
fb477fa6d5 Make the URI of an nsIImageLoadingContent immutable. Bug 337246, r=biesi, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@198735 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-31 15:58:43 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
bzbarsky%mit.edu
14903561f3 Add comments describing some more files.
git-svn-id: svn://10.0.0.236/trunk@193306 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:00:42 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
cbiesinger%web.de
aa80ec3c74 bug 314453 Rename ImageURIChanged and ObjectURIChanged to LoadImage and
LoadObject, respectively, in order to make it clear what they do rather than
prescribing when they should be called. r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@186776 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-01 11:25:43 +00:00
gerv%gerv.net
f8d1f365ca Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@186771 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-31 16:02:07 +00:00
cbiesinger%web.de
8cc8c8248a bug 314091 Fix users of mozAutoDocUpdate to actually declare a local variable,
so that the destructor doesn't get called immediately
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@183237 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-29 12:54:24 +00:00
bzbarsky%mit.edu
1333cae14e Try fixing bug 288064 again. r=biesi, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@182350 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-17 00:50:39 +00:00
bzbarsky%mit.edu
29198e38f2 Backing out bug 288064 because of the Tp hit.
git-svn-id: svn://10.0.0.236/trunk@181383 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-01 01:35:56 +00:00
bzbarsky%mit.edu
d81aa0e274 Implement a LOADING state, have a :-moz-loading selector to match on it, use it
for images.  Bug 288064, r=biesi, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@181371 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-01 00:34:03 +00:00
peterv%propagandism.org
5b98a9db45 Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null), remove some includes. Patch by sicking, updated by peterv, r=bz, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@180960 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-26 14:37:29 +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
bzbarsky%mit.edu
f0ab1ca805 Make sure to update state properly for nsGenConImageContent. Bug 309141,
r=biesi, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@180629 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 02:05:48 +00:00
bzbarsky%mit.edu
50ca774ea9 More Tp regression-fixing for bug 11011. r=biesi, pending sr=roc
git-svn-id: svn://10.0.0.236/trunk@180521 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 21:06:19 +00:00
bzbarsky%mit.edu
26af641d58 Implement :-moz-broken, :-moz-user-disabled, and :-moz-suppressed
pseudo-classes to allow styling of broken/blocked/disabled images, applets,
objects, embeds.  Bug 11011, r=biesi and roc, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@180509 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 18:05:40 +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
bzbarsky%mit.edu
525a6b3082 Cache the event queue service in nsContentUtils instead of having every single
presshell caching it.  Bug 305689, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@178852 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 21:01:51 +00:00
bzbarsky%mit.edu
d7497a616e Go back to having UnblockOnload firing onload sync in cases where it's safe.
Attempting to address Tp fallout from bug 294114, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@178750 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 23:24:30 +00:00
bzbarsky%mit.edu
b327d4361b Remove nsDummyLayoutRequest and use the nsIDocument onload-blocking API
instead.  Bug 294114, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178656 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 01:29:02 +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
bzbarsky%mit.edu
1815bcf181 Make sure that non-image inputs don't claim to have a useful image via
nsIImageLoadingContent.  Bug 301635, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178241 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 14:55:07 +00:00
jst%mozilla.jstenback.com
5db7b4597b Fixing bug 269125. Make image.onerror fire for non-existent files. Patch by trev@gtchat.de, r=jst@mozilla.org, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@178003 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 23:01:09 +00:00
bzbarsky%mit.edu
b0ce4094bf Add a document api to prevent onload from firing too early. Bug 293818,
r=darin, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@173388 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-13 19:54:28 +00:00
jst%mozilla.jstenback.com
ebed1ee784 Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@172848 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 23:48:28 +00:00
bzbarsky%mit.edu
f14f7e0cb1 If our image was previously blocked and we're asked to maybe reload it, don't
check whether the URI changed; just try loading (since this time we may not be
blocked).  Bug 251354 followup, r=sicking, sr=shaver, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@171981 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-11 16:37:27 +00:00
bzbarsky%mit.edu
532112b17b Only do a new image load if we're forced to or if the URI really changed. Bug
285428, r=biesi, sr=jst (note: sr was given in bug 286000 as part of the patch
there).


git-svn-id: svn://10.0.0.236/trunk@171771 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 02:55:02 +00:00
bzbarsky%mit.edu
b545c9a067 Add a method to ask a content node whether it may have a frame in some
presentation.  Bug 225941, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@171033 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 03:07:10 +00:00
bzbarsky%mit.edu
54df69c399 Use the content policy REJECT reason as a basis for our "whether to show alt
text" decision instead of reading prefs ourselves.  Bug 202906, r=mvl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@170075 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-02 04:05:12 +00:00
jst%mozilla.jstenback.com
eddb05cf73 Fixing bug 279945. Prevent drag n' drop of images whose extensions don't map to image mimetypes. r=caillon@gmail.com, sr=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@168753 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 17:23:35 +00:00
bryner%brianryner.com
e1daca3ce3 Reduce do_GetService code bloat further by adding specialized assignment to nsCOMPtr and providing a version with no error pointer. Also make CallGetService work the same way as CallGetComponent does, as far as using frozen/non-frozen interface to service manager. Bug 264456, r=darin.
git-svn-id: svn://10.0.0.236/trunk@165757 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 22:48:45 +00:00
bzbarsky%mit.edu
fa206da134 Switch more callers who were begging for it over to GetOwnerDoc(). Bug 255337,
r+sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@163530 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 16:29:42 +00:00
bzbarsky%mit.edu
0931032595 Make sure to addref out param. Bugs 258121 and 247712, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@162304 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 15:06:56 +00:00
bryner%brianryner.com
2dbfb983b1 Remove refcounting version of nsIPresShell::GetPresContext. Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161072 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-20 20:34:37 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
dbaron%dbaron.org
fe80e9ca1c Send the stylesheet as the HTTP Referer header for images loaded from CSS stylesheets. b=249168 r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@159195 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:56:23 +00:00
peterv%propagandism.org
0a98e68e54 Fix for bug 236408 (deCOMtaminate nsINodeInfoManager). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@158468 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-25 12:26:02 +00:00
cbiesinger%web.de
ff1bd6473d bug 196380
o) move nsCopySupport into content (from layout), it belongs there better
o) add an |currentURI| attribute to nsIImageLoadingContent which allows access to the URI that is currently being displayed
o) use that from the image uri copy code
xpfe part: r=neil.parkwaycc.co.uk sr=bz rest: r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@157435 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-05 17:57:00 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00