Commit Graph

1289 Commits

Author SHA1 Message Date
Kyle Huey
7da7ee7e4b Bug 648997: Implement BlobBuilder spec as mozBlobBuilder. r=sicking.
Note that there is one key difference between this implementation and the spec.  In this patch mozBlobBuilder.getBlob("content/type"); returns a Blob and clears the mozBlobBuilder.  In the spec the BlobBuilder is not cleared.  Thus,

let bb = new mozBlobBuilder();
mozBlobBuilder.append("foo");
let blob1 = mozBlobBuilder.getBlob("content/type");
// blob1 contains "foo"
mozBlobBuilder.append("bar");
let blob2 = mozBlobBuilder.getBlob("content/type");
// blob2 contains "bar", the spec says it should contain "foobar".

IMO, the spec behavior optimizes for the wrong case.  BlobBuilder will probably be used mostly as a one-shot API.  Additionally, the spec requires the BlobBuilder to hang on to potentially large amounts of memory between the getBlob() call and when the BlobBuilder is GCd.

These issues have been raised on the listserv.
2011-05-20 10:18:45 -07:00
William Chen
db78afb329 Bug 560112 - Implement HTML5 dataset attribute. r=sicking,mrbkap 2011-05-20 10:23:49 -07:00
Rob Campbell
9b7851356a merge m-c to devtools 2011-05-16 08:54:46 -03:00
Panos Astithas
988c16c273 Bug 646025 - Add file location to console.log, info, debug, etc.; f=mihai.sucan r=gavin.sharp 2011-05-12 09:29:17 -03:00
Honza Bambas
66f442f038 Bug 654707 - Crash [@ nsGlobalWindow::FireDelayedDOMEvents], r=jst
--HG--
extra : rebase_source : 0b41a8aab5a92192754c0a15ae563e40c60eb892
2011-05-04 07:49:00 -07:00
Justin Lebar
66eadc7e21 Bug 656991 - Fix leak in nsStructuredCloneContainer::InitFromVariant. r=bz,igor 2011-05-15 20:29:19 -04:00
Ms2ger
d5df8a6e33 Bug 655514 - Remove nsIDOMDocumentTraversal; f=ehsan r=jonas 2011-05-15 12:07:30 +02:00
Ms2ger
a49c5db9c8 Bug 655513 - Remove nsIDOMDocumentRange; f=ehsan r=bzbarsky 2011-05-15 12:07:28 +02:00
Blake Kaplan
4b39ce24e3 Bug 643393 - Speed up nsJSContext::GetGlobalObject. r=peterv 2011-04-28 13:28:54 -07:00
Chris Leary
a7253cc393 Bug 654301: Better interned string API, take 2. (r=Waldo) 2011-05-17 12:15:12 -07:00
Blake Kaplan
08a8f3a6ab Bug 654370 - Initialize bp to false to avoid reading random memory. r=gal
--HG--
extra : rebase_source : 0a3b1b9e203d0ccc5bf33998f1509bef1beae36c
2011-05-17 09:25:06 +02:00
Josh Aas
f6eb4c8df6 Bug 637253: Remove nsIPluginInstance interface. r=bsmedberg 2011-05-17 21:48:34 -04:00
Justin Lebar
ec8f99b5de Bug 656991 - Followup. Use JS_free instead of free. r=bz
--HG--
extra : rebase_source : 00e5cc27f067a191e7a834852faee8c788feb061
2011-05-16 16:36:12 -04:00
Mounir Lamouri
7211c91c57 Bug 514437 - Content part of the progress element. r=smaug 2011-04-09 10:22:02 -07:00
Matt Brubeck
1b17575132 Back out changeset bfb48178c8ec (finish backing out bug 514437) to fix tests on a CLOSED TREE. 2011-05-09 19:38:05 -07:00
Justin Lebar
8ce3ec96a2 Bug 551225 - Make pushState use structured clone. r=zpao, sicking 2011-04-24 22:30:54 -04:00
Rob Campbell
a45c4c0fa6 merge m-c to devtools 2011-05-09 10:27:05 -03:00
Rob Campbell
7729d517f9 merge m-c to devtools 2011-05-06 13:03:37 -03:00
Rob Campbell
4eefba4480 merge m-c to devtools 2011-05-04 09:28:00 -03:00
Masatoshi Kimura
ffece27fd3 Bug 650505 - Get rid of ComputedCSSStyleDeclaration. r=dbaron,jst,peterv 2011-05-04 09:26:41 +02:00
Rob Campbell
2ce18c224b merge m-c to devtools 2011-05-03 09:55:19 -03:00
Rob Campbell
7316e1183a merge m-c to devtools 2011-05-02 16:15:53 -03:00
Chris Leary
55f7c6409e Merge mozilla-central to tracemonkey. (CLOSED TREE) 2011-05-02 10:55:34 -07:00
Rob Campbell
ac0e2c923c merge m-c to devtools 2011-04-29 09:05:20 -03:00
Justin Lebar
40443aa024 Bug 653364 - HashChange event should have isTrusted property. r=bz
--HG--
extra : rebase_source : 6829b06980ed01c38e0cc5b88a9428fc784c1bb0
2011-04-28 16:13:03 -04:00
Rob Campbell
f9275d2f38 merge m-c to mozilla-central 2011-04-27 10:11:37 -03:00
Rob Campbell
d880ccd126 merge m-c to devtools 2011-04-26 09:37:34 -03:00
Ehsan Akhgari
d2a61eb331 Backout changeset 13f6847dd840 (bug 616684) because it changes code semantics in a bad way, which results in problems like the crash in bug 652580, possibly among others 2011-04-25 17:05:17 -04:00
Rob Campbell
592b70f604 merge m-c to devtools 2011-04-25 15:13:53 -03:00
Daniel Holbert
f2c8f7e143 Bug 652559: Fix signed/unsigned comparison build warning in nsGlobalWindow.cpp. r=bz 2011-04-25 10:58:42 -07:00
Boris Zbarsky
d7fa626f0b Bug 649997 part 3. Change nsIHTMLCollection::GetNamedItem to not use an nsresult outparam. r=peterv 2011-04-25 13:46:59 -04:00
Boris Zbarsky
ed02e974ea Bug 649997 part 2. Change nsIHTMLCollection::GetNodeAt to not use an nsresult outparam. r=peterv 2011-04-25 13:46:57 -04:00
Rob Campbell
2b975e0f42 merge m-c to devtools 2011-04-25 10:13:36 -03:00
Olli Pettay
5c2503795f Bug 613634, make the 3rd paramater of add/removeEventListener optional, r=sicking
--HG--
extra : rebase_source : 9c720d865ed24e5b54cda287360b0fec508df359
2011-05-04 17:13:28 +03:00
Rob Campbell
7137960211 merge m-c to devtools 2011-04-21 13:18:12 -03:00
Chris Jones
a61c26e2c0 Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke 2011-04-28 17:48:52 -05:00
Chris Jones
6fd4cbff2d Bug 642381, part 2: Rename LazilyConstructed to Maybe. r=luke 2011-04-28 17:48:51 -05:00
Justin Lebar
f0e9722244 Fix bug 642338. r=smaug
--HG--
extra : rebase_source : c23e4c1c7d9b284d9f32acae93434e79a001df08
2011-04-27 16:54:07 -04:00
Olli Pettay
744a48fa95 Bug 652814 - Rename nsIDOMTouchPoint to nsIDOMTouch (and a *aRetVal = nsnull for bug 648573 comment 19), r=mbrubeck 2011-04-27 14:58:25 +03:00
Rob Campbell
7f5bc75897 merge m-c to devtools 2011-04-20 11:19:22 -03:00
Vivien Nicolas
348b51fee1 Bug 532738 - Do not open the virtual keyboard on untrusted focus (caused by content page scripts) [r=masayuki] 2011-04-20 14:47:40 +02:00
Rob Campbell
96a493208d merge m-c to devtools 2011-04-19 14:35:15 -03:00
Rob Campbell
2a248ffa43 merge m-c to devtools 2011-04-18 09:18:24 -03:00
Zack Weinberg
dd67585463 Bug 651017, part 5: mechanical changes.
--HG--
extra : rebase_source : 8bbdf48488736b51d05e734e2e9316c1460cfed5
2011-04-16 18:22:44 -07:00
Zack Weinberg
51864c09d8 Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Robert O'Callahan
c957ae039e Bug 641426. Part 5: Avoid operator== where possible to distinguish between 'equal edges' and 'equal areas' for rectangles. r=dbaron,sr=cjones 2011-04-19 15:07:23 +12:00
Ed Morley
2e55e1cc34 Bug 634936 - Add null-check for nsContentUtils::GetPrefBranch() to prevent Crash [@ nsFocusManager::Init ]; r=jst 2011-04-16 11:14:09 +02:00
Paolo Amadini
16bbd5298f Bug 635888 - Meta refresh breaks slow script warning; f=dolske r=jst 2011-04-16 11:14:08 +02:00
Rob Campbell
ca348c2e47 merge m-c to devtools 2011-04-14 09:40:08 -03:00
Ms2ger
5d712a77e7 Bug 620000 - Remove nsXULPDGlobalObject::OnFinalize's language id parameter; r=jst 2011-04-14 14:04:08 +02:00
Kyle Huey
d0c0eab2e5 Bug 607114: Expose a File constructor to chrome script. r=sicking
--HG--
rename : content/canvas/test/image_yellow.png => content/base/test/chrome/fileconstructor_file.png
2011-04-13 19:41:34 -07:00
Jonas Sicking
913afe451c Bug 649672: Make File.slice arguments match Array.slice and prefix File.slice. r=khuey 2011-04-13 14:34:36 -07:00
Ms2ger
295bf7256b Bug 616684 - Remove support for DOM Views; r=sicking 2011-04-24 08:54:25 +02:00
Mounir Lamouri
db44db0ebe Merge cedar with mozilla-central. 2011-04-22 15:25:11 +02:00
Ms2ger
bb77c2f7cd Bug 646184 - Crash [@ nsGlobalWindow::GetLocalStorage] getting localStorage from removed frame; r=bz 2011-04-22 10:38:33 +02:00
L. David Baron
3f90844e3c Implement window.matchMedia for matching of media queries and notification of media query changes. (Bug 542058, patch 3) r=bzbarsky
This is specified at:
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
2011-04-21 20:17:31 -07:00
David Zbarsky
5ecf0a2bd3 Bug 610305: decom nsEventStateManager r=smaug 2011-04-21 19:35:52 +02:00
Craig Topper
ceba599007 Bug 585255 - Remove nsTreeWalker usage from nsFocusManager. r=sicking 2011-04-11 19:46:59 -07:00
Ms2ger
941e819c63 Bug 616684 - Remove support for DOM Views; r=sicking,ehsan 2011-04-24 08:54:25 +02:00
Alon Zakai
ba1bdecf39 Bug 615597 - Implement the W3C DeviceOrientation event. r=smaug,blassey 2011-04-29 16:49:20 -07:00
Mihai Sucan
5128602d66 Bug 585956 - Implement console.trace() in web console; f=ddahl r=rcampbell,jonas 2011-04-11 20:48:15 +03:00
Peter Van der Beken
e9a0c2e1a1 Fix for bug 649534 (Remove nsIXSLTProcessorObsolete). r=sicking.
--HG--
extra : rebase_source : 48d37254b6f50ac74b285fb0f765c159877e7d03
2011-04-08 10:50:51 -07:00
Justin Lebar
568b1c07ba Bug 628069 - Followup; fix formatting. r=whitespace-only 2011-04-20 17:10:06 -04:00
Justin Lebar
331607e5aa Bug 628069 - Add newURL, oldURL properties to hashchange event. r=smaug
--HG--
extra : rebase_source : 865194e9c50612599ad029815314c0819de60124
2011-03-31 16:30:32 -04:00
Ed Morley
6097bd945c Bug 651657 - Remove WinCE & Windows Mobile code from dom/* ; r=jst,dolske 2011-04-29 15:50:53 +02:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Olli Pettay
c9e2181c9f Bug 651984 - Add ability to detect if a page has registered touch event listeners, r=jst 2011-04-26 15:31:21 +03:00
Olli Pettay
46d7b33a70 Bug 648573 - Implement touch event interfaces, r=jst, pref'ed off by default 2011-04-26 15:30:17 +03:00
Ehsan Akhgari
3b68afadb4 Merge cedar into mozilla-central 2011-04-13 14:00:55 -04:00
Ms2ger
373b34bd69 Bug 605098 - Kill navigator.securityPolicy; r=dveditz 2011-04-12 21:04:31 -04:00
Benjamin Smedberg
6620f620d9 Bug 617539 - Remove nsIPluginHost_MOZILLA_2_0_BRANCH, nsIPluginInstanceOwner_MOZILLA_2_0_BRANCH, and nsIPluginInstance_MOZILLA_2_0_BRANCH; r=jst 2011-04-11 16:00:30 -04:00
Ms2ger
d791c18c29 Bug 647549 - Unused variable newInnerJSObject in nsJSContext::ConnectToInner; r=jst 2011-04-11 08:45:40 -07:00
Rob Campbell
e681ae8140 merge m-c to devtools 2011-04-10 10:47:40 -03:00
Rob Campbell
b1f7535884 Bug 616742 - Implement console.debug() (was: Navigation broken on Citytv website); r=ddahl,jonas 2011-04-08 14:20:41 -07:00
Blake Kaplan
bf58da448d Fix bug 643450. r=peterv
--HG--
extra : rebase_source : b49b5ee41b5465090ce7b6db5793174ffe2ad9be
2011-04-08 14:28:24 -07:00
Blake Kaplan
697524ea29 Bug 642022 - Deal with the return value being in a different compartment. r=gal
--HG--
extra : rebase_source : b924c99e830cdafd7e1471cf087e69cfc7e33e23
2011-04-08 14:28:24 -07:00
Blake Kaplan
f82a68b669 Bug 642026 - Enumerate standard classes. r=jst
--HG--
extra : rebase_source : a4a9630f54d398337a22ba5f75cee466ef4854db
2011-04-08 13:28:05 -07:00
Mounir Lamouri
dd977ba6ef Bug 514437 - Content part of the progress element. r=smaug 2011-04-09 10:22:02 -07:00
Boris Zbarsky
ae3f14f1ba Merge cedar with mozilla-central 2011-05-06 20:39:36 -04:00
Craig Topper
cc15a2a6e3 Bug 648925 - Part 1: Change uses of nsICSSRule to css::Rule. r=bzbarsky 2011-04-07 18:23:46 -07:00
Ms2ger
7dfa3e196c Bug 660635 - Remove Notation; r=sicking 2011-06-04 08:57:22 +02:00
Neil Deakin
82200ac5ea Bug 554919, support panels which can dragged via their backgrounds, r=dao,smaug 2011-06-03 15:38:24 -04:00
Matheus Kerschbaum
7406ce377f Bug 660762 - Remove --disable-mathml support. r=roc 2011-06-02 13:11:33 +02:00
Boris Zbarsky
35d9b78644 Bug 598833 part 5. Store focus and focusring state directly on elements. r=smaug,enn 2011-05-31 21:46:56 -04:00
Daniel Holbert
84ac54fe59 Bug 658849 followup: Remove one more instance of harmless "WARNING: Failed to create timer" message that gets spammed on shutdown. r=gal 2011-05-31 17:42:46 -07:00
Mounir Lamouri
6060bdd44e Bug 565541 (2/2) - Prevent abusing usage of moving and resizing window. r=bz
The rules are simple, callers can move or resize a window if both conditions
apply:
1. the window has been created with window.open;
2. the window only contains one tab.

--HG--
extra : rebase_source : 7b1fdfa121a701b47ece46a63e36483ca4d75672
2011-05-31 14:30:20 +02:00
Boris Zbarsky
18cce8e61c Bug 657353 part 2. Switch content state updates away from calling Begin/EndUpdate. r=sicking 2011-05-31 17:38:25 -04:00
Olli Pettay
132add9eb2 Bug 307258 - Support beforeprint and afterprint events, r=mats, sr=roc
--HG--
extra : rebase_source : f14da5d6e282fe6ab4813c121d3366844dd89af6
2011-05-14 15:03:58 +03:00
Chris Leary
4d1fba5db8 Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Olli Pettay
ee9e8dc348 Bug 656878, nsStringArraySH::GetProperty should not copy, but share strings, r=bz
--HG--
extra : rebase_source : 2e7fc8f848042ea7557ea9116f8ec9152869114a
2011-05-13 19:12:24 +03:00
Boris Zbarsky
6ae99aa202 Bug 597291. Create nsIURI objects lazily for nsCSSValue::URL, so that we don't pay the cost of creating the ones we don't actually need. r=dbaron
In the new setup, the mURL member of nsCSSValue::URL stores either the actual URI pointed to or the base URI; a boolean flag keeps track of which is stored.  Consumers use GetURI() to get the URI instead of raw access to mURI, and GetURI calls NS_NewURI as needed.
2011-05-11 11:28:53 -04:00
Olli Pettay
aaa8063f93 comparing with ssh://opettay@mozilla.com@hg.mozilla.org/mozilla-central/
searching for changes
changeset:   68981:5f295573b22d
tag:         tip
user:        Olli Pettay <Olli.Pettay@helsinki.fi>
date:        Mon May 09 18:47:13 2011 +0300
summary:     Bug 427537 - Implement CustomEvent DOM3 specification, r=sicking
2011-05-11 09:33:11 +03:00
Ed Morley
082d53f39b Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
Ms2ger
6c02285d88 Bug 654137 - Make window.top not replacable; r=bz 2011-05-10 20:24:44 +02:00
Gregor Wagner
dc5385284e Bug 603916 - unifying GC sheduling. r=igor 2011-05-10 22:37:11 -07:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Boris Zbarsky
88b5ba318f Bug 646972. Clamp the timeout interval after storing mInterval on the nsTimeout, so interval timers will correctly speed up when a tab goes from background to foreground. r=jst 2011-04-04 16:22:48 -07:00
Ehsan Akhgari
bc84b1a1ca Backout changeset 649f50ed53ca (bug 646184) because of debug crashtest failures 2011-04-01 18:22:22 -04:00
Ms2ger
6ba85475ea Bug 646184 - Crash [@ nsGlobalWindow::GetLocalStorage] getting localStorage from removed frame; r=bz 2011-03-30 08:58:21 +02:00
Peter Van der Beken
4d0735697c Fix for bug 637116 (Leak documents+windows with replaceState, focus, event handler closure). r=mrbkap.
--HG--
extra : rebase_source : 57090db5f6805d70811dc5753e2bc91feb65c0b5
2011-03-03 12:55:55 +01:00