Commit Graph

198 Commits

Author SHA1 Message Date
bzbarsky@mit.edu
a6139746d4 Propagate stylesheet principals through to XBL binding loads; streamline load
security checks in the XBL code (so that all the security checks are gated
through LoadBindingDocumentInfo).  Bug 204140, r=dbaron for the CSS changes,
r=sicking for the XBL changes, sr=sicking.

In particular, this change allows user stylesheets loaded from local files to
link to local files.
2007-07-18 14:56:57 -07:00
cbiesinger@gmx.at
c4a5306b2f bug 347736 instantiate <embed> plugins by extension if we don't have a MIME type
r+sr=bz
2007-07-18 14:48:18 -07:00
cbiesinger@gmx.at
58c915e6bf Bug 382113 make sure to add the request to the new loadgroup before removing it
from the old one so that onload doesn't fire before it should
Also make nsLoadGroup::AddRequest assert that the request isn't in the loadgroup yet
Finally, reenable the reftest that tests the <object> onload behaviour
r+sr=bz
2007-07-18 14:37:39 -07:00
bzbarsky@mit.edu
d59efa6763 More consistent handling of principals for loads across docshell type
boundaries.  Bug 388121, r+sr=jst
2007-07-17 18:47:07 -07:00
Olli.Pettay@helsinki.fi
9f5ba5c69a Bug 386599, Recursive <object> with border hangs Firefox, r=biesi, sr=bz 2007-07-17 00:43:36 -07:00
flamingice@sourmilk.net
76b4af864e Bug 330511, Plugin-in blocklisting, r+sr=jst 2007-07-13 17:28:05 -07:00
longsonr@gmail.com
0a705dae4d Bug 384409 - Create a common GetContextForContent method in nsContentUtils and use it in nsScriptElement and svg. r=tor,r+sr=jonas 2007-07-13 01:49:07 -07:00
bzbarsky@mit.edu
a4c90a1d9d Make attribute changes that also cause a state change properly reresolve style
when a selector uses both the state and the attribute.  Bug 315920, r=dbaron,
sr=sicking.
2007-07-12 13:05:45 -07:00
masayuki@d-toybox.com
af31f107a5 Bug 255990 Characters below U+0100 are not subject to line-breaking rules at all r+sr=roc 2007-07-12 08:52:51 -07:00
peterv@propagandism.org
2fb0fc711a Fix for bug 386496 (Clicking on link in designMode document does follow that link now). r/sr=bz. 2007-07-11 06:05:05 -07:00
neil@parkwaycc.co.uk
11ed13d71f Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
bzbarsky@mit.edu
40d0244293 Don't start layout for XML just because the root has been opened. And don't
start layout until <html:head> closes if <html:head> gets opened.  For XHTML
documents, this should prevent flashes of unstyled content.

Also, don't flush tags unless forced to if a sheet is pending.

