Commit Graph

3366 Commits

Author SHA1 Message Date
Brandon Sterne
d43b2cf01e Bug 673588 - use correct location when resolving CSP sources and report-uris, r=dveditz 2011-07-22 16:14:58 -07:00
Kyle Huey
21cdfe78c0 Merge m-c to b-s. 2011-07-22 00:03:35 -07:00
Brandon Sterne
a55852a70c Bug 664983 - don't send request headers with CSP violation reports, r=dveditz 2011-07-21 13:47:35 -07:00
Oleg Romashin
d3e0751ed0 Bug 648250 - remove wrong assert r=Olli.Pettay 2011-07-21 13:05:55 -07:00
Ehsan Akhgari
aa9c0820e7 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
6b82f92f13 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
085174474c 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
34ec9e0587 Merge mozilla-central and mozilla-inbound 2011-07-18 18:16:25 -04:00
Josh Matthews
87d0248899 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
5e896583c6 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
33e03d0d4b 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
08f9ee5a5c Merge backout 2011-07-20 15:49:38 -04:00
Ehsan Akhgari
17ab950e8e Backout volkmar's push for breaking Windows builds 2011-07-20 15:49:16 -04:00
Mounir Lamouri
2e1dfaef9e Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-20 12:18:54 -07:00
Mounir Lamouri
c7716a9bb6 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
08432d075d Bug 670964 - Add NS_FINAL_CLASS annotation to nsTextFragment. r=ehsan 2011-07-19 10:04:42 -07:00
Mounir Lamouri
f91f167ea8 Bug 670962 - Make nsGenericDOMDataNode and nsTextFragment participate to the DOM Memory Reporter. r=jst 2011-07-19 10:04:09 -07:00
Mounir Lamouri
fe35661680 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
731f1f7323 Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
411d52c1fe Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Ehsan Akhgari
ee5215c7a6 Revert to changeset e0ce7821fce1 because the latest push broke all of the builds DONTBUILD 2011-07-19 16:25:54 -04:00
Mounir Lamouri
ddf04b3189 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
824a1a98b6 Bug 670964 - Add NS_FINAL_CLASS annotation to nsTextFragment. r=ehsan 2011-07-19 10:04:42 -07:00
Mounir Lamouri
6e68512b87 Bug 670962 - Make nsGenericDOMDataNode and nsTextFragment participate to the DOM Memory Reporter. r=jst 2011-07-19 10:46:01 -07:00
Mounir Lamouri
97235c7d3d 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
42346e6d0b Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
3a70fea833 Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Mounir Lamouri
5937d63965 Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-19 11:22:43 -07:00
Mounir Lamouri
b088e154d6 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
fe7ffbef8b 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
2179f30023 Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
79c9d3ee6f Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Mounir Lamouri
d2f5a3b4c3 Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst 2011-07-18 17:05:10 -07:00
Boris Zbarsky
343cb4fe2b 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
f341dfca7a bug 662692 - mixed-content websockets should check more than https:// r=bz 2011-07-19 09:17:39 -04:00
Benjamin Smedberg
697f27ea00 Bug 617539 - Combine nsIRadioGroupContainer_MOZILLA_2_0_BRANCH; r=bz 2011-07-19 11:44:55 +02:00
Oleg Romashin
37cc5f01d3 Backed out changeset 31cbb80c705e, win burning 2011-07-15 14:30:29 -07:00
Oleg Romashin
5dfda6c571 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
4a9dec68d7 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
0787743cf4 Merge the last green changeset on mozilla-inbound to mozilla-central 2011-07-15 08:13:08 -04:00
Ms2ger
36c532ffa2 Bug 670235 - Remove nsIDOMWindowInternal; r=sicking 2011-07-15 12:31:34 +02:00
Benoit Jacob
a51099130a Bug 664299 - Add support for the crossorigin attribute on the html:img tag, and pass the appropriate CORS mode to imgILoader::loadImage when it's specified. r=bz 2011-07-14 14:47:35 -04:00
Joe Drew
952b8c93a0 Bug 664299 - Pass the loading principal to imgILoader::loadImage so we can operate on it later. r=bz 2011-07-14 14:47:32 -04:00
Justin Lebar
a895a1311d Bug 646641 - Part 1: SHEntries for the same document should share bfcache state. r=smaug 2011-05-09 17:59:49 -04:00
Patrick McManus
a4f443af86 bug 670687 - ws origin handling bogus r=bz 2011-07-18 16:51:28 -04:00
Benjamin Stover
e2377d2b80 Bug 626792 Content view contentWidth/Height do not update immediately after scaling r=roc r=mbrubeck 2011-07-18 11:04:47 -07:00
Patrick McManus
d0453f20a5 backport 659324 664692 - prefix websocket as mozwebsocket, based on nossralf. r=sicking 2011-07-26 09:30:14 -04:00
Marco Bonardo
e6d7be7e60 Merge mozilla-central to mozilla-inbound 2011-07-26 11:53:11 +02:00
Josh Matthews
4ade623280 Bug 661035 - Print frame script errors to stdout. r=smaug 2011-07-08 16:15:58 -04:00
Ehsan Akhgari
b85c178117 Merge mozilla-central and mozilla-inbound 2011-07-22 15:51:08 -04:00
Mounir Lamouri
60e4b00054 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
91ef97c1f9 Bug 670964 - Add NS_FINAL_CLASS annotation to nsTextFragment. r=ehsan 2011-07-19 10:04:42 -07:00
Mounir Lamouri
4d1f52da24 Bug 670962 - Make nsGenericDOMDataNode and nsTextFragment participate to the DOM Memory Reporter. r=jst 2011-07-19 10:04:09 -07:00
Mounir Lamouri
c513cd9d9f 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
00b4aa4898 Bug 667887 - Implement nsMappedAttributes::SizeOf(). r=jst,bz 2011-07-19 09:42:14 -07:00
Mounir Lamouri
7e7c6831b6 Bug 668013 - Add nsHTMLStyleSheet::SizeOf(). r=bz 2011-07-19 09:40:18 -07:00
Mounir Lamouri
0dfc533aac Bug 667883 - Implement nsAttrAndChildArray::SizeOf(). r=bz 2011-07-12 16:56:01 +02:00
Daniel Holbert
19a9a14397 Bug 669438: Remove unused helper-function "DOMFileResult" from nsDOMFile.cpp. r=sicking 2011-07-12 00:10:23 -07:00
Jonas Sicking
742a5593a3 Bug 669437: Implement BlobBuilder.getFile. r=khuey 2011-07-11 19:42:02 -07:00
Jonas Sicking
0103221c13 Bug 669433 Part 3: Make first argument to Blob.slice optional and defaulting to 0. r=khuey 2011-07-11 19:41:55 -07:00
Jonas Sicking
6f2e35cdd5 Bug 669433 Part 2: Clean up File implementations. Move functions around such that they are grouped with their respective class. No other changes. r=khuey 2011-07-11 19:41:44 -07:00
Jonas Sicking
eb9ce9a027 Bug 669433 Part 1: Clean up File implementations by creating a storage-agnostic base class, nsDOMFileBase. r=khuey 2011-07-11 19:41:29 -07:00
Mounir Lamouri
7b98e99ad6 Bug 669308 - Introduce macros and method helpers to simplify participation of classes to the DOM Memory Reporter. r=bz 2011-07-11 17:23:26 +02:00
Patrick McManus
58c63edee3 bug 662692 - Do not allow mixed-content WebSockets r=smaug 2011-07-10 12:31:41 -04:00
Felipe Gomes
bdcb64d147 Bug 583976. Part 3 - Automatically forward mouse and key input events to out-of-process content, and add cursor support in PuppetWidget. r=smaug,stechz 2011-06-21 17:32:43 -07:00
Felipe Gomes
0a988c309a Bug 583976. Part 1 - Add focus manager support for focus activation/deactivation in remote content. r=enn,smaug 2011-06-17 17:08:32 -07:00
Felipe Gomes
527cbc1e43 Bug 663035. Retrieving docShell of remote frames should simply return null instead of throwing. r=bsmedberg 2011-06-14 17:29:10 -07:00
Felipe Gomes
091d656e1b Bug 662500. Drop support for pref that forces OOP tabs. r=bsmedberg 2011-06-07 12:23:15 -07:00
Boris Zbarsky
6311e0ed15 Bug 664916. Make sure that we're dealing with an element when getting tagName. r=sicking 2011-07-07 14:17:13 -04:00
Daniel Holbert
6cd47754b0 Bug 669727: Remove set-but-unused variable isDeepDocumentClone from nsNodeUtils.cpp. r=smaug 2011-07-07 09:57:22 -07:00
Kyle Huey
3b073151cf Bug 668361: File ctor should fail if passed a directory. r=sicking 2011-07-06 09:35:12 -07:00
Olli Pettay
1e52239020 Additional test for Bug 666604, r=volkmar
--HG--
extra : rebase_source : 3ff98e5bb1ab594db111e81501abb5cf2b43d60d
2011-07-06 16:02:26 +03:00
Mounir Lamouri
a15518f8d7 Merge mozilla-inbound into mozilla-central. 2011-07-06 14:43:52 +02:00
Chris Leary
679a65fe47 Merge mozilla-central and tracemonkey. 2011-07-05 17:30:35 -07:00
Boris Zbarsky
b6a4808b23 Bug 668690. When scripts are disabled, don't bother preloading them. r=sicking 2011-07-05 17:33:03 -04:00
Jason Duell
45ea24eb5d Bug 664860. Rename nsIWebSocketHandler -> nsIWebSocketChannel. r=biesi
--HG--
rename : netwerk/protocol/websocket/nsIWebSocketProtocol.idl => netwerk/protocol/websocket/nsIWebSocketChannel.idl
rename : netwerk/protocol/websocket/nsIWebSocketProtocol.idl => netwerk/protocol/websocket/nsIWebSocketListener.idl
2011-07-04 21:18:32 -07:00
Jason Duell
ebaf20a075 bug 664860: Rename websockets mochi test. r=biesi
--HG--
rename : content/base/test/file_ws_basic_tests_wsh.py => content/base/test/file_websocket_basic_wsh.py
rename : content/base/test/test_ws_basic_tests.html => content/base/test/test_websocket_basic.html
2011-07-04 21:18:30 -07:00
Ms2ger
11413e95a1 Merge m-c to m-i 2011-07-03 21:54:56 +02:00
Ms2ger
e6aaa3671f Bug 668184 - Make nsIDocument::AddXMLEventsContent return void; r=smaug 2011-07-03 11:53:41 +02:00
Ms2ger
ae8afde742 Bug 647433 - Rename mContent to mElement in implementations of nsIContentSerializer; r=bz 2011-07-03 11:53:40 +02:00
Marco Bonardo
e46465dc77 No bug - Fix merge conflict across mozilla-inbound and mozilla-central. 2011-07-02 11:22:57 +02:00
Marco Bonardo
13b5cd08c3 Merge mozilla-inbound and mozilla-central 2011-07-02 10:39:08 +02:00
Kyle Huey
3d981011e9 Bug 661582: XHR.response should return a Blob, not a File. r=sicking 2011-06-30 14:42:15 -07:00
Masatoshi Kimura
938ba969e8 Bug 661583: Hold onto the cache token if our response blob is backed by a cache file. r=sicking 2011-06-30 14:41:39 -07:00
Olli Pettay
d99aaa1cc3 Bug 664470, unlink document some more, r=peterv
--HG--
extra : rebase_source : dbafa0618f381c4dc9360f972676de137d2d9885
2011-07-01 17:05:37 +03:00
Matt Brubeck
27d39ad214 Back out 9fc0e6867256, 6947bbce9672, fb91a23bd158, a5870dd2ad7c, c3d3292fbd1e, 42f2aca1fde9 to fix Android failures on a CLOSED TREE 2011-07-01 11:20:52 -07:00
Marco Bonardo
b164bf7cd7 Backout due to mobile failures these changesets: 9f451a1901dd, e99f86ba7278, 447b48b79e6a, cef046665c53, c9237cc1fae0, d77a331a6d5a, f8f3afb95355, a050168887ee, 3ec4303ebf4d, 671b7c0d99f0, 56b17efbb62b, beceddeee3f4 on a CLOSED TREE 2011-07-01 16:28:07 +02:00
Felipe Gomes
4daf8a243a Bug 583976. Part 3 - Automatically forward mouse and key input events to out-of-process content, and add cursor support in PuppetWidget. r=smaug,stechz 2011-06-21 17:32:43 -07:00
Felipe Gomes
4c5c4c7163 Bug 583976. Part 1 - Add focus manager support for focus activation/deactivation in remote content. r=enn,smaug 2011-06-17 17:08:32 -07:00
Felipe Gomes
463ef55fb5 Bug 663035. Retrieving docShell of remote frames should simply return null instead of throwing. r=bsmedberg 2011-06-14 17:29:10 -07:00
Marco Bonardo
d6c4314155 Merge last green changeset from mozilla-central to mozilla-inbound 2011-07-01 23:56:44 +02:00
Shawn Gong
552c301b28 Fixed bug 632255: implemented FileReader.readAsArrayBuffer() API. r=sicking 2011-06-30 17:50:44 -07:00
Matheus Kerschbaum
f1c2a21293 Bug 383383 - Remove nsIScriptEventManager and nsIScriptEventHandler. r=smaug 2011-06-30 14:30:08 +02:00
Ehsan Akhgari
68be621524 Merge mozilla-central and mozilla-inbound 2011-06-30 05:08:20 -04:00
Jonas Sicking
e66eecfd3e Bug 647603: a.replaceChild(b, b) does not remove and re-insert the affected node. r=bz 2011-06-29 23:16:09 -07:00
Jonas Sicking
08ce29756c Bug 649150: Make sure that all blobs and files sent using FormData have a filename in the encoded submission. r=mounir 2011-06-29 11:03:36 -07:00
Mounir Lamouri
6e599087e2 Bug 667497 - Add documents' element size to documents' size computation. r=jst 2011-06-29 13:19:21 +02:00
Mounir Lamouri
722f1a262b Bug 667485 - Add windows' document size to windows size. r=jst 2011-06-29 13:18:54 +02:00
Boris Zbarsky
b5da919e09 Bug 667618 followup. The maemo compiler doesn't like arrays ending with ',', apparently 2011-06-28 22:41:27 -04:00
Boris Zbarsky
3299eef867 Bug 668030. Warn when enablePrivilege is used. r=sicking 2011-06-28 21:05:45 -04:00