Commit Graph

7093 Commits

Author SHA1 Message Date
Felipe Gomes
cae957ce8a Bug 667077 - Add atob/btoa to frame scripts. r=smaug 2011-06-25 05:52:00 -04:00
Ehsan Akhgari
aed48ece37 Merge the last green changeset on mozilla-inbound to mozilla-central 2011-07-26 14:03:34 -04:00
Olli Pettay
fd4edaef0e bug 335998, strong parentNode, r=peterv 2011-07-26 14:11:14 +03:00
Marco Bonardo
e3d3e25769 Merge last green changeset from mozilla-inbound to mozilla-central 2011-07-26 11:50:00 +02:00
Boris Zbarsky
b1cbe6237a Bug 667336. Make sure we don't overflow unsigned int on item(). r=peterv 2011-07-26 10:01:31 -04:00
Olli Pettay
0282058875 Bug 673806, unlink animation controller, r=dholbert 2011-07-25 20:50:29 +03:00
Kyle Huey
6311b456b0 Bug 673859: Don't overwrite the event's trusted flag in nsGenericElement::DispatchClickEvent. r=smaug 2011-07-25 10:35:25 -07:00
Ehsan Akhgari
4a2d60fa6f Merge mozilla-central and mozilla-inbound 2011-07-24 12:52:51 -04:00
Julian Reschke
4a4110664c Bug 666562. fix quoted-string unescaping in HTTP link header fields, r=bzbarsky 2011-07-23 14:31:49 +02:00
Ms2ger
19bead777e Bug 666665 - Remove isindex content code; r=sicking+hsivonen 2011-07-23 11:45:38 +02:00
Brandon Sterne
33f4a72172 Bug 673588 - use correct location when resolving CSP sources and report-uris, r=dveditz 2011-07-22 16:14:58 -07:00
Kyle Huey
ae5e8e9dcf Merge m-c to b-s. 2011-07-22 00:03:35 -07:00
Brandon Sterne
3d76e0ad34 Bug 664983 - don't send request headers with CSP violation reports, r=dveditz 2011-07-21 13:47:35 -07:00
Oleg Romashin
36e1d316e0 Bug 648250 - remove wrong assert r=Olli.Pettay 2011-07-21 13:05:55 -07:00
Ehsan Akhgari
a67d9bdc60 Bug 672709 - Update the intrinsic state for elements in designMode documents correctly; r=bzbarsky
This patch fixes two things:
 * The intrinsic state on elements inserted in a contenteditable section when the
   document is in designMode (the nsGenericElement::UpdateEditableState change).
 * The intrinsic state on elements existing in the document when the document first
   enters designMode (the nsHTMLDocument::EditingStateChanged change).

The reftest included tests both cases.
2011-07-20 15:58:25 -04:00
Kyle Huey
6a8c4ffada Bug 664254: Make DOM File objects implement nsIMutable so they can be immutabilized for sharing across threads. r=sicking 2011-07-19 09:27:46 -07:00
Kyle Huey
41e8bbcab3 Bug 646157: Prevent 2^n growth in event dispatch in a chain of nested labels. r=smaug
Prior to this patch, Gecko allowed bubbling click events to trigger multiple <label>s, and for the synthetic click events generated by <label>s to also trigger additional <label>s.  In contrast, Opera allows only the latter, and Webkit/IE allow neither.  Gecko's behavior leads to 2^n events being dispatched in the case of markup like:

<label for="thing1" /><input type="foo" name="thing1" />
<label for="thing2" /><input type="foo" name="thing2" />
...

