Commit Graph

797 Commits

Author SHA1 Message Date
Andreas Farre
04e5953787 Bug 1313864 - Move running idle callbacks to executor. r=bkelly
MozReview-Commit-ID: EuJfpkM6Acf
2017-01-27 17:54:39 +01:00
Kearwood (Kip) Gilbert
5ce3af7cc0 Bug 1293333 - Part 1: Implement window.onvrdisplayactivate and window.onvrdisplaydeactivate events r=daoshengmu,Ehsan
MozReview-Commit-ID: 746L5KObBcg
2016-10-18 18:18:10 -04:00
Bill McCloskey
be49fc768f Bug 1332494 - Move TaskCategory definition to xpcom/threads/TaskCategory.h (r=froydnj)
MozReview-Commit-ID: ET43PbGRgxl
2017-01-26 14:45:58 -08:00
Phil Ringnalda
2b3ff1fe3a Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Kate McKinley
0277b62d89 Bug 1329940 - Ignore window.opener for password manager warnings r=baku,jwatt,MattN
MozReview-Commit-ID: KiIR6WEddgO
2017-01-12 16:57:44 -08:00
Kartikaya Gupta
bfbb25e09a Bug 1333503 - Remove some dead code relating to overfill calculation. r=mchang,mrbkap
MozReview-Commit-ID: HiT0jJynpyC
2017-01-25 14:03:36 -05:00
Bevis Tseng
ba2d99d8bb Bug 1314833 - Part 1.2: Define AbstractThreadFor(TaskCategory aCategory) in Dispatcher and DispatcherTrait. r=billm
MozReview-Commit-ID: 2kt3EN2WyXl
2016-12-01 18:33:05 +08:00
Michael Layzell
578b151b40 Bug 1331525 - Send the Large-Allocation success message to the correct document, r=ehsan
MozReview-Commit-ID: E44hlMI2EE3
2017-01-19 15:26:28 -05:00
Xidorn Quan
d29e034a84 Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
MozReview-Commit-ID: 3uS9s5ZrPFd
2017-01-12 12:23:37 +11:00
Cameron McCormack
5f9911da79 Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Cameron McCormack
a35ad172e6 Bug 1328832 - Part 1: Rename mozFlushType.h to FlushType.h. r=bzbarsky
MozReview-Commit-ID: 1ubwNkBEdfz
2017-01-05 14:54:02 +08:00
Andrea Marchesini
1f55f5062e Bug 1322550 - Rename DOMStorage to Storage, r=smaug 2017-01-04 14:53:01 +01:00
Bill McCloskey
d34d4e1c67 Bug 1320753 - Make TabGroup event target be a ThrottledEventQueue for timers, workers (r=bkelly)
MozReview-Commit-ID: FCfYz02r8yI
2016-12-23 11:48:13 -08:00
Bill McCloskey
a36d03f52a Bug 1320753 - Stop using already_AddRefed for EventTargetFor (r=ehsan)
MozReview-Commit-ID: ECy1jlQ7qne
2016-12-23 11:48:13 -08:00
Wes Kocher
a5b654a9fa Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)

MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Olli Pettay
228be96d20 Bug 1110928 trigger full GC only when closing top level outer window , r=mccr8 2017-01-23 19:23:57 +02:00
Boris Zbarsky
45d91495d0 Bug 1325028 part 5. Change nsGlonalWindow::CanMoveResizeWindows to take CallerType. r=bkelly 2016-12-22 11:06:32 -08:00
Boris Zbarsky
df70eeab93 Bug 1325028 part 4. Remove IsCallerChrome use from nsGlobalWindow::MoveTo/MoveBy. r=bkelly 2016-12-22 11:06:32 -08:00
Boris Zbarsky
b52895e12f Bug 1325028 part 3. Remove IsCallerChrome use from nsGlobalWindow::ResizeTo/ResizeBy/SizeToContent. r=bkelly 2016-12-22 11:06:32 -08:00
Boris Zbarsky
88d0e95ad6 Bug 1325028 part 2. Remove IsCallerChrome use from the various things called via SetReplaceableWindowCoord. r=bkelly 2016-12-22 11:06:30 -08:00
Boris Zbarsky
772b0e1da6 Bug 1325028 part 1. Remove IsCallerChrome use from nsGlobalWindow's .content getter. r=bkelly 2016-12-22 11:05:55 -08:00
Boris Zbarsky
3873abb4ad Bug 1320801 part 5. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's devicePixelRatio getter. r=bkelly 2016-12-22 11:05:54 -08:00
Boris Zbarsky
2c3ed844a8 Bug 1320801 part 4. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's mozInnerScreenX/mozInnerScreenY getters. r=bkelly 2016-12-22 11:05:54 -08:00
Boris Zbarsky
7067bcb840 Bug 1320801 part 3. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's orientation getter. r=bkelly 2016-12-22 11:05:54 -08:00
Boris Zbarsky
e18c9e857d Bug 1320801 part 2. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's screenX/screenY getters. r=bkelly 2016-12-22 11:05:54 -08:00
Boris Zbarsky
09af970dd5 Bug 1320801 part 1. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's outerWidth/outerHeight getters. r=bkelly 2016-12-22 11:05:54 -08:00
Daosheng Mu
f565e6c7c7 Bug 1315896 - Part 1: Remove MOZ_GAMEPAD in DOM API; r=qdot
MozReview-Commit-ID: IgvMuXlE5BS
2016-12-08 12:59:06 -10:00
Andrea Marchesini
3282bee330 Bug 1323948 - PaintWorkletGlobalScope, r=smaug 2016-12-16 22:21:51 +01:00
Andrea Marchesini
2157bb96f6 Bug 1322858 - Implement AudioWorkletGlobalScope - main-thread only - not meant to be exposed yet, r=smaug 2016-12-14 14:43:26 +01:00
Ehsan Akhgari
3684e4e8de Bug 1323203 - Devirtualize nsPIDOMWindow::IsRunningTimeout(); r=bkelly 2016-12-13 14:27:03 -05:00
Ehsan Akhgari
ba45de7747 Bug 1321903 - Refactor the timeout/interval management code out of nsGlobalWindow; r=bkelly
This code now lives in TimeoutManager.  Note that this is a transition
state, the Timeout list management code also needs to be refactored out
later.

