Commit Graph

797 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
be05d6bf8b Backed out changeset 228cc133fe6b (bug 1198381) for causing increased number of hangs in navigate() in marionette tests 2016-10-25 12:34:22 +02:00
Carsten "Tomcat" Book
48b41a87ad Backed out changeset 24839edcf0ef (bug 1198381) 2016-10-25 12:33:00 +02:00
Carsten "Tomcat" Book
50bf70ea06 Backed out changeset ffaf3d371130 (bug 1198381) 2016-10-25 12:32:58 +02:00
Carsten "Tomcat" Book
3fb3787b20 Backed out changeset eb2606332cb8 (bug 1198381) 2016-10-25 12:32:54 +02:00
Andreas Farre
a990fe8f33 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
8be8404a91 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
e8a146b724 Bug 1198381 - Extract nsITimeoutHandler from nsIScriptTimeoutHandler. r=smaug
MozReview-Commit-ID: HJHrbodWYVf
2016-10-05 14:26:08 +02:00
Andreas Farre
f291dc880c Bug 1198381 - Move/rename nsTimeout to Timeout, r=smaug
MozReview-Commit-ID: 1WrH2ZbOuzj
2016-08-22 14:52:19 +02:00
Boris Zbarsky
f869bdf12e Bug 1222516 part 2. Add a window API for opening a window passing through a boolean indicating that no opener should be set on the result. r=mconley 2016-10-20 16:52:38 -04:00
Boris Zbarsky
c955e0d4e5 Bug 1222516 part 1. Add a window API for opening a window with navigation and a given docshell loadinfo to use for the navigation. r=mconley
This will be used to pass through information like the triggering principal and
whatnot, as well as the boolean for not sending a referrer, for rel=noreferrer
links.
2016-10-20 16:52:38 -04:00
Boris Zbarsky
aa00c4000b Bug 1267339 part 3. Add support for the noopener window feature in windowwatcher. r=mconley 2016-10-20 16:52:38 -04:00
Boris Zbarsky
2aa98fa283 Bug 1267339 part 2. Push maintenance of the popup spam count down into the window watcher. r=mconley 2016-10-20 16:52:38 -04:00
Jon Coppeard
863d796e4b Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8 2016-10-18 17:58:19 +01:00
John Dai
3aaae2af88 Bug 1309140 - Rename CustomElementsRegistry to CustomElementRegistry. r=wchen, r=smaug
MozReview-Commit-ID: 3gYTaRVcV0y
2016-10-12 15:26:02 +08:00
Boris Zbarsky
65a99191a7 Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.

The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits.  Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Boris Zbarsky
04f9a09ee5 Bug 1269052 part 2. Add IsSecureContext on nsPIDOMWindowInner. r=bkelly 2016-10-10 15:09:00 -04:00
Andrea Marchesini
ce1665ef18 Bug 1306248 - Use NeedsSubjectPrincipal in DOMStorage, r=ehsan 2016-10-03 16:10:27 +02:00
Iris Hsiao
e1c70d74ac Backed out changeset a99817b61d70 (bug 1306248) for crashed @nsContentUtils::SubjectPrincipal
CLOSED TREE
2016-10-03 18:04:06 +08:00
Andrea Marchesini
fec4a147bf Bug 1306248 - Use NeedsSubjectPrincipal in DOMStorage, r=ehsan 2016-10-03 10:35:57 +02:00
Andrea Marchesini
4156a8473d Bug 1306232 - Use NeedsSubjectPrincipal in Window, r=ehsan 2016-09-29 16:14:42 +02:00
Sebastian Hengst
028bfd9b01 Backed out changeset b0be7d1b7a9a (bug 1303196) for asserting in devtools test: top->mTabGroup == mTabGroup, at dom/base/nsGlobalWindow.cpp:14425. r=backout 2016-09-25 09:23:40 +02:00
Michael Layzell
2f2ed83600 Bug 1303196 - Add TabGroup and DocGroup objects, r=billm
MozReview-Commit-ID: QHxYnXmuQN
2016-09-24 19:05:41 -04:00
Andrea Marchesini
1f8c556ee5 Bug 1302987 - Rename nsLocation to mozilla::dom::Location, r=smaug 2016-09-16 09:18:18 +02:00
Michael Layzell
4f5f78033f Bug 1302275 - Add a way to track Constellations (Units of related similar origin browsing contexts) to nsGlobalWindow, r=billm
MozReview-Commit-ID: AjbVZHEL9WZ
2016-09-14 12:22:40 -04:00
Ehsan Akhgari
33a06c322a Bug 1300816 - Remove nsTimeout::mPrincipal; r=bzbarsky
This seems to not be used for anything any more.
2016-09-06 14:36:26 -04:00
kearwood
cec1492bc8 Bug 1284357 - Part 2: Implement Navigator.activeVRDisplays,r=gw280
- WebVR 1.0 includes a new property added to Navigator,
  activeVRDisplays
- Please apply the patchset in Bug 1250244 first.

MozReview-Commit-ID: 6wffkwvKllW
2016-07-04 15:52:21 -07:00
Nicholas Nethercote
628ec722f3 Bug 1293596 (part 6) - Make nsIWidget::SetSizeMode() infallible. r=mstange,baku.
The only implementation of SetSizeMode() that can fail is the nsCocoaWindow
one, on an Objective C exception, which is unlikely and can be swallowed.

