Commit Graph

79482 Commits

Author SHA1 Message Date
Felix Fung
e337f8e76f Bug 397424 - Downloads cause high CPU usage. r=gavin
This addresses an issue with the download manager that can cause high CPU usage
when there is an active download.  The underlying issue is the frequency of
updates that the download progress listener receives.
Things changed:
- reduced the number of null checks in DownloadUtils.jsm's getDownloadStatus
  function by one (down to two from three).
- obtain and format strings from the nsIStringBundle.  This removes all the
  calls to String.replace in DownloadUtils.jsm.
- modifies the download manager back-end to update the percentComplete and size
  property on downloads before dispatching a state changed notification for
  downloads entering the DOWNLOAD_DOWNLOADING state.  This saves us two calls to
  setAttribute on downloads that we know how big they are, and saves us the same
  two calls to setAttribute for indeterminate downloads as well as not
  dispatching a ValueChange event on the progressmeter every time
  onProgressChange is called on the DownloadProgressListener.
- has nsDownload implement nsIClassInfo so we do not need to QueryInterface when
  going through the list of active downloads in both the download manager's UI
  and the browser's taskbar UI.
2011-11-03 15:25:55 -07:00
Mats Palmgren
a5f993933d Bug 693212 - crash test. r=test-only 2011-11-04 19:05:35 +01:00
Andreas Gal
41b82ee5f9 Bug 693212 - Fix "Assertion failure: !cx->isExceptionPending()" by adding a missing ReportPendingException() call. r=bzbarsky 2011-11-04 19:05:35 +01:00
Mats Palmgren
396adcb6e1 Bug 671484 - Change 'ABORT: root should not have auto-height containing block' into an assertion for now to avoid aborting fuzz testing. r=roc 2011-11-04 19:05:35 +01:00
Mats Palmgren
8fe06b1d7b Bug 699383 - Remove unused 'aboveTextDecorations'. r=roc 2011-11-04 19:05:35 +01:00
Ben Turner
eb622514af Bug 699857 - 'Workers: Allow data urls'. r=sicking. 2011-11-04 10:57:42 -07:00
Boris Zbarsky
3678f3ebd8 Bug 698495 followup: deal with uint32 being inconsistently defined by JS and NSPR in ways that break the Win64 build. r=waldo pending 2011-11-04 13:57:39 -04:00
Tom Schuster
92dba89a43 Backout 8b394bdb306f because of test failures 2011-11-04 18:50:09 +01:00
Taras Glek
5784fecddc Bug 697860: Telemetry prompt should be tri-state r=gavin 2011-11-04 10:07:24 -07:00
Tom Schuster
f0db7825f6 Bug 430927 - Don't decompile to \0 as it was incorrectly interpreted as octal. r=waldo
--HG--
extra : rebase_source : 354646d3fd2a28fd5b538f988f3b51aa98925728
2011-11-03 21:58:06 +01:00
Tom Schuster
ad9cccd366 Bug 698584 - Fix crash in RegExp.test in case of OOM. r=mrbkap
--HG--
extra : rebase_source : 832a69bf6a5e3d8d5f4e334646850ad3207714a9
2011-11-03 21:57:32 +01:00
Ben Turner
17d7b1154e Bug 699633 - "Inline workers broken". r=sicking, test by Jussi Kalliokoski <jussi.kalliokoski@gmail.com>. 2011-11-04 09:32:17 -07:00
Daniel Holbert
05223144e8 Bug 699143: Force a synchronous SMIL sample when we register the first animation element in a document. r=birtles 2011-11-04 09:24:04 -07:00
Boris Zbarsky
26bc193987 Bug 699705. When forwarding property gets to the proto for arrays, send along the right receiver even if the property lives on a non-native object. r=waldo 2011-11-04 12:26:03 -04:00
Boris Zbarsky
92b5d3f4fd Bug 699237. Add a getElementIfPresent on typed arrays. r=waldo 2011-11-04 12:25:52 -04:00
Boris Zbarsky
adfd17214b Bug 698495 part 5. Implement getElementIfPresent on nodelist proxies. r=peterv 2011-11-04 12:25:18 -04:00
Boris Zbarsky
f54589df3b Bug 698495 part 4. Implement a JS_GetElementIfPresent API. r=waldo 2011-11-04 12:19:13 -04:00
Boris Zbarsky
44a9bf053c Bug 698495 part 3. Expose IndexToId to API consumers. r=waldo 2011-11-04 12:19:07 -04:00
Boris Zbarsky
f00eb19bad Bug 698495 part 2. Add an optional getElementIfPresent ObjectOps hook. r=waldo 2011-11-04 12:19:00 -04:00
Boris Zbarsky
175077ac69 Bug 698495 part 1. Create a getElementIfPresent method on JSObject with a generic implementation and use it from JSArray code. r=waldo 2011-11-04 12:18:52 -04:00
Boris Zbarsky
7c9b5321a5 Bug 698551. When forwarding gets to the prototype in nodelists, make sure to use the right |this|. r=waldo,peterv 2011-11-04 12:18:38 -04:00
Justin Lebar
0b9d7ca8e2 Bug 699101 - Warn when NO_MAC_JEMALLOC is set on i386 machines, because it doesn't work there. r=khuey 2011-11-04 11:41:53 -04:00
Rafael Ávila de Espíndola
9e0c55b266 Bug 696478 - Use weak references. r=mak. 2011-11-04 11:24:54 -04:00
Ed Morley
c18e6cb930 Merge mozilla-central and mozilla-inbound 2011-11-04 14:33:49 +00:00
Brian R. Bondy
fe3c82ecd2 Bug 695421 - Some reftests with invalid width and height in the ICO header. r=joe 2011-11-04 09:57:24 -04:00
Brian R. Bondy
4cda658a9a Bug 695421 - Fixed crash for ICO files that have a large (and wrong) width specified. r=joe 2011-11-04 09:56:17 -04:00
Rafael Ávila de Espíndola
7852254683 Bug 696376 - If stacks_enabled is false, only walk the stack on OS X 32 bits. r=
dbaron.
The 64 bit stack walks lack the InCriticalRange functionality and it looks like
the extra walks are causing an orange on leaktest on the bot.

--HG--
extra : rebase_source : 4c0a75892e30a6e522ed981a1ff12df99d2a0464
2011-11-04 09:49:48 -04:00
Henri Sivonen
0d3a65d714 Bug 699749 - Avoid the term "astral" in error messages. r=l10n. 2011-11-04 15:36:29 +02:00
Henri Sivonen
eac623a0ce Bug 699745 - Use UTF-8 instead of escapes in htmlparser.properties. r=l10n. 2011-11-04 15:36:29 +02:00
Henri Sivonen
d647974d3a Bug 698935 addendum - Rename the errStrayStartTag string key because the value changed. r=l10n. 2011-11-04 15:36:29 +02:00
Ed Morley
c598b4d8bf Backout 1f551298a760 (bug 697312) and b31507c8ca17 (bug 697246) for 25-30% Ts regression on multiple platforms
Except this time enter the changesets in the correct order in Mak's backout
script, so the changeset isn't empty :/
2011-11-04 10:50:16 +00:00
Ed Morley
4ad271a949 Backout 1f551298a760 (bug 697312) and b31507c8ca17 (bug 697246) for 25-30% Ts regression on multiple platforms 2011-11-04 09:44:27 +00:00
Ed Morley
20d95bbd95 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-04 09:03:13 +00:00
Ginn Chen
5307cb0875 Bug 693240 Use *((PRUint32*)ap) instead of *((bool*)ap) for big endian machines r=glandium 2011-11-04 16:55:21 +08:00
Makoto Kato
8d98c52488 Bug 254298 - nsPlainTextSerializer.cpp should not use AssignWithConversion. r=smaug 2011-11-04 17:44:13 +09:00
Makoto Kato
afd56ab0f4 Bug 672324 - Fix test for bug 650509 (Other apps can read Firefox profile files). r=mak77 2011-11-04 17:40:25 +09:00
Chris Pearce
0988303d6b Bug 685402 part 2 - Exit DOM full-screen on select/open/close tab and window deactivate. r=dao 2011-11-04 20:32:11 +13:00
Chris Pearce
848ff16c8c Bug 685402 part 1 - Exit DOM full-screen on document hide (navigation). r=bz 2011-11-04 20:30:09 +13:00
Daniel Holbert
d08be04b58 Bug 699325: Make calcMode="paced" smil animation fall back to calcMode="discrete" when its values have 0 distance between them. r=birtles 2011-11-04 00:21:58 -07:00
Boris Zbarsky
f0db867bef Bug 688685 test. r=waldo 2011-11-04 01:32:10 -04:00
Boris Zbarsky
f4cede8acd Bug 698974. Fix assertion to not assert things that are just false. r=sicking 2011-11-04 01:32:09 -04:00
Boris Zbarsky
94ed6889d1 Bug 699661. Call the class getElement hook from JSObject::getElement as needed. r=waldo 2011-11-04 01:32:09 -04:00
Boris Zbarsky
97a340772c Bug 684638 part 5. When we have an event posted to spell-check the whole document, suppress other spell-check events. r=ehsan 2011-11-04 01:32:09 -04:00
Boris Zbarsky
9a5b112e48 Bug 684638 part 4. Switch from nsIDOMNode to nsINode in mozInlineSpellWordUtil. r=ehsan 2011-11-04 01:32:09 -04:00
Boris Zbarsky
dcfdba5859 Bug 684638 part 3. Speed up mozInlineSpellWordUtil::MakeRange. r=ehsan 2011-11-04 01:32:09 -04:00
Boris Zbarsky
cba75ef2b0 Bug 684638 part 2. Make it simpler to set up a range. r=smaug 2011-11-04 01:32:09 -04:00
Boris Zbarsky
c58747aa09 Bug 684638 part 1. Speed up IsBreakElement. r=ehsan 2011-11-04 01:32:08 -04:00
Johnny Stenback
83ad81a6b8 Fixing bug 691785. r=khuey 2011-11-03 22:23:26 -07:00
Nicholas Nethercote
6313e20983 Bug 678977 - Teach sqlite to use jemalloc directly when applicable. code=nnethercote,khuey. r=khuey,sdwilsh,jlebar. 2011-11-03 20:53:41 -07:00
Makoto Kato
90ba915e12 Bug 632630 - Should add debug flag of assembler obj when MOZ_DEBUG_SYMBOLS. r=khuey 2011-11-04 11:59:47 +09:00