Commit Graph

6647 Commits

Author SHA1 Message Date
Ms2ger
d34efeaec4 Bug 776517 - Move GetExistingAttrNameFromQName from nsIContent to dom::Element; r=smaug 2013-07-24 09:39:46 +02:00
Ms2ger
5ae654e2b6 Bug 885170 - Remove nsINode::GetClassInfo(); r=peterv 2013-07-24 09:31:06 +02:00
Ms2ger
7d7359c752 Bug 888643 - Part b: Move CPP_UNIT_TESTS definitions into moz.build files; r=gps 2013-07-24 09:23:06 +02:00
Olli Pettay
4399ddbfe6 Bug 895222, improve skippability optimization for nodes, r=mccr8
--HG--
extra : rebase_source : ce3ebc2020a26d22f7cf2636d63657a8fe6ebb2d
2013-07-22 20:47:20 +03:00
David Zbarsky
287181f0bc Bug 897211: Remove nsITouchEventReceiver from nodes r=bz 2013-07-23 23:20:16 -07:00
David Zbarsky
404ebd49a1 Bug 897211: Remove nsIDOMDocumentTouch r=bz 2013-07-23 23:20:16 -07:00
David Zbarsky
b9c20a7821 Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Boris Zbarsky
6fe1316182 Bug 895974. Implement ParentNode on document fragments and documents and move previousElementSibling and nextElementSibling to ChildNode. r=smaug 2013-07-22 08:15:43 -04:00
Joshua Cranmer
46c5cc932a Bug 884061 - Part 3d: Use NS_DECL_THREADSAFE_ISUPPORTS in content/, r=smaug
--HG--
extra : rebase_source : ee869e0ec710259b1f3d1a328bff27c5d2960ea1
2013-07-18 21:21:19 -05:00
Jon Coppeard
6c0077c7f6 Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz 2013-07-23 10:58:26 +01:00
Ryan VanderMeulen
4033000ea2 Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE. 2013-07-22 18:18:17 -04:00
Boris Zbarsky
e0a481867c Bug 895974. Implement ParentNode on document fragments and documents and move previousElementSibling and nextElementSibling to ChildNode. r=smaug 2013-07-22 08:15:43 -04:00
Ed Morley
1becf19348 Backed out changeset 9e7d1f4496ff (bug 888839) for B2G failures in test_copypaste.xhtml 2013-07-22 08:55:34 +01:00
Drew Willcoxon
8a46894e04 Bug 888839 - Don't pretty print text/plain when copying and pasting non-(X)HTML documents. r=smaug 2013-07-19 19:56:18 -07:00
Benjamin Smedberg
dd57b47a65 Bug 889788 - Plugin doorhanger breaks when plugins are dynamically removed from a page. This implements the short-term solution of hiding the plugin doorhanger when no more plugins are on the page (the better long-term solution will keep showing the UI and track all the plugins a page ever uses). This also implements a short-term solution when a user enables a plugin. Also bug 887088 - Short-term UI solution: when a user loads multiple tabs from a site and enables a plugin on one of them, the plugins are not enabled on other tabs but the "continue allowing" button does nothing. This patch makes the "Continue Allowing" button enable existing plugins of that type. r=jaws r=jschoenick
--HG--
extra : rebase_source : a60ae3259579ea63d51921dc3c70836da2d7ab3a
2013-07-19 10:02:48 -04:00
Ehsan Akhgari
5b25678716 Bug 895168 - Part 1: Stop using LL_I2L in the tree; r=jcranmer
--HG--
extra : rebase_source : b66b363de4c4e132ef94181d2b7d8f008caa643a
2013-07-18 16:47:55 -04:00
Ryan VanderMeulen
ba97a4cddb Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Justin Lebar
705f1ae9f1 Bug 895123 - Change nsFrameLoader::mChildHost from nsCOMPtr<nsIObserver> to nsRefPtr<ContentParent>, and rename it to mContentParent.
This doesn't change any behavior; the only effect of this change is to make it easier to figure out, from GDB, which ContentParent a nsFrameLoader points to.
2013-07-17 16:34:57 -07:00
Ryan VanderMeulen
eec7a0e659 Backed out changeset 8421bc750585 (bug 888864) for Werror bustage. 2013-07-16 12:03:59 -04:00
Tom Schuster
7f21dbc657 Bug 893858 - More testing for CPOWs and fix some small bugs. r=dvander 2013-07-17 09:27:49 -04:00
Boris Zbarsky
7bc16a6b9c Bug 894874. Fix .selectedStyleSheetSet to consider all the sheets even after it finds an enabled sheet. r=smaug 2013-07-17 23:23:52 -04:00
Boris Zbarsky
3978c4cfd1 Bug 892510. Cache whether we're only-whitespace on textnodes so we don't have to keep figuring that out over and over again. r=smaug 2013-07-17 23:23:52 -04:00
Ryan VanderMeulen
97083e557a Backed out 4 changesets (bug 893858, bug 868859, bug 886903) for Linux debug mochitest-other crashes on a CLOSED TREE.
Backed out changeset 0ded4854067b (bug 886903)
Backed out changeset ca8afb897e13 (bug 893858)
Backed out changeset c15f503a96cc (bug 868859)
Backed out changeset 6a788f399a7f (bug 868859)
2013-07-17 12:43:59 -04:00
William Chen
f8b2cdb2c6 Bug 796061 - Part 2: Remove mInsertionParentTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:06 -07:00
William Chen
43142c497a Bug 796061 - Part 1: Remove mBindingTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:03 -07:00
Ryan VanderMeulen
c11458053c Backed out 3 changesets (bug 889480, bug 889788, bug 888908) for mochitest-bc orange.
Backed out changeset d1c616745325 (bug 889788)
Backed out changeset 6fe281a19554 (bug 888908)
Backed out changeset 9b855bab8073 (bug 889480)
2013-07-17 11:34:25 -04:00
Mina Almasry
eac9bbce9a Bug 888864 - Changing a stylesheet ProcessingInstruction's data no longer applies immediately. r=bz 2013-07-17 10:09:04 -04:00
Mihnea Dobrescu-Balaur
e56e545704 Bug 887480 - Make the content/base xpcshell tests use dynamic httpd ports so they can be run concurrently. r=bz 2013-07-15 17:13:37 -07:00
Tom Schuster
78d54d5af2 Bug 893858 - More testing for CPOWs and two small bug fixes. r=dvander 2013-07-17 09:27:49 -04:00
Benjamin Smedberg
c5b25497ec Bug 889788 - Plugin doorhanger breaks when plugins are dynamically removed from a page. This implements the short-term solution of hiding the plugin doorhanger when no more plugins are on the page (the better long-term solution will keep showing the UI and track all the plugins a page ever uses). This also implements a short-term solution when a user enables a plugin. Also bug 887088 - Short-term UI solution: when a user loads multiple tabs from a site and enables a plugin on one of them, the plugins are not enabled on other tabs but the "continue allowing" button does nothing. This patch makes the "Continue Allowing" button enable existing plugins of that type. r=jaws r=jschoenick
--HG--
extra : rebase_source : 4b24a6d5bf3b5c33b1e19702eca676b340b5d8b1
2013-07-17 09:21:02 -04:00
Mina Almasry
dff7def29b Bug 888864 - Changing a stylesheet ProcessingInstruction's data no longer applies immediately. r=bz 2013-07-16 11:18:33 -04:00
Brian O'Keefe
f98dd45a72 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Gabor Krizsanits
c9c9a69587 Bug 874158 - Crash in GetNativeForGlobal. r=bholley 2013-07-16 15:04:28 +02:00
Boris Zbarsky
c426151250 Bug 881087. Skip unnecessary work resetting visited state on links if the base URI only changes its fragment identifier. r=smaug 2013-07-16 01:31:43 -04:00
Boris Zbarsky
51ed392dde Bug 838146 part 9. Make Xrays play nice with WebIDL resolve hooks. r=bholley 2013-07-16 01:31:03 -04:00
Mina Almasry
c62067c22c Bug 713564 - Add an API to declare a stylesheet obsolete. r=bz 2013-07-15 17:28:33 -04:00
David Anderson
0930e61030 Implement CPOW support in MessageManager (bug 870180, r=smaug,billm). 2013-07-10 15:05:39 -07:00
Ryan VanderMeulen
b9a911ec3f Merge m-c to inbound. 2013-07-12 09:29:59 -04:00
Olli Pettay
4b62be324b Bug 892582 - crash in nsContentSink::WillParseImpl , r=bz
--HG--
extra : rebase_source : 23cba75e0470c0170ea48e7deb44f24f191dee38
2013-07-11 22:39:06 -04:00
Boris Zbarsky
29d983f17d Bug 883889 followup: nsChildContentList is not an nsINode subclass. r=orange 2013-07-11 12:59:53 -04:00
Boris Zbarsky
05b9585b54 Bug 883889. Call SetIsDOMBinding() in the nsINode constructor, and remove it from all the subclasses. r=peterv
This patch leaves the call in the Attr constructor, because we plan to make Attr not inherit from nsINode.
2013-07-11 11:58:29 -04:00
Yuan Xulei
94bdd2756a Bug 890580 - Add test cases for nsIDocumentEncoder.OutputNonTextContentAsPlaceholder. r=hsivonen 2013-07-11 11:48:59 -04:00
Yuan Xulei
ca1c8f9a71 Bug 890580 - Enable plaintext serializer to output non-text content as placeholder. r=hsivonen 2013-07-11 11:48:43 -04:00
J. Ryan Stinnett
7ae16d70d9 Bug 282097 - Part 2: Rename field from nsNativeKeyEvent. r=masayuki 2013-07-09 22:45:10 -05:00
Ed Morley
bbef1fe93c Merge latest green fx-team changeset and mozilla-central 2013-07-11 10:12:37 +01:00
Tim Taubert
a887626424 Bug 891806 - part 2 - replace 'yield;' with 'yield undefined;' in content/; r=smaug 2013-07-10 23:52:14 +02:00
Ryan VanderMeulen
ec6b3d53b5 Merge m-c to inbound. 2013-07-10 09:45:16 -04:00
Wes Kocher
e4601507f5 Backout 129da44ac469 (bug 870180) for breaking message manager 2013-07-10 18:22:34 -07:00
David Anderson
144a6b0e34 Implement CPOW support in MessageManager (bug 870180, r=smaug,billm). 2013-07-10 15:05:39 -07:00
Scott Johnson
186e05af14 Bug 890309: Use GetPrimaryFrame() instead of directly accessing mPrimaryFrame in Element::FontSizeInflation() in order to prevent crashing when an element is not part of a document. [r=tn] 2013-07-10 14:47:50 -05:00
John Schoenick
089322ff35 Bug 889821 - Extend interface shim to allow nsIStreamListener callbacks to object/embed/applet tags to be used from script. r=bz 2013-07-10 15:15:41 -04:00
Ryan VanderMeulen
1d7eff0f7a Backed out changeset b7d6458d2a3c (bug 887483) for apparently causing Android robocop-2 failures. 2013-07-10 13:51:28 -04:00
David Zbarsky
8161e27f6d Bug 879475 - Make PBrowser manually keep track of its manager r=jlebar 2013-07-10 13:07:51 -04:00
John Schoenick
b1794ac82a Bug 788031 - For object/embed/applet tags, pass baseURI to shouldProcess if mURI is null. r=josh 2013-07-10 12:55:26 -04:00
Trevor Saunders
d82043f811 bug 887483 - rm a bunch of useless assignments to FORCE_STATIC_LIB r=mshal 2013-06-25 14:29:26 -04:00
Olli Pettay
6767d0a1a8 bug 789919, (snow-white) make addref/release of CCable objects faster by removing indirect refcnt increase/decrease, r=mccr8, test changes r=ehsan
--HG--
extra : rebase_source : 2a3b22425c14d6daedc91d62a652c34431acd2fb
2013-07-09 13:30:58 -04:00
Nicholas Nethercote
bcbe40286a Bug 887558 (part 3) - Use JSObject::{is,as} for JSObject itself. r=sfink.
--HG--
extra : rebase_source : 510677697603e6502c738f5460b7bea4bffd7f27
2013-07-04 00:50:50 -07:00
Trevor Saunders
238525e2d8 bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
David Zbarsky
eaf0af48b0 Bug 859193 - Cleanup nsRange r=smaug 2013-07-11 23:29:24 -04:00
Blake Kaplan
eb084c4fdd Bug 890775 - Not all xbl:children elements should be treated specially. r=peterv 2013-07-11 17:52:49 -04:00
Masatoshi Kimura
fa43b3c4c0 Bug 892460 - Add MOZ_FINAL to a bunch of node classes. r=bz 2013-07-12 06:26:54 +09:00
Nathan Froyd
a5b87f838b Bug 892511 - rewrite test_{title,window}.xul to not rely on shared setTimeout between windows; r=smaug 2013-01-11 11:28:22 -05:00
Ms2ger
1475a22d49 Bug 213324 - Remove getter_AddRefs(T*); r=ehsan 2013-07-10 11:56:21 +02:00
Peter Van der Beken
9cbb0938bb Bug 734503 - Add new DOM binding for TouchList; r=jst. 2013-07-10 11:53:53 +02:00
Blake Kaplan
ecf2b59e9a Bug 891088 - Rename nsXBLChildrenElement -> mozilla::dom::XBLChildrenElement. r=peterv
--HG--
rename : content/xbl/src/nsXBLChildrenElement.cpp => content/xbl/src/XBLChildrenElement.cpp
rename : content/xbl/src/nsXBLChildrenElement.h => content/xbl/src/XBLChildrenElement.h
2013-07-01 15:09:37 -07:00
Ryan VanderMeulen
2d21e8fd70 Backed out changeset 4903ca450b3f (bug 890081) for widespread mochitest orange.
CLOSED TREE
2013-07-08 15:19:30 -04:00
Bobby Holley
a000e74cd1 Bug 890081 - Make 'document' permanent in nsIDocument::WrapObject. r=bz 2013-07-08 10:31:21 -07:00
Bobby Holley
fb8f42b563 Bug 867486 - Remove |Components| from content sandboxes. r=gabor 2013-07-08 10:05:31 -07:00
Jacek Caban
f4595d63e4 Bug 816343 - Add querySelector* to *Element/DocumentFragment/Document.idl r=bz 2013-07-08 14:09:18 +02:00
Randy Lin
fcd0ce74f3 Bug 803414 - Part 4: Audio Recording - Web API & Implementation. r=roc 2013-07-05 09:50:25 +08:00
Randy Lin
2d6a813044 Bug 803414 - Part 2: Add DOMTemporaryFileBlob and TemporaryFileInputStream. r=roc 2013-07-02 11:00:37 +08:00
Birunthan Mohanathas
5decb7fc60 Bug 571635 - Make nsCSSStyleSheet::GetStyleRuleAt return a css::Rule*. r=dbaron 2013-07-07 16:23:13 -04:00
Cameron McCormack
c0e2bb6765 Bug 569722 - Implement textLength and lengthAdjust on SVG text elements. r=longsonr 2013-07-07 17:27:51 +10:00
Kartikaya Gupta
07cff74d15 Bug 803207 - Kill GetDevicePixelsPerMetaViewportPixel and use widget scaling correctly on Fennec. r=mbrubeck 2013-07-04 09:02:29 -04:00
Cameron McCormack
5558ca00bd Comment typo fix, no bug (DONTBUILD) 2013-07-04 14:00:06 +10:00
Ben Turner
0b05e4e8fc Bug 879787 - Fix up old tests to use SpecialPowers. r=smaug, a=abillings.
--HG--
rename : content/base/test/test_bug383430.html => content/base/test/chrome/test_bug383430.html
2013-07-03 14:04:43 -07:00
Kyle Huey
afae5b1108 Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff 2013-07-09 07:28:15 -07:00
Andrea Marchesini
28ec341630 Bug 885539 - Crash - Heap-use-after-free in nsTArray_base. r=bz 2013-07-03 09:21:30 -04:00
Bobby Holley
ed24e324cd Bug 888682 - Inline traverse/unlink for mGlobal and simplify CC goop for nsInProcessTabChildGlobal.cpp. r=smaug 2013-07-02 23:30:36 -06:00
Matthew Gregan
16d93ca314 Bug 855130 - Implement URL::createObjectURL overload for
MediaSources.  Add MediaSources to HostObjectProtocolHandler.  Make
 MediaSource a real interface.  r=khuey