After this patch a bubbling click event triggers at most one <label>, and the synthetic click event cannot trigger additional labels.  Our behavior is still not identical to Webkit/IE though, because in Gecko a click event will still bubble up past a <label>, while in Webkit/IE the click event will stop at the <label>.
2011-07-19 09:19:32 -07:00
Ehsan Akhgari
aadd188062 Merge mozilla-central and mozilla-inbound 2011-07-18 18:16:25 -04:00
Josh Matthews
7d2b53dcf4 Bug 674048 - Check the correct condition when setting a header on an XHR. r=sicking 2011-07-25 18:08:44 -04:00
Oleg Romashin
9be7041486 Bug 648250 - image based navigational bar is useless in remote Fennec (window.outerWidth throws js errors). r=Olli.Pettay 2011-07-15 14:46:56 -07:00
Joe Drew
8475a70b73 Bug 671906 - Rename crossOrigin atom to crossorigin, because attributes are lowercased before being mapped to atoms. r=bz 2011-07-17 13:40:22 -04:00
Ehsan Akhgari
5cd7d5f37e Merge backout 2011-07-20 15:49:38 -04:00
Ehsan Akhgari
10e0951fce Backout volkmar's push for breaking Windows builds 2011-07-20 15:49:16 -04:00
Mounir Lamouri
57fe0a2e82 Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-20 12:18:54 -07:00
Mounir Lamouri
ffa5084e04 Bug 670965 - Make nsCommentNode, nsTextNode, nsXMLCDATASection and nsXMLProcessingInstruction participate in the DOM Memory Reporter. r=jst 2011-07-19 10:05:37 -07:00
Mounir Lamouri
bef176c1be Bug 670964 - Add NS_FINAL_CLASS annotation to nsTextFragment. r=ehsan 2011-07-19 10:04:42 -07:00
Mounir Lamouri
8442e5120e Bug 670962 - Make nsGenericDOMDataNode and nsTextFragment participate to the DOM Memory Reporter. r=jst 2011-07-19 10:04:09 -07:00
Mounir Lamouri
6ad3fb9ad0 Bug 669886 - Make nsMappedAttributeElement, nsStyledElement, nsStyledElementNotElementCSSInline, nsGenericHTMLElement, nsGenericHTMLFormElement and nsGenericHTMLFrameElement participate in the DOM Memory Reporter. r=jst 2011-07-19 09:54:43 -07:00
Mounir Lamouri
0675b475f9 Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
5c8698b962 Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Ehsan Akhgari
8aa36b3b5c Revert to changeset e0ce7821fce1 because the latest push broke all of the builds DONTBUILD 2011-07-19 16:25:54 -04:00
Mounir Lamouri
653b1ce364 Bug 670965 - Make nsCommentNode, nsTextNode, nsXMLCDATASection and nsXMLProcessingInstruction participate in the DOM Memory Reporter. r=jst 2011-07-19 10:05:37 -07:00
Mounir Lamouri
502af0ee07 Bug 670964 - Add NS_FINAL_CLASS annotation to nsTextFragment. r=ehsan 2011-07-19 10:04:42 -07:00
Mounir Lamouri
50e884b393 Bug 670962 - Make nsGenericDOMDataNode and nsTextFragment participate to the DOM Memory Reporter. r=jst 2011-07-19 10:46:01 -07:00
Mounir Lamouri
21cf779916 Bug 669886 - Make nsMappedAttributeElement, nsStyledElement, nsStyledElementNotElementCSSInline, nsGenericHTMLElement, nsGenericHTMLFormElement and nsGenericHTMLFrameElement participate in the DOM Memory Reporter. r=jst 2011-07-19 09:54:43 -07:00
Mounir Lamouri
6545d1886a Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
083bf2d659 Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Mounir Lamouri
b6d655dff0 Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-19 11:22:43 -07:00
Mounir Lamouri
58e2fd59fd Backed out bug 669310, bug 668013, bug 667887 and bug 669886 due to build bustage. 2011-07-19 10:49:48 -07:00
Mounir Lamouri
17a0ee001f Bug 669886 - Make nsMappedAttributeElement, nsStyledElement, nsStyledElementNotElementCSSInline, nsGenericHTMLElement, nsGenericHTMLFormElement and nsGenericHTMLFrameElement participate in the DOM Memory Reporter. r=jst 2011-07-19 09:54:43 -07:00
Mounir Lamouri
d7ab5fd420 Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
210a9fc749 Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Mounir Lamouri
8ae6e80c16 Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-18 17:05:10 -07:00
Boris Zbarsky
c8b8d529a5 Bug 664721. Treat a document load in a subframe as first-party if it's first-party with all _ancestors_ of the subframe, no matter what's loaded in the subframe itself. r=dwitte 2011-07-19 11:28:03 -04:00
Patrick McManus
a80c7de2cb bug 662692 - mixed-content websockets should check more than https:// r=bz 2011-07-19 09:17:39 -04:00
Benjamin Smedberg
3ee6f4f68e Bug 617539 - Combine nsIRadioGroupContainer_MOZILLA_2_0_BRANCH; r=bz 2011-07-19 11:44:55 +02:00
Oleg Romashin
c189f1ba66 Backed out changeset 31cbb80c705e, win burning 2011-07-15 14:30:29 -07:00
Oleg Romashin
7494986a3e Bug 648250 - image based navigational bar is useless in remote Fennec (window.outerWidth throws js errors). r=Olli.Pettay
--HG--
extra : rebase_source : 226d9655eb425e6ef18dc0269eb90495c00dbd91
2011-07-15 13:37:03 -07:00
Ehsan Akhgari
62312843c5 Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc
The main fix here involves the introduction of the nsHTMLEditor::IsNodeInActiveEditor
API.  This API returns true if the current selection in the document falls
inside the active editable section.  The patch adds a bunch of checks using
this API to various places in the code to make sure that editing operations do
not escape their editing host.

There are also some unrelated fixes to range promotion code which fix the
bugs that have existed in that code before, but because of the lack of this
check were not uncovered before.

This patch also removes the nsTextEditUtils::InBody API which only made sense
in designMode documents, and was insufficient for contenteditable elements.
2011-07-14 11:25:07 -04:00
Ehsan Akhgari
5e56126930 Merge the last green changeset on mozilla-inbound to mozilla-central 2011-07-15 08:13:08 -04:00