Commit Graph

2083 Commits

Author SHA1 Message Date
Andrea Marchesini
82f92bee37 Bug 1279453 - Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly 2016-06-12 16:26:51 +02:00
Masayuki Nakano
d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano
00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Andrea Marchesini
64734bf74c Bug 1278838 - Remove separate worker binding for Performance API, r=smaug
--HG--
rename : dom/performance/nsPerformance.cpp => dom/performance/Performance.cpp
rename : dom/performance/nsPerformance.h => dom/performance/Performance.h
rename : dom/workers/Performance.cpp => dom/performance/PerformanceWorker.cpp
rename : dom/workers/Performance.h => dom/performance/PerformanceWorker.h
2016-06-09 19:04:42 +02:00
Neil Deakin
ea192c61f5 Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug 2016-06-09 07:59:31 -04:00
Michael Layzell
b0efb7ddb3 Bug 1181073 - Relax setTimeout throttling for background tabs using web audio, r=bkelly 2016-06-07 18:05:55 -04:00
Mike Conley
99143b5309 Bug 1266799 - Increase DOM fullscreen timeout length to 1000ms. r=xidorn
According to the Telemetry probes added in Bug 1271160, 1000ms should
account for ~94% of fullscreen transitions. The remaining ~6% tail is where
users might see the transition end and then content re-organize itself.

I think this is a big improvement over the original 500ms, which covers only
about ~80% of cases, according to Telemetry.

MozReview-Commit-ID: 3Vb9qQ7yDx5

--HG--
extra : rebase_source : 6f7a2db037bcd1ef21e59aca70b08078ab4f290d
2016-06-02 14:49:56 -04:00
Masatoshi Kimura
7f91a2f04a Bug 1277691 - Allow security.turn_off_all_security_so_that_viruses_can_take_over_this_computer only if MOZ_DISABLE_NONLOCAL_CONNECTIONS is set. r=mrbkap 2016-06-03 07:40:16 +09:00
Boris Zbarsky
f02f5d431d Bug 1276276 part 3. Eliminate nsIScriptContext::GetNativeContext. r=smaug 2016-06-02 10:34:39 -04:00
Boris Zbarsky
43a4676066 Bug 1276276 part 2. Change AutoEntryScript to always use the safe jscontext instead of trying to find a global-specific one. r=smaug 2016-06-02 10:34:39 -04:00
Kaku Kuo
95661ad394 Bug 1141979 - part12 - export to nsGlobalWindow; r=jrmuizel
MozReview-Commit-ID: 6DRMDrSXIiu

--HG--
extra : transplant_source : %A7N%F0%25%29%D7%B7%C3%FA%26%EB%ABY%9B%94F%EC%AF%FE%3D
2016-04-27 11:47:22 +08:00
Kaku Kuo
ec2d98e4c3 Bug 1141979 - part1 - WebIDL for native implementation; r=jrmuizel, r=smaug
MozReview-Commit-ID: 9gC0rxhsOLm

--HG--
extra : transplant_source : %7D%9A%C8%05%99%17Y%1E1%404%A7%14%BE%8B%AC%F0b%A2%5B
2015-11-18 16:57:38 +08:00
Nicholas Nethercote
2fda0872c8 Bug 1267551 (part 10) - Use MOZ_MUST_USE in AutoVectorRooterBase. r=terrence.
This patch fixes numerous unchecked calls.