2013-06-21 15:15:15 +12:00
John Schoenick
755429a0ce Bug 888834 - Java sees no-explicit-codebase as . not baseURI. r=josh 2013-07-02 16:40:40 -07:00
John Schoenick
794ace9208 Bug 406541 - Add check for java file codebase security. r=bsmedberg 2013-07-02 16:40:40 -07:00
Mike Shal
8afd7f737d Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4); r=joey 2013-07-01 11:34:30 -04:00
Scott Johnson
850b8bd74d Bug 878931: Add a FontSizeInflation() method to Element in order to retrieve font size inflation to use during reflow-on-zoom. [r=kats,mounir]
The reflow-on-zoom behavior needs a more robust determination of the font size inflation, so
that it can adjust its behavior depending on whether font size inflation has been
enabled for a given element's text. This patch also modifies the behavior of reflow-
on-zoom such that it will zoom in to piece of text, with reflow, if the minimum
specified font size in the font size inflation preferences is greater than the
current font size, with font size inflation, of the element.
2013-07-02 09:04:27 -05:00
Phil Ringnalda
223d1262f5 Backed out 5fa1f7715c19:7a300d1d1b23 (bug 855130) for Windows build failures
CLOSED TREE
2013-07-01 21:23:37 -07:00
Matthew Gregan
4590b89783 Bug 855130 - Implement URL::createObjectURL overload for MediaSources. r=khuey
---
 content/base/public/nsHostObjectProtocolHandler.h | 26 +++++++++
 content/base/src/nsHostObjectProtocolHandler.cpp  | 65 +++++++++++++++++------
 content/base/src/nsHostObjectURI.h                |  5 +-
 content/media/mediasource/MediaSource.cpp         |  1 +
 content/media/mediasource/MediaSource.h           |  7 +++
 dom/base/URL.cpp                                  | 12 +++++
 dom/base/URL.h                                    |  7 +++
 dom/webidl/URL.webidl                             |  6 +++
 layout/build/nsLayoutModule.cpp                   |  4 ++
 9 files changed, 116 insertions(+), 17 deletions(-)
