Ben Kelly
1b9792a883
Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku
2017-12-08 11:52:07 -05:00
Clément David
b607bf10f3
Bug 1419495 - Remove SelfSupport service r=dexter r=smaug
2017-12-02 21:52:30 +01:00
Andrew McCreight
4d6f3c65a3
Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly
...
The service worker job queue can get stuck sometimes, so we don't want
the per-process service worker data structure to hold strong
references to content. Instead, I add a proxy that is only a weak
reference. The wrinkle is that we need to keep the promise alive as
long as the job and the window are otherwise alive. I solve this by
putting a cycle collected reference to the promise on the window
itself.
MozReview-Commit-ID: GbmCY4ZIQWk
2017-12-06 16:48:18 -08:00
Ben Kelly
32fa8a7310
Bug 1423412 P3 Handle the case where an iframe starts with an inherited controller and then ends up uncontrolled. r=baku
2017-12-05 20:45:23 -05:00
Ben Kelly
1928345b3c
Bug 1423412 P1 Actually mark window/worker ClientSource objects controlled when loaded with a controlling service worker. r=baku r=jld
2017-12-05 20:45:22 -05:00
Ben Kelly
88f569327e
Bug 1422983 Cycle collect the ClientSource object when owned by an nsGlobalWindowInner or nsDocShell object. r=mccr8
2017-12-04 22:13:33 -05:00
Andreas Farre
fb6039d8fd
Bug 1421009 - Don't schedule idle callback if window is shutting down. r=bkelly
2017-11-30 05:14:00 -05:00
Cosmin Sabou
369f0175e7
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
f7538d0c86
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
04a23fabc2
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth
2017-11-30 18:16:44 +01:00
Kate McKinley
1bef155067
Bug 1410364 - Don't consider opener when calculating IsSecureContext. r=bz, r=dveditz
...
Per https://github.com/w3c/webappsec-secure-contexts/issues/42 , the
section considering the window opener when calculating secure context is
to be dropped. Firefox already uses "isSecureContextIfOpenerIgnored" in
most places as this is the actual behavior we want. This patch aligns
with the upcoming spec changes by ignoring the window opener. We also no
longer have to keep information about whether our opener was secure as
that no longer factors in our calculations.
2017-11-29 10:40:00 -05:00
Andreas Farre
b327ddccf4
Bug 1415770 - Simplify handling of IdleRequest list. r=smaug, r=baku
2017-11-28 14:23:46 -05:00
Ben Kelly
8ccaed6f4b
Bug 1420743 P1 Do a better job of clearing docshell's mInitialClientSource at the end of page load. r=baku
2017-11-28 12:10:40 -05:00
Nika Layzell
036aefa643
Bug 1420911 - Ensure mBeforeUnloadListenerCount doesn't drop below 0 when FreeInnerObjects is called, r=qdot
...
MozReview-Commit-ID: EavGhe0Cfw
2017-11-27 17:35:37 -05:00
Nika Layzell
269d4b4a9c
Bug 1419597 - Part 19: Remove accidental version control marker on a CLOSED TREE, a=bustage
...
MozReview-Commit-ID: LuztkGycks1
2017-11-23 13:44:11 -05:00
Nika Layzell
20ee9a4927
Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
...
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Nika Layzell
34556665b3
Bug 1419597 - Part 17: Avoid implementing *OpenerForInitialContentBrowser on the inner, r=smaug
...
MozReview-Commit-ID: HBRWzlBqnCT
2017-11-23 13:12:11 -05:00
Nika Layzell
6f9ec9c511
Bug 1419597 - Part 13: Move gDragServiceDisabled and gMouseDown to be statics on nsGlobalWindowInner, r=smaug
...
MozReview-Commit-ID: DjXlbLJclzh
2017-11-23 13:12:05 -05:00
Nika Layzell
b0b0e124b1
Bug 1419597 - Part 12: Move storage pref enabled check into a static method on dom::Storage, r=asuth
...
MozReview-Commit-ID: 7qES6MrIxK9
2017-11-23 13:12:03 -05:00
Nika Layzell
0c85577e69
Bug 1419597 - Part 11: Move gRefCnt/gSerialCounter into nsContentUtils, r=smaug
...
MozReview-Commit-ID: KkG6hQentSH
2017-11-23 13:12:01 -05:00
Nika Layzell
15b9d65099
Bug 1419597 - Part 10: Move includes into nsGlobalWindow{Inner,Outer}.cpp, r=smaug
...
MozReview-Commit-ID: A5xJcTnicyb
2017-11-23 13:12:00 -05:00
Nika Layzell
98354225a1
Bug 1419597 - Part 9: Move the remaining defines out of nsGlobalWindow.h, r=smaug
...
MozReview-Commit-ID: CQRRyTImnUG
2017-11-23 13:11:58 -05:00
Nika Layzell
09158c6a58
Bug 1419597 - Part 6: Remove unused data members from nsGlobalWindowInner, r=smaug
...
MozReview-Commit-ID: KeZR0knQcbl
2017-11-23 13:11:53 -05:00
Nika Layzell
eb57bcd820
Bug 1419597 - Part 3: Remove unused fields from nsPIDOMWindowInner, r=smaug
...
MozReview-Commit-ID: FJQ6GmxE5gq
2017-11-23 13:11:48 -05:00
Nika Layzell
8b04746316
Bug 1419597 - Part 2: Remove nsPIDOMWindow, r=smaug
...
MozReview-Commit-ID: 9TUURbj9s7N
2017-11-23 13:11:46 -05:00
Nika Layzell
8b5f69214a
Bug 1419597 - Part 1: Split the methods on nsPIDOMWindow<T>, r=smaug
...
MozReview-Commit-ID: KXsnYLYtICV
2017-11-23 13:11:44 -05:00
Nika Layzell
446dd5ff04
Bug 1419144 - Part 18: Move AsInner() and AsOuter() off of nsPIDOMWindow<T>, r=smaug
...
MozReview-Commit-ID: IA29zmacrJ4
2017-11-23 13:11:39 -05:00
Nika Layzell
57ca421767
Bug 1419144 - Part 17: Split gDOMLeakPRLog into Inner/Outer variants, r=smaug
...
MozReview-Commit-ID: HxjJ43UyecW
2017-11-23 13:11:38 -05:00
Nika Layzell
7ef52d86e8
Bug 1419144 - Part 16: Move gDumpFile into nsGlobalWindowInner, r=smaug
...
MozReview-Commit-ID: 1ATfmoN0oue
2017-11-23 13:11:36 -05:00
Nika Layzell
c2a2aa6fc5
Bug 1419144 - Part 15: Move PopupControlState into nsContentUtils, r=smaug
...
MozReview-Commit-ID: Kt2moF5nsDg
2017-11-23 13:11:34 -05:00
Nika Layzell
51364793c6
Bug 1419144 - Part 13: Move some defines into nsGlobalWindowInner.cpp, r=smaug
...
MozReview-Commit-ID: C3lK4TORumy
2017-11-23 13:11:31 -05:00
Nika Layzell
bc04992656
Bug 1419144 - Part 8: Move TryGetTabChildGlobalAsEventTarget into nsContentUtils, r=smaug
...
MozReview-Commit-ID: 8vi1mAzmQUU
2017-11-23 13:11:23 -05:00
Nika Layzell
cf551511d0
Bug 1419144 - Part 6: Move IsInterval into nsGlobalWindowInner.cpp, r=smaug
...
MozReview-Commit-ID: LRhNfAdljYJ
2017-11-23 13:11:20 -05:00
Nika Layzell
44a1bcec22
Bug 1419144 - Part 3: Move pref caches into nsGlobalWindowInner where they are used, r=smaug
...
MozReview-Commit-ID: 1yftLoS3eo2
2017-11-23 13:11:15 -05:00
Nika Layzell
af0b489900
Bug 1419144 - Part 1: Move ShouldShowFocusRingIfFocusedByMouse into nsGlobalWindowInner.cpp, r=smaug
...
MozReview-Commit-ID: 7m5ZJ52bkRs
2017-11-23 13:11:12 -05:00
shindli
305d96acc6
Backed out 1 changesets (bug 1410364)
...
Backed out changeset 681fece780ae (bug 1410364) for failing in /secure-contexts/basic-popup-and-iframe-tests.html r=backout a=backout on a CLOSED TREE
2017-11-22 22:17:02 +02:00
Kate McKinley
120581e022
Bug 1410364 - Don't consider opener when calculating IsSecureContext. r=bz, r=dveditz
...
Per https://github.com/w3c/webappsec-secure-contexts/issues/42 , the
section considering the window opener when calculating secure context is
to be dropped. Firefox already uses "isSecureContextIfOpenerIgnored" in
most places as this is the actual behavior we want. This patch aligns
with the upcoming spec changes by ignoring the window opener. We also no
longer have to keep information about whether our opener was secure as
that no longer factors in our calculations.
2017-10-31 17:57:06 +09:00
Adam Gashlin
a399339431
Bug 1369194 - Remove MozWakeLock. r=baku
2017-11-20 17:14:41 -08:00
Ben Kelly
a34cd549f7
Bug 1419536 P4 Allow ClientSource objects to be frozen while in bfcache. r=baku
2017-11-21 15:13:05 -05:00
Ben Kelly
07fdc1850b
Bug 1419536 P3 Handle creating and activating the ClientSource in nsDocShell and nsGlobalWindow. r=baku r=freesamael
2017-11-21 15:13:05 -05:00
Jan de Mooij
e6e5785154
Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie
2017-11-17 12:12:39 +01:00
Nika Layzell
09ac059230
Bug 1416384 - Part 9: Deduplicate more code when possible, r=smaug
...
MozReview-Commit-ID: 1mzNDOFUNep
2017-11-15 11:34:47 -05:00
Nika Layzell
ad374be9ab
Bug 1416384 - Part 8: Stylistic fixes in nsGlobalWindow{Inner,Outer}.cpp, r=smaug
...
MozReview-Commit-ID: KDllmZzdn6m
2017-11-15 11:34:41 -05:00
Nika Layzell
c85ba432c8
Bug 1416384 - Part 7: Move nsPIDOMWindow{Inner,Outer}::TabGroup into their respective cpps, r=smaug
...
MozReview-Commit-ID: AZMWwKFnvG9
2017-11-15 11:34:33 -05:00
Nika Layzell
7be095a9a6
Bug 1416384 - Part 6: Eliminate calls to Assert{Inner,Outer} and As{Inner,Outer} in nsGlobalWindow, r=smaug
...
MozReview-Commit-ID: GIiSlDzjgWb
2017-11-15 11:34:27 -05:00
Nika Layzell
d15daabb76
Bug 1416384 - Part 4: Eliminate outer window only methods from nsGlobalWindowInner, r=smaug
...
MozReview-Commit-ID: CV6rrA0M2ZV
2017-11-15 11:34:13 -05:00
Nika Layzell
eb17a37caa
Bug 1416384 - Part 3: Remove nsPIDOMWindow<nsISupports>, r=smaug
...
This was needed before as the base to nsGlobalWindow, but now that
nsGlobalWindow doesn't exist, and we only have specific versions, we no longer
need this type.
MozReview-Commit-ID: 6IJmJtnSkMr
2017-11-15 11:34:04 -05:00
Nika Layzell
dba39a0515
Bug 1416384 - Part 2e: Eliminate duplicate declarations, and get gecko building again, r=smaug
...
There are many helper methods and structs in nsGlobalWindow.cpp. Many of these
are used by only the inner or only the outer window, while some are used by
both. In the case of the items used by both, I extracted them into
nsGlobalWindow.cpp, which includes nsGlobalWindowInner.cpp and
nsGlobalWindowOuter.cpp as the compilation unit entry point.
In the case of items used by just one or the other, I removed them from the
other file, and deleted the bodies of functions which used them, replacing them,
with a MOZ_CRASH.
This gets gecko building again, so that we can make further incremental
improvements.
MozReview-Commit-ID: 8QnJ1PX6TAO
2017-11-15 11:33:58 -05:00
Nika Layzell
d6a5aaff0c
Bug 1416384 - Part 2c: Get nsGlobalWindowInner.cpp building, r=smaug
...
MozReview-Commit-ID: CmKx5jtvtrT
2017-11-15 11:33:39 -05:00
74763e4f03
Bug 1416384 - Part 1: Copy nsGlobalWindow.{h,cpp} to nsGlobalWindow{Inner,Outer}.{h,cpp}, r=smaug
2017-11-15 11:30:13 -05:00