This allows some nsGlobalWindow functions to become infallible as well.
2016-08-22 09:15:49 +10:00
kearwood
beb748c907 Bug 1250244 - Part 8: Implement WebVR DOM Events,r=bz
MozReview-Commit-ID: 4Fk0WszVTBR
2016-07-04 15:46:49 -07:00
Kearwood (Kip) Gilbert
bbfa14d4ea Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
- In order to reduce the size of the following patches
  and increase their readability, we rename VRDevice
  to VRDisplay here first.

MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Kearwood (Kip) Gilbert
f9fd286412 Bug 1250244 - Part 2: Remove old VR rendering paths,r=gw280
MozReview-Commit-ID: 8H7spQggI2w
2016-05-27 13:49:04 -07:00
John Dai
1b35d89ef0 Bug 1275833 - Add window.customElements and CustomElementsRegistry interface for custom element v1. r=smaug, wchen 2016-07-24 23:38:00 +02:00
John Dai
210b99c77b Bug 1275833 - Remove redundant trailing spaces. r=wchen 2016-07-21 23:39:00 +02:00
Andrea Marchesini
7dcf0fcf39 Bug 1278838 - Remove separate worker binding for Performance API, r=smaug 2016-06-09 19:04:42 +02:00
Neil Deakin
43865e47a8 Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug 2016-06-09 07:59:31 -04:00
Kaku Kuo
9bad500b20 Bug 1141979 - part12 - export to nsGlobalWindow; r=jrmuizel
MozReview-Commit-ID: 6DRMDrSXIiu
2016-04-27 11:47:22 +08:00
Boris Zbarsky
613b502d44 Bug 1276133 part 2. Remove the now-unused aJSCallerContext argument of nsGlobalWindow::OpenInternal. r=smaug 2016-05-27 20:26:56 -04:00
Boris Zbarsky
ce951abea5 Bug 1271521. Add a sane way of temporarily disabling dialogs on a window. r=smaug
What we have right now is not very usable, because you can only enable/disable
on the scriptable top of the window, but it's not at all obvious that this is
the case when using the API.
2016-05-10 20:57:29 -04:00
Xidorn Quan
0af91cbcd2 Bug 1267568 part 1 - Add a weak ptr to nsGlobalChromeWindow to remember the pres shell we set the fullscreen change flag. r=smaug
This addresses the review comment from bug 1177155 comment 16 so that
the assertion and code to avoid breaking assertion in valid path are no
longer needed.

MozReview-Commit-ID: GHIYQwyoejC
2016-05-03 17:58:57 +10:00
Jonathan Watt
2e2a279488 Bug 1162772, part 4 - Implement nsGlobalWindow::IsSecureContext. r=bz
MozReview-Commit-ID: KB4rzoNlf1q
2016-04-28 11:13:09 +01:00
Sebastian Hengst
017e02bc2d Backed out changeset 309a56e56277 (bug 1162772) 2016-04-30 09:53:54 +02:00
Jonathan Watt
7e0a3b84d0 Bug 1162772, part 4 - Implement nsGlobalWindow::IsSecureContext. r=bz
MozReview-Commit-ID: KB4rzoNlf1q
2016-04-28 11:13:09 +01:00
Boris Zbarsky
c15dbac1b0 Bug 1267338. Remove dead codepath for the case when we opened a window even though popupState was openAbused, since we never open a window in that situation. r=mrbkap 2016-04-28 16:18:52 -04:00
Jonathan Watt
dd0f116f3e Bug 1267718 - Add a nsPIDOMWindow::GetScriptableParentOrNull method. r=bz
MozReview-Commit-ID: 9L33Wq0fBF6
2016-04-25 15:17:32 +01:00
Andrea Marchesini
3dbd611f48 Bug 1266194 - Implement boolean or EventListenerOptions as 3rd param to addEventListener, r=smaug 2016-04-26 16:23:17 +08:00
Neil Deakin
993b14911a Bug 1214293, initialize show focus rings state properly in all child frames, r=smaug 2016-03-18 15:44:40 -04:00
Andrea Marchesini
412459983b Bug 1252751 - Improve the security model between webSocket and sandboxed iframe, r=smaug 2016-03-11 12:56:05 +01:00
Kyle Huey
6831932bf4 Bug 1252268: If the slow script dialog aborts an interval timer callback, don't schedule it again. r=bz 2016-03-10 01:50:56 -08:00
Boris Zbarsky
43973730c3 Bug 1254230 kinda-fix. Make sure to never send script errors with stacks attached to the console service if the associated windows have already had FreeInnerObjects called on them. r=bholley 2016-03-08 17:21:40 -05:00
Anthony Zhang
fa12896c6b Bug 1251667 - Add a measure SLOW_SCRIPT_PAGE_COUNT, which measures the number of pages per session that have slow scripts. r=wmccloskey
Slow script events are when the script hangs the page's process (that's the content process on e10s).

For further reference, see https://wiki.mozilla.org/Electrolysis/Release_Criteria/Slow_Script. The measure is necessary because SLOW_SCRIPT_NOTICE_COUNT is not comparable between e10s and non-e10s, while SLOW_SCRIPT_PAGE_COUNT will be. This is necessary for evaluating the slow script e10s release criteria.

The measure requires a new field in nsGlobalWindow because we need to keep track of when the page changes in order to know whether we need to count a slow script event. This is a relatively clean option compared to keeping track of that state in XPCJSRuntime or dom::Navigator.
2016-03-01 11:16:33 -05:00
Olli Pettay
32ac7373c3 Bug 1197901, ensure sensor events dispatching follows the becoming spec change, r=bz 2016-02-24 19:43:07 +02:00