2013-07-02 15:46:49 +12:00
Garrett Robinson
f2ddf7c926 Bug 885433 - CSP should not block inline scripts or eval unless script-src or default-src are included (r=imelven) 2013-07-01 17:46:21 -07:00
Jim Mathies
d7fef01251 Bug 810399 - Add new css selectors and media queries for windows os versions. r=bz 2013-07-01 11:02:29 -05:00
David Rajchenbach-Teller
357200ae5b Bug 887288 - Make nsDOMMemoryFileDataOwnerMemoryReporter thread-safe. r=khuey 2013-07-01 09:55:04 -04:00
Alexandre Poirot
fef5051523 Bug 887781 - Send message-manager-disconnect notification event when any message manager get disconnected. r=smaug 2013-07-01 09:46:53 -04:00
Ryan VanderMeulen
c6e480b87f Merge inbound and m-c. 2013-07-01 08:12:24 -04:00
Ms2ger
0a7d6a39da Bug 888321 - Pass CSSIntPoint to ScrollToCSSPixels; f=kats r=roc 2013-07-01 09:14:36 +02:00
Bobby Holley
2cc8f76cf2 Bug 865745 - Remove nsFrameScriptExecutor::DestroyCx. r=smaug 2013-06-30 09:00:20 -06:00
Bobby Holley
297c3002d2 Bug 865745 - Remove mCx from nsFrameScriptExecutor. r=smaug 2013-06-30 09:00:20 -06:00
Bobby Holley
4cd50c50a8 Bug 865745 - Return the safe JSContext for Tab Children in GetJSContextForEventHandlers. r=smaug 2013-06-30 09:00:19 -06:00
Bobby Holley
694b2f0c90 Bug 865745 - Check mGlobal instead of mCx to see if we're in a functional state. r=smaug
Their lifetimes should be the same, and the latter is going away.
2013-06-30 09:00:19 -06:00
Bobby Holley
05ff089d53 Bug 865745 - Remove mContext from nsFrameMessageManager. r=smaug 2013-06-30 09:00:19 -06:00
Bobby Holley
799d59a0a4 Bug 865745 - Remove redundant cx push. r=smaug
AutoSafeJSContext will always push.
2013-06-30 09:00:18 -06:00
Bobby Holley
d2865be525 Bug 865745 - Use an AutoSafeJSContext in nsFrameMessageManager::ReceiveMessage. r=smaug
This function proceeds to push its cx and enters a compartment, so it can't be
depending on any compartment or callstack state of the cx it's using. The only
potential issue would then be reporting the error to the correct DOM window, but
this stuff is used only for chrome, where that doesn't matter. The safe JSContext
uses the same error reporter as JSMs and such, which is probably fine.
2013-06-30 09:00:18 -06:00
Bobby Holley
9b8345e3a5 Bug 865745 - Hold a strong ref to the global for the duration that each nsFrameScriptCx is on the stack. r=smaug
These things currently do a complicated refcounting dance to avoid destroying the
cx until all the consumers of it are gone. That stuff can mostly go away now that
we're just using the SafeJSContext, but DestroyCx also nulls out the global, so
we should make sure to keep that alive for anyone that might be using it.
2013-06-30 09:00:18 -06:00