Bug 380028, r+sr=sicking
2007-07-10 20:42:11 -07:00
bzbarsky@mit.edu
79013e30da Notify before firing mutation events. Bug 387460, r+sr=sicking 2007-07-10 18:14:55 -07:00
jwalden@mit.edu
eb1d6df056 Bug 387503 - Convert nsINode bits to an anonymous enum, and make a macro into an inline function for better debugging. rs=sicking 2007-07-10 15:49:42 -07:00
bzbarsky@mit.edu
f6349051e7 Eliminate some uses of CheckSameOriginPrincipal in favor of Subsumes/Equals.
Bug 387204, r+sr=jst
2007-07-09 21:11:11 -07:00
dcamp@mozilla.com
d746712d75 implement navigator.pendingOfflineLoads. b=372969, r=biesi, r+sr=jst 2007-07-08 23:19:27 -07:00
philringnalda@gmail.com
abb9b1380f Bug 382947 - XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset, patch by Ryan Jones <sciguyryan@gmail.com>, r=bzbarsky, sr=peterv 2007-07-08 19:33:07 -07:00
philringnalda@gmail.com
f48d442b06 Bug 386854 - Bustage build fix MOX_XUL disabled, patch by romaxa <romaxa@gmail.com>, r+sr=bzbarsky 2007-07-08 17:58:15 -07:00
jwalden@mit.edu
e3c4baccae 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. 2007-07-08 00:08:04 -07:00
dbaron@dbaron.org
69a76dfb14 Initialize mPendingInstantiateEvent to null. b=386889 r+sr=biesi 2007-07-05 15:44:27 -07:00
Olli.Pettay@helsinki.fi
2feaae333d Bug 386802, Mutation events always fired during setting of innerHTML, r+sr=bz 2007-07-04 13:39:10 -07:00
enndeakin@sympatico.ca
6c8197be5f Bug 279703, rework XUL popups to use asynchronous opening, plus many other fixes, attempt 2 with creating widgets later, r=bz,neil,roc,sr=bz 2007-07-04 08:49:38 -07:00
mrbkap@gmail.com
c0d870c1f9 Don't be confused by misleading tag names. bug 386794, r+sr=sicking 2007-07-04 00:45:04 -07:00
peterv@propagandism.org
ee83281d9c Fix for bug 386656 (Security Error: Content at moz-nullprincipal:{8c0f4edc-0aac-45cc-8471-895f07bb1bb2} may not load or link to resource://gre/res/hiddenWindow.html during install of latest NTT Build). r/sr=jst. 2007-07-04 00:27:36 -07:00
mats.palmgren@bredband.net
db689821bf Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst 2007-07-03 19:15:31 -07:00
sharparrow1@yahoo.com
8801788a06 Bug 386141: Switch NS_FRAME_IS_BOX to use IsFrameOfType. Patch by fantasai, r+sr=roc. 2007-07-03 15:11:28 -07:00
bzbarsky@mit.edu
4976df8890 Fixing build bustage 2007-07-03 12:15:26 -07:00
bzbarsky@mit.edu
bdded13f7c 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
2007-07-03 11:45:39 -07:00
roc+@cs.cmu.edu
f89a82a7f6 Bug 386548. Remove nsTextTransformer. r+sr=mats 2007-07-02 16:36:59 -07:00
peterv@propagandism.org
c1f26cd35e Fix for bug 326337 (XMLHttpRequest.responseXML permission denied if document.domain set). r=jst, sr=bz. 2007-07-02 06:20:01 -07:00
dbaron@dbaron.org
086900c009 Fix leak of nsJSRuntime due to unbalanced calls of HoldScriptObject (with null argument). b=386294 r+sr=jst 2007-06-29 20:06:04 -07:00
dbaron@dbaron.org
9b3e00551c Add nsCycleCollector_shouldBeFreed calls for elements. b=385549 r+sr=jst 2007-06-29 20:00:51 -07:00
enndeakin@sympatico.ca
271e5c520d Bug 279703, backing out the popup changes due to performance regressions. sigh. 2007-06-29 15:39:50 -07:00
enndeakin@sympatico.ca
95deb19d78 Bug 279703, backing out the popup changes due to performance regressions. sigh. 2007-06-29 15:15:59 -07:00
enndeakin@sympatico.ca
6c59f4a6d3 Bug 279703, rework XUL popups to use asynchronous opening, plus many other fixes, r=bz,neil,sr=bz 2007-06-29 12:04:45 -07:00
peterv@propagandism.org
76a2c4d37f Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking. 2007-06-27 19:48:16 -07:00
peterv@propagandism.org
0f0097ffc5 Backing out to fix orange. 2007-06-27 16:21:05 -07:00
peterv@propagandism.org
51dda63979 Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking. 2007-06-27 15:29:45 -07:00
tor@cs.brown.edu
76ef425384 Bug 375846 - implement feConvolveMatrix filter primitive. r=longsonr, sr=roc 2007-06-27 12:02:58 -07:00
dveditz@cruzio.com
56a9050dc7 bug 381264 nix 'track' method; r=biesi, sr=sicking 2007-06-26 02:28:38 -07:00
kherron@fmailbox.com
a746e1c886 Disabling two tests by request of Christian Biesinger. Related to bug 382113. 2007-06-24 17:52:06 -07:00
cbiesinger@web.de
75a42fd777 bug 382113 make the test pass for now (mark it as todo). will be reenabled
once the additional patch from the bug is checked in.
2007-06-23 07:31:37 -07:00
cbiesinger@web.de
aece5fe57c bug 382113 set LOAD_DOCUMENT_URI for <object> loads that load a document
so that things like onload events work correctly
r+sr=bz
2007-06-23 01:44:27 -07:00
timeless@mozdev.org
cdb488901b Bug 383901 having two different gNameSpaceManagers is confusing (at least to debuggers)
r=bz sr=bz
2007-06-19 22:23:50 -07:00
bzbarsky@mit.edu
0eb40f4042 Make the ranges used by find code able to span anonymous content. Bug 384706,
r+sr=sicking
2007-06-18 20:01:03 -07:00
jonas@sicking.cc
50513d81cc Backing out previous checkin since leaks went up 2007-06-18 16:21:28 -07:00
sayrer@gmail.com
dd79d4341b bug 384507. nsContentSink.h contains static non-member functions and globals. r+sr=jst 2007-06-18 15:44:11 -07:00
jonas@sicking.cc
d53f4d97f7 Bug 348156: Don't rely on UnbindFromTree to break cycles since that puts us in an inconsistent state. r/sr=jst 2007-06-18 15:27:27 -07:00
Olli.Pettay@helsinki.fi
57208eb367 Bug 384663, r+sr=bz 2007-06-18 08:43:40 -07:00
kherron@fmailbox.com
fd55a81c64 Bug 375314 - discriminate ping and xmlhttprequests in content policy check. Patch by Wladimir Palant <trev.moz@adblockplus.org>, r=jst, sr=peterv. 2007-06-17 06:50:50 -07:00
kherron@fmailbox.com
10d7931b24 Bug 380668 - Extra newlines added after a meta element that already has them before and after. Patch by Ryan Jones <sciguyryan@gmail.com>. r+sr=bzbarsky. 2007-06-17 04:41:03 -07:00
kherron@fmailbox.com
3ef7e96849 Bug 381329 - Build fails with GCC-4.3 due to extra semi-colons and '-pedantic' flag. Patch by Art Haas <ahaas@airmail.net>. r+sr=roc. 2007-06-16 12:53:59 -07:00
enndeakin@sympatico.ca
78a410c31c Bug 321171 - support XML sources in XUL templates, r=smaug,sr=peterv CVS: ---------------------------------------------------------------------- 2007-06-15 08:03:44 -07:00
jonas@sicking.cc
5d6d0f52ff Bug 379959: Add checks to loadBindingDocument. r/sr=jst 2007-06-12 14:56:06 -07:00
jst@mozilla.org
23003dea8f Fixing bug 383424. Make the context pusher use the owner document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu 2007-06-12 14:16:58 -07:00
bzbarsky@mit.edu
d479536899 Remove duplicated "is this an event attr?" code. Bug 383714, patch by RyanJones <sciguyryan@gmail.com>, r+sr=bzbarsky 2007-06-10 12:27:57 -07:00
roc+@cs.cmu.edu
c71327187f Not Really Part Of The Build. Update nsLineBreaker interface to allow aSink to be null, in which case the computed linebreaks are just discarded. We use this to optimize cases where no breaking is enabled and the results of linebreaking are not required. Also exposes IsSpace and IsComplexChar methods that the linebreaker specification relies on. Renamed CJK stuff to ComplexChar because it's going to include Thai and probably other languages. 2007-06-06 21:17:55 -07:00
roc+@cs.cmu.edu
2bfebe1bc6 Bug 380538. Allow both ononline and onoffline to be specified in the body element. patch by Chris Double, r=Olli.Pettay,sr=jonas 2007-06-06 20:28:04 -07:00
bzbarsky@mit.edu
6dfd7347b4 When serializing a <q> as plaintext, put in quotes even if we're not doingformatted output. Bug 378407, r=glazman, sr=sicking 2007-06-05 12:24:55 -07:00
jonas@sicking.cc
607f8caad0 Bug 373756. Don't execute XBL ctors on the last EndUpdate if there were queued ctors when we got the first BeginUpdate. Patch by bz. r/sr=me 2007-05-30 18:36:06 -07:00
roc+@cs.cmu.edu
bc2c8b9809 Not (Really) Part Of The Build. Fix embarrassing error in nsLineBreaker... 2007-05-30 17:06:31 -07:00
roc+@cs.cmu.edu
ff7447834d Fixing bustage 2007-05-30 15:36:30 -07:00
roc+@cs.cmu.edu
cf38be799a Bug 174397. Support getClientRects and getBoundingClientRect on DOM elements. r=jonas,dbaron; sr=tor, plus help from Anne van Kesteren and Martijn Wargers 2007-05-30 15:32:54 -07:00
roc+@cs.cmu.edu
18223fc22d Not part of the build. Change nsLineBreaker so that breaks at element boundaries are always governed by the white-space property on the element that's the nearest common ancestor of the DOM nodes on each side of the break point --- fixes bug 382289. Also, pass NBSP through to textruns so that whitespace trimming doesn't trim NBSP. Also, count trimmed spaces correctly when updating mClusterCount. 2007-05-30 15:27:27 -07:00
jonas@sicking.cc
a8a2928a3a Bug 366417: Set up scriptloader in the nsDocument ctor to ensure that the blocker-count stays in sync with the notification depth. r/sr=bz 2007-05-30 13:43:41 -07:00
bclary@bclary.com
7798f66122 Bug 382182 - script tag should support version 1.8, r=jonas,sr=brendan 2007-05-29 22:55:55 -07:00
roc+@cs.cmu.edu
314e02012b Bug 372970. Implement navigator.offlineResources. patch by Dave Camp, r+sr=jst 2007-05-29 02:45:30 -07:00
neil@parkwaycc.co.uk
975c75417a Bug 380364 Fix regressions from bug 236546 r+sr=jst 2007-05-25 13:47:30 -07:00
Olli.Pettay@helsinki.fi
b9a6965dbe Bug 381153, r+sr=roc 2007-05-25 03:09:29 -07:00
jonas@sicking.cc
0a47e8baa7 Fix yet more regressions from the don't-flag-clone-xul-nodes-indocument landing. b=380872 r/sr=bz 2007-05-24 17:28:20 -07:00
peterv@propagandism.org
98955fbcad Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking. 2007-05-24 07:10:02 -07:00
roc+@cs.cmu.edu
197e7e6d0b Backing out to fix bustage :-( 2007-05-23 22:16:52 -07:00
roc+@cs.cmu.edu
e138eb3816 Bug 336959. Reland update to use Pango for linebreaking of Thai and CJK text on Linux. patch by Theppitak Karoonboonyanan, r+sr=roc 2007-05-23 20:16:16 -07:00
bzbarsky@mit.edu
e1a7b2b6ef Make sure we flush out content before we try to set up the plug-in, sincethat's going to perform DOM access that can flush. Bug 377070, r+sr=biesi 2007-05-23 12:53:31 -07:00
roc+@cs.cmu.edu
5cf44de899 Backing out due to bustage. 2007-05-22 21:26:42 -07:00
roc+@cs.cmu.edu
daa8d1177d Bug 336959. Use Pango to break lines for CJK and Thai. r+sr=roc, patch by Theppitak Karoonboonyanan. 2007-05-22 21:06:20 -07:00
roc+@cs.cmu.edu
a56819194e Not Part Of The Build. Update nsTextFrameThebes whitespace handling; allow line breaking only at the end of a run of whitespace. 2007-05-22 16:45:47 -07:00
jonas@sicking.cc
4108fb711b Bug 380872: Bind nodes in insertion points directly under <children>. r/sr=bz 2007-05-22 15:41:32 -07:00
Olli.Pettay@helsinki.fi
da84b4a799 Bug 378776, Need safe way to iterate a document's presshells, r+sr=bz 2007-05-22 14:45:03 -07:00
Olli.Pettay@helsinki.fi
0a6d3668cd Bug 380674, Move nsTObserverArray from content/* to xpcom/*, r=bsmedberg 2007-05-22 12:39:14 -07:00
jonas@sicking.cc
d8633e02b4 Bug 380872: Forgot to address bzs review comment to remove this assertion. r/sr=bz 2007-05-21 17:08:05 -07:00
mrbkap@gmail.com
6a241398b2 Don't assume that the parser is still enabled after we've returned to the event loop. bug 380590, r+sr=sicking 2007-05-21 15:40:59 -07:00
jonas@sicking.cc
0b6e5dff7a Bug 380872: Call BindToTree on anonymous children too when BindToTree is called on an element. r/sr=bz 2007-05-21 15:26:48 -07:00
jonas@sicking.cc
941dc3b4c4 Bug 53901: Make sure to also release controllers when unbinding xul elements from the DOM. r/sr=bz 2007-05-21 15:22:51 -07:00
roc+@cs.cmu.edu
b7f3dc0143 Bug 381130. Small changes to layout to fix an inline reflow bug and add a new API to nsLineLayout to support tab stops. r+sr=dbaron 2007-05-20 20:44:26 -07:00
Olli.Pettay@helsinki.fi
6575fbf571 Bug 380716, Crash [@ nsContentUtils::ContentIsDescendantOf], r+sr=jst 2007-05-18 03:23:45 -07:00
mrbkap@gmail.com
9669228ea9 Update our child counts if notifying on our children caused more updates. bug 376761, r=bzbarsky sr=sicking 2007-05-17 16:54:35 -07:00
benjamin@smedbergs.us
7a23b59d17 Bug 319934 - Prevent shutdown crashes by having XMLHttpRequest objects hold the layout module alive, r+sr=dbaron 2007-05-16 10:05:47 -07:00
jonas@sicking.cc
9a9515bed6 Bug 53901: Don't set is-in-doc flag on cloned XUL nodes. r/sr=jst 2007-05-15 18:13:47 -07:00
ginn.chen@sun.com
a334324e77 Bug 357969 container xul element which doesn't have a xbl def under a deck frame has no accessible objectpatch by nian.liu at sun.com r=surkov.alexander sr=neil 2007-05-15 02:46:06 -07:00
Olli.Pettay@helsinki.fi
e46f507021 Remove rest of nsIDOMEventReceivers, Bug 363089, r+sr=jst 2007-05-15 01:50:33 -07:00
cbiesinger@web.de
9b8503bb13 Bug 370195 – sql device for the offline cachepatch by Dave Camp <dcamp@mozilla.com> r=jst (content part) r=biesi (rest) 2007-05-14 13:09:20 -07:00
Olli.Pettay@helsinki.fi
23a27d0393 Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst 2007-05-14 02:29:22 -07:00
Olli.Pettay@helsinki.fi
7ec10e025c Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst 2007-05-14 02:11:38 -07:00
bzbarsky@mit.edu
5b2ec7d443 Process XBL constructors right after the frame construction inInitialReflow(). Bug 377119, r+sr=sicking 2007-05-13 20:52:48 -07:00
asqueella@gmail.com
1cafc60b98 Bug 331991 - Save as "Web Page, Complete" for HTML should include meta charset or encode all non-ASCII characters as entitiesp=Ryan Jones <sciguyryan@gmail.com>r=glazou, sr=peterv 2007-05-13 09:44:06 -07:00
asqueella@gmail.com
53f5456ba7 Bug 362043 - XMLHttpRequest should set a charset in the Content-Type request headerp=Ryan Jones <sciguyryan@gmail.com>r+sr=peterv 2007-05-13 09:41:46 -07:00
Olli.Pettay@helsinki.fi
dc641fc5d4 Bug 369644, make mouseover/out handle native anonymous content properly, r=jst, sr=sicking 2007-05-13 06:59:00 -07:00
peterv@propagandism.org
cf3c4a0ecf Fix for bug 324871 (UserData can cause reference cycles). r/sr=sicking. 2007-05-12 08:36:28 -07:00
Olli.Pettay@helsinki.fi
3c2b2f46ce Bug 378390, Use a bit to track whether the binding manager has a pointer to an element, r+sr=peterv 2007-05-11 11:34:12 -07:00