--HG--
extra : rebase_source : 566f2ca9fba1c8b18fa7ec1753168dbae9cf70d1
2016-06-01 15:49:04 +10:00
Boris Zbarsky
36091e04a0 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
e68ced4bf3 Bug 1276133 part 1. Stop using GetDefaultScopeFromJSContext in nsGlobalWindow::OpenInternal. Instead, use the entry global's outer window (if the entry global is a window), which should correspond to the stack-top JSContext in all web-visible cases right now. r=smaug
Note that the change in the condition is ok because we have the invariant that
aCalledNoScript != bool(aJSCallerContext), though we never actually clearly
assert that in this method (we instead assert that at least one has to be false,
but it turns out they can't _both_ be false either.
2016-05-27 20:26:56 -04:00
Boris Zbarsky
84b2945de3 Bug 1276309 part 2. Stop depending on the exact value of nsIScriptContext::GetNativeContext in nsGlobalWindow::FinalClose. r=smaug 2016-05-27 20:26:56 -04:00
Wes Kocher
9f7d2279d9 Backed out changeset e96398029a1c (bug 1181073) for failing the test it added CLOSED TREE 2016-05-19 10:17:55 -07:00
Michael Layzell
6274f21dc8 Bug 1181073 - Relax setTimeout throttling for background tabs using web audio, r=bkelly 2016-05-19 09:34:01 -04:00
Xidorn Quan
cbf6f73785 Bug 1271160 - Add telemetry items for fullscreen transition. r=smaug data-review=bsmedberg
MozReview-Commit-ID: EvmLvE5VWOu

--HG--
extra : source : ad09f13328a7455e5b3ae9610fb1b4c9b1baa4bf
2016-05-16 11:30:36 +10:00
David Keeler
3a4d7b486c bug 883718 - remove nsIEntropyCollector and implementation r=mgoodwin,mrbkap
The rationale behind nsIEntropyCollector was to supplement NSS' source of
entropy with randomness from mouse move events. This obviously doesn't work on
platforms without a mouse (e.g. mobile platforms). Furthermore, as NSS seeds its
random number generator with robust randomness from the operating system, this
is unnecessary anyway. The primary concern is that initialization of the random
number generator must happen after forking, which is exactly what we do with the
child process in e10s mode.

MozReview-Commit-ID: GYQDElSCZy0

--HG--
extra : rebase_source : 6273a78203121c4d4ddf3ed97451f393ceef4b88
2016-05-10 16:24:44 -07:00
Boris Zbarsky
08254285a1 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Boris Zbarsky
b84ac31e14 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
Peter Van der Beken
5c9bb43e9d Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Carsten "Tomcat" Book
98f0a3271a Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures 2016-05-09 13:40:01 +02:00
Peter Van der Beken
b6c1e074c2 Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
Wes Kocher
462fc252b3 Backed out 3 changesets (bug 1190641) for failures in test_dialogArguments.html and test_iframe_sandbox_modal.html
Backed out changeset ef1d1a433415 (bug 1190641)
Backed out changeset b037f2642082 (bug 1190641)
Backed out changeset 733eacd2ed13 (bug 1190641)

--HG--
extra : rebase_source : 218cf6d49e6f71742da7c69cf42b0a6a355e1863
2016-05-06 12:54:16 -07:00
Boris Zbarsky
f3092cff84 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Sebastian Hengst
faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken
827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Neil Deakin
fd43d35e0e Bug 1263330, only initialize focus ring state for non-top-level windows, r=smaug 2016-05-04 10:07:37 -04:00
Alastor Wu
30466d68e1 Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang
MozReview-Commit-ID: HHYX29gbLwk

--HG--
extra : rebase_source : d774e1338c6e0cd2ce8b4329b28ad9650011a7e5
2016-05-03 09:52:38 +08:00
Alastor Wu
60f0aad68a Bug 1242874 - part2 : window's suspend attribute. r=baku, r=ehsan
MozReview-Commit-ID: 2GZMjsaQWHC

--HG--
extra : rebase_source : 7840bda5c5e7e59d27fede1fce03a6b52760e798
2016-05-03 09:51:22 +08:00
Jeff Walden
e69489250b Bug 1263778 - Rename a bunch of low-level [[Prototype]] access methods to make their interactions with statically-known and dynamically-computed [[Prototype]]s clearer. r=efaust
--HG--
extra : rebase_source : 8c1cf4b354f6e1170da08920df5517888936d28f
2016-03-18 16:45:31 -07:00
Xidorn Quan
2bb1280ba1 Bug 1267568 part 4 - Replace InFullscreenChange flag of PresShell with IsResizeSuppressed flag in RefreshDriver. r=smaug
MozReview-Commit-ID: FB3vGXwKZ9O

--HG--
extra : source : 84878dbedf8c2efe2221d7562fd69a7c4cf20971
2016-05-03 17:58:57 +10:00
Xidorn Quan
2ae314ff8f 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

--HG--
extra : source : 3a7d540381d12f58b6b1b150528312150e0c8893
2016-05-03 17:58:57 +10:00
Xidorn Quan
95f7be2962 Bug 1267530 part 2 - Add ASCII art explaination of flow of fullscreen transition. r=smaug
MozReview-Commit-ID: D5vZSPBGyHN

--HG--
extra : source : 0b7fd82dd69f77731c05ba6d2e9585c5f8297242
2016-05-03 17:58:57 +10:00
Xidorn Quan
5003029401 Bug 1267530 part 1 - Add some profiler marker for fullscreen transition. r=smaug,BenWa
MozReview-Commit-ID: CeFdBO9uz8C

--HG--
extra : source : ca6459b594f0dcfd46066bbab29ce068d4de6200
2016-05-03 17:58:57 +10:00
Jonathan Watt
d4b6729909 Bug 1162772, part 4 - Implement nsGlobalWindow::IsSecureContext. r=bz
MozReview-Commit-ID: KB4rzoNlf1q
2016-04-28 11:13:09 +01:00
Boris Zbarsky
634c2d0574 Bug 1268953. The load events we fire on iframe/frame/object (in the document case) should not be cancelable. r=smaug 2016-05-02 15:09:36 -04:00
Aryeh Gregor
f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Aryeh Gregor
585263dafa Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj 2016-05-01 21:29:22 +03:00
Sebastian Hengst
c0293489e9 Backed out changeset 309a56e56277 (bug 1162772) 2016-04-30 09:53:54 +02:00
Ben Kelly
b3174a59bc Bug 1268849 Don't crash in GetServiceWorkersTestingEnabled if window is torn down and GetScriptableTop() returns nullptr. r=bz 2016-04-29 17:23:02 -07:00
Jonathan Watt
f8ab53b8f6 Bug 1162772, part 4 - Implement nsGlobalWindow::IsSecureContext. r=bz
MozReview-Commit-ID: KB4rzoNlf1q
2016-04-28 11:13:09 +01:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Boris Zbarsky
d2cd761b35 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
Carsten "Tomcat" Book
92d4b1a25d Backed out changeset 50896498013c (bug 1242874) 2016-04-28 13:59:06 +02:00