In order to simplify the lifetime management of the new class, its
lifetime is equal to the lifetime of its containing nsGlobalWindow.  In
a few places where we need to dispatch runnables to do asynchronous work
on this object, we hold the containing window alive to guarantee safety.

This patch also removes a bit of dead code that was left over from the
code removed in bug 1281793. See:
https://hg.mozilla.org/mozilla-central/rev/0ac748f4d677#l1.63
2016-12-13 14:08:47 -05:00
Andreas Farre
073b764616 Bug 1316871 - Throttle background setTimeouts. r=bkelly
MozReview-Commit-ID: 2bN3NZfdCzv
2016-12-09 04:33:00 +01:00
Bill McCloskey
85fe8298e7 Bug 1320753 - Refactor for new event target idea (r=ehsan)
MozReview-Commit-ID: AyhemNqBedb
2016-11-30 18:01:59 -08:00
Ben Kelly
a950e7cff3 Bug 1318084 Make nsGlobalWindow back pressure increase timer delays instead of calling Suspend(). r=smaug 2016-11-17 23:16:20 -08:00
Bill McCloskey
10dff13526 Bug 1305926 - Custom event targets for Dispatcher API (r=ehsan)
MozReview-Commit-ID: 9FXq1BRXwku
2016-11-17 17:01:02 -08:00
Bill McCloskey
d23f8f598f Bug 1305926 - Dispatcher API for assigning DocGroups to runnables (r=ehsan)
MozReview-Commit-ID: 8qO95a6z1Ut
2016-11-17 17:01:00 -08:00
Ben Kelly
fc7c9534bb Bug 1300659 P5 Suspend a window if its main thread TaskQueue falls to far behind. r=smaug 2016-11-07 12:30:18 -08:00
Ben Kelly
dd034d74fa Bug 1300659 P3 Make setTimeout() and setInterval() use the TabGroup ThrottledEventQueue. r=smaug 2016-11-07 12:30:17 -08:00
Ben Kelly
5d7c863dbe Bug 1300659 P2 Expose a ThrottledEventQueue on TabGroup and nsPIDOMWindow. r=smaug 2016-11-07 12:30:17 -08:00
Andrea Marchesini
15f0361bdf Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 1 - WebIDL interface, r=smaug 2016-11-06 09:53:34 +01:00
Andreas Farre
b6e8a0530c Bug 1198381 - Implement the requestIdleCallback feature, r=froydnj,mattwoodrow,smaug
Expose requestIdleCallback on Window and implement running callbacks
in idle periods by posting rICs to the main threads idle queue.

MozReview-Commit-ID: KSYQsyaZ6is
2016-08-22 14:52:45 +02:00
Andreas Farre
3ab0673319 Bug 1198381 - Extend setTimeout handling in nsGlobalWindow, r=smaug
The requestIdleCallback feature behaves in many ways as setTimeout
since it takes an optional timout when the idle callback will be
called regardless of the user agent being idle or not. This means that
the same mechanisms controlling setTimeout are needed for
requestIdleCallback.

MozReview-Commit-ID: 9mESsJnUexf
2016-08-22 15:07:50 +02:00
Andreas Farre
a1bf32bb0a Bug 1198381 - Extract nsITimeoutHandler from nsIScriptTimeoutHandler. r=smaug
MozReview-Commit-ID: HJHrbodWYVf
2016-10-05 14:26:08 +02:00
Andreas Farre
95c440b772 Bug 1198381 - Move/rename nsTimeout to Timeout, r=smaug
MozReview-Commit-ID: 1WrH2ZbOuzj
2016-08-22 14:52:19 +02:00
Michael Layzell
beeb5c8509 Bug 1310778 - Move TabGroup and GetDocGroup accessors onto nsPIDOMWindow{Inner,Outer}, r=smaug
MozReview-Commit-ID: Hl0QVktr0Lw
2016-10-28 15:38:28 -04:00
Michael Layzell
28edda560a Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Ben Kelly
3140345d73 Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug 2016-10-26 10:20:16 -07:00
Ben Kelly
b83b282e25 Bug 1303167 P4 Make ModalState use new window suspend method. r=smaug
* * *
Bug 1303167 P4 interdiff 0001 Review feedback
2016-10-26 10:20:16 -07:00
Ben Kelly
10cbf7084c Bug 1303167 P3 Remove old window suspend and freeze methods. r=smaug 2016-10-26 10:20:15 -07:00
Ben Kelly
45fce3ebba Bug 1303167 P1 Add new window suspend and freeze methods. r=smaug
* * *
Bug 1303167 P1 Interdiff 001 Address review feedback
2016-10-26 10:20:15 -07:00