NavigatorBase::serviceWorker() should return a reference instead of a raw pointer
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 00:22:14 +0000 (00:22 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 00:22:14 +0000 (00:22 +0000)
commita2ff39e94722c5fcfac3e9e8fe20bdca81246020
tree917c339b2e85ed9a478a5d7c2110a18544a8712b
parent40d30abcc651a2dc1b301bf6893ad7db973cb81a
NavigatorBase::serviceWorker() should return a reference instead of a raw pointer
https://bugs.webkit.org/show_bug.cgi?id=180059

Reviewed by Geoffrey Garen.

NavigatorBase::serviceWorker() should return a reference instead of a raw pointer
as it can never return null.

* bindings/js/JSNavigatorCustom.cpp:
(WebCore::JSNavigator::visitAdditionalChildren):
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::serviceWorkerContainer):
* page/NavigatorBase.cpp:
(WebCore::NavigatorBase::serviceWorker):
* page/NavigatorBase.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSNavigatorCustom.cpp
Source/WebCore/dom/ScriptExecutionContext.cpp
Source/WebCore/page/NavigatorBase.cpp
Source/WebCore/page/NavigatorBase.h