bzbarsky%mit.edu
fe9618c961
Propagate the node's principal as the owner to <object> loads as needed, and
...
allow <object data="javascript:"> to work. Bug 353334 and bug 300263, r=biesi,
sr=jst, a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240353 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 21:57:18 +00:00
bzbarsky%mit.edu
7fc4c90002
Handle image embeds with a null URI. Bug 402320, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@238911 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-07 17:25:57 +00:00
gavin%gavinsharp.com
71a94bbba6
Back out the patch for bug 393845 because it appears the regressions it caused are worse than the bug it fixed (a=biesi)
...
git-svn-id: svn://10.0.0.236/trunk@236676 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-25 20:41:08 +00:00
bzbarsky%mit.edu
26ad06cc91
Make disabling image loading in prefs also block images loaded via <object>.
...
Bug 393503, r+sr=biesi, a=jst
git-svn-id: svn://10.0.0.236/trunk@235983 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-14 18:57:59 +00:00
cbiesinger%gmx.at
ffa2c76bb1
393845 Stop plugins from content instead of from layout. Also, reget the frame
...
after stopping the plugin, as that may process events. Finally, make the
object frame not touch member variables after stopping the plugin.
r+sr=bz a=jst
git-svn-id: svn://10.0.0.236/trunk@233968 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-05 20:33:18 +00:00
bzbarsky%mit.edu
c747f19f60
Make <object> do the same text/plain sniffing that <iframe> does, and use the
...
content type hint if the type comes back as application/octet-stream or
sniffed-binary. Bug 389677, r+sr=biesi, a=sicking
git-svn-id: svn://10.0.0.236/trunk@232437 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-21 03:26:13 +00:00
bzbarsky%mit.edu
b9d92a233a
Make NS_CheckContent(Load|Process)Policy only take a principal, not a principal
...
and a uri. Get the URI from the principal. Bug 391438, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@231781 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-10 05:35:09 +00:00
bzbarsky%mit.edu
3811c88532
Use the principal doing the load to decide on the URI to pass to content
...
policies. This will help do the right thing for data:/javascript:/about:blank,
as well as allow us to skip content policies altogether if the caller is
system. Bug 388597, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@231622 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-08 01:16:12 +00:00
cbiesinger%gmx.at
b54ca703b5
Bug 390385 make sure that plugins don't get instantiated before the first Reflow of the objectframe, so that the first NPP_SetWindow call contains the right dimensions
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@231564 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-07 00:32:14 +00:00
cbiesinger%gmx.at
d86f2d454f
364235 don't instantiate plugins for URLs with unknown schemes unless we also have a type specified
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@231539 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-06 18:02:14 +00:00
cbiesinger%gmx.at
71f3df1901
382378 call NotifyContentObjectWrapper after the plugin has been instantiated so that scriptable plugins work correctly
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@231354 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 21:15:05 +00:00
cbiesinger%gmx.at
2be593f733
322170 ignore errors from OnStartRequest (NPP_NewStream) for Shockwave on the Mac
...
r=jst sr=bz
git-svn-id: svn://10.0.0.236/trunk@231343 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 20:16:49 +00:00
bzbarsky%mit.edu
73e6ccf0ea
Flush layout before starting to pump data into plug-ins if we started the data
...
load ourselves. Fixes various issues with a number of plug-ins that expect
NPP_SetWindow() to have been called before NPP_WriteReady or NPP_Write. Bug
381512, r=biesi, sr=jst
git-svn-id: svn://10.0.0.236/trunk@231321 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 17:54:37 +00:00
jonas%sicking.cc
857bbdaa67
Bug 389508: Cross site XMLHttpRequest. r=jst/biesi sr/dveditz/biesi
...
git-svn-id: svn://10.0.0.236/trunk@231095 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-27 02:49:19 +00:00
jonas%sicking.cc
7552c132af
backout due to orange
...
git-svn-id: svn://10.0.0.236/trunk@231082 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 23:34:23 +00:00
jonas%sicking.cc
52ff6b27a1
Bug 389508: Implement Cross site XMLHttpRequest. r=jst sr=dveditz,biesi
...
git-svn-id: svn://10.0.0.236/trunk@231078 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 22:20:32 +00:00
cbiesinger%gmx.at
84eeb649bd
385118 make sure to set mInstantiating to false again before returning
...
r+sr=jst,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@230251 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-19 00:28:39 +00:00
cbiesinger%gmx.at
554e4422a3
bug 309523 remove now-addressed XXX comment
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@230244 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 22:02:04 +00:00
cbiesinger%gmx.at
c20638b685
bug 347736 instantiate <embed> plugins by extension if we don't have a MIME type
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@230238 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 21:48:18 +00:00
Olli.Pettay%helsinki.fi
29c87c6a3f
Bug 386599, Recursive <object> with border hangs Firefox, r=biesi, sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@230099 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 07:43:36 +00:00
flamingice%sourmilk.net
499adb6a0e
Bug 330511, Plugin-in blocklisting, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229935 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-14 00:28:06 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
b45e3985f6
Initialize mPendingInstantiateEvent to null. b=386889 r+sr=biesi
...
git-svn-id: svn://10.0.0.236/trunk@229391 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 22:44:27 +00:00
cbiesinger%web.de
ffe4f656b5
bug 382113 set LOAD_DOCUMENT_URI for <object> loads that load a document
...
so that things like onload events work correctly
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@228625 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-23 08:44:29 +00:00
bzbarsky%mit.edu
e27e4e7c20
Make sure we flush out content before we try to set up the plug-in, since
...
that's going to perform DOM access that can flush. Bug 377070, r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@226899 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 19:53:31 +00:00
Olli.Pettay%helsinki.fi
8b4c3d38dd
Bug 378776, Need safe way to iterate a document's presshells, r+sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@226813 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 21:45:07 +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
peterv%propagandism.org
fbe71aa7e3
Fix for bug 373219 (ASSERTION: Fault in cycle collector: null XPCOM pointer returned (ptr: 0)). r/sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@221603 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 13:14:06 +00:00
peterv%propagandism.org
4fff00b28c
Fix for bug 368773 (Add a bunch of DOM objects to cycle collection). r=sicking, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@221534 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 11:17:16 +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
timeless%mozdev.org
c778d21502
Bug 355300 There should be only one nsGkAtoms creature
...
r=dbaron
git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
bzbarsky%mit.edu
d33fe96766
If we have an unsupported classid, bail out even if we have no URI. Bug
...
363379, r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@217202 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-19 16:31:42 +00:00
bzbarsky%mit.edu
a03439b0a2
Don't show the plugin wizard for plugins that are actually disabled (only Java
...
at the moment). Bug 344923, r=biesi, sr=jst
git-svn-id: svn://10.0.0.236/trunk@207202 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-12 02:13:24 +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
cvshook%sicking.cc
cec9ea1123
Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
bzbarsky%mit.edu
bf19ef708d
Rename GetNodePrincipal to NodePrincipal. Bug 327246, r+sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@195579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:21:11 +00:00
bzbarsky%mit.edu
e07858d903
Fix image blocking for obviously image objects. Bug 334825, r=biesi, sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@195288 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 19:56:18 +00:00
bzbarsky%mit.edu
8373755204
Need shorter comments here
...
git-svn-id: svn://10.0.0.236/trunk@193308 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:20:34 +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
bzbarsky%mit.edu
1510aacc39
Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
...
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument. Bug 324600, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
cbiesinger%web.de
a65a0bbcf4
bug 324705 prefer natively handled document types over plugins
...
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@188389 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-28 14:08:55 +00:00
cbiesinger%web.de
430f534268
fix debug build bustage (from bug 322128)
...
git-svn-id: svn://10.0.0.236/trunk@186995 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-05 18:03:09 +00:00
cbiesinger%web.de
4988bf0fe7
Remove aForceType argument of LoadObject, make it a capability instead
...
bug 322128 r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@186979 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-05 13:30:19 +00:00
cbiesinger%web.de
006a37ec44
Bug 314453 more ObjectURIChanged occurences; these got missed in the first
...
checkin
git-svn-id: svn://10.0.0.236/trunk@186800 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-01 19:06:43 +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
cbiesinger%web.de
32c8a8358d
Bug 309521
...
- add pseudo-classes for :-moz-type-unsupported and :-moz-has-handlerref (and a
content state for the former)
- make nsObjectLoadingContent return the right content state
- Add an XBL binding that gets instantiated for broken plugins
- Make it themable
- Remove a lot of now-unused code in nsObjectFrame
- Fixes pluginfinder.
r+sr=bz, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@186703 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-29 14:15:33 +00:00
cbiesinger%web.de
24af553d8a
bug 309525 Consider content that we don't otherwise support, but for which we
...
have a stream converter, as supported document types. Change code to use
nsIURILoader to load the data, instead of asking docshell directly.
r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@186206 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-17 18:31:02 +00:00
bzbarsky%mit.edu
96f90c1b44
Fix crash bug 319049. Patch by Christian Biesinger (:bi) <cbiesinger@gmx.at>, r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@185677 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 02:13:17 +00:00