Changeset 249206 in webkit
- Timestamp:
- Aug 28, 2019, 10:14:27 AM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ServiceWorkerProcessProxy.cpp (modified) (1 diff)
-
UIProcess/WebPageProxy.cpp (modified) (2 diffs)
-
UIProcess/WebPageProxy.h (modified) (4 diffs)
-
UIProcess/WebProcessProxy.cpp (modified) (2 diffs)
-
UIProcess/WebProcessProxy.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r249193 r249206 1 2019-08-28 Chris Dumez <cdumez@apple.com> 2 3 Have WebPageProxy generate the page identifier by itself 4 https://bugs.webkit.org/show_bug.cgi?id=201223 5 6 Reviewed by Ryosuke Niwa. 7 8 Have WebPageProxy generate the page identifier by itself instead of 9 having the WebProcessProxy do it. 10 11 * UIProcess/ServiceWorkerProcessProxy.cpp: 12 (WebKit::m_serviceWorkerPageID): 13 * UIProcess/WebPageProxy.cpp: 14 (WebKit::WebPageProxy::create): 15 (WebKit::WebPageProxy::WebPageProxy): 16 * UIProcess/WebPageProxy.h: 17 * UIProcess/WebProcessProxy.cpp: 18 (WebKit::WebProcessProxy::createWebPage): 19 (WebKit::WebProcessProxy::generatePageID): Deleted. 20 * UIProcess/WebProcessProxy.h: 21 1 22 2019-08-28 Carlos Garcia Campos <cgarcia@igalia.com> 2 23 -
trunk/Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp
r249096 r249206 54 54 : WebProcessProxy { pool, &store, IsPrewarmed::No } 55 55 , m_registrableDomain(registrableDomain) 56 , m_serviceWorkerPageID( generatePageID())56 , m_serviceWorkerPageID(PageIdentifier::generate()) 57 57 { 58 58 } -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r249142 r249206 388 388 } 389 389 390 Ref<WebPageProxy> WebPageProxy::create(PageClient& pageClient, WebProcessProxy& process, PageIdentifier pageID, Ref<API::PageConfiguration>&& configuration) 391 { 392 return adoptRef(*new WebPageProxy(pageClient, process, pageID, WTFMove(configuration))); 393 } 394 395 WebPageProxy::WebPageProxy(PageClient& pageClient, WebProcessProxy& process, PageIdentifier pageID, Ref<API::PageConfiguration>&& configuration) 396 : m_pageClient(makeWeakPtr(pageClient)) 390 Ref<WebPageProxy> WebPageProxy::create(PageClient& pageClient, WebProcessProxy& process, Ref<API::PageConfiguration>&& configuration) 391 { 392 return adoptRef(*new WebPageProxy(pageClient, process, WTFMove(configuration))); 393 } 394 395 WebPageProxy::WebPageProxy(PageClient& pageClient, WebProcessProxy& process, Ref<API::PageConfiguration>&& configuration) 396 : m_pageID(PageIdentifier::generate()) 397 , m_pageClient(makeWeakPtr(pageClient)) 397 398 , m_configuration(WTFMove(configuration)) 398 399 , m_navigationClient(makeUniqueRef<API::NavigationClient>()) … … 429 430 , m_waitsForPaintAfterViewDidMoveToWindow(m_configuration->waitsForPaintAfterViewDidMoveToWindow()) 430 431 , m_hasRunningProcess(process.state() != WebProcessProxy::State::Terminated) 431 , m_pageID(pageID)432 432 , m_controlledByAutomation(m_configuration->isControlledByAutomation()) 433 433 #if PLATFORM(COCOA) -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r249093 r249206 386 386 , public CanMakeWeakPtr<WebPageProxy> { 387 387 public: 388 static Ref<WebPageProxy> create(PageClient&, WebProcessProxy&, WebCore::PageIdentifier,Ref<API::PageConfiguration>&&);388 static Ref<WebPageProxy> create(PageClient&, WebProcessProxy&, Ref<API::PageConfiguration>&&); 389 389 virtual ~WebPageProxy(); 390 390 … … 1571 1571 1572 1572 private: 1573 WebPageProxy(PageClient&, WebProcessProxy&, WebCore::PageIdentifier,Ref<API::PageConfiguration>&&);1573 WebPageProxy(PageClient&, WebProcessProxy&, Ref<API::PageConfiguration>&&); 1574 1574 void platformInitialize(); 1575 1575 … … 2114 2114 void makeStorageSpaceRequest(WebCore::FrameIdentifier, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&&); 2115 2115 2116 const WebCore::PageIdentifier m_pageID; 2116 2117 WeakPtr<PageClient> m_pageClient; 2117 2118 Ref<API::PageConfiguration> m_configuration; … … 2353 2354 #endif 2354 2355 2355 const WebCore::PageIdentifier m_pageID;2356 2357 2356 bool m_isPageSuspended { false }; 2358 2357 bool m_addsVisitedLinks { true }; -
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r249029 r249206 111 111 } 112 112 113 PageIdentifier WebProcessProxy::generatePageID()114 {115 return PageIdentifier::generate();116 }117 118 113 static WebProcessProxy::WebPageProxyMap& globalPageMap() 119 114 { … … 390 385 Ref<WebPageProxy> WebProcessProxy::createWebPage(PageClient& pageClient, Ref<API::PageConfiguration>&& pageConfiguration) 391 386 { 392 auto pageID = generatePageID(); 393 Ref<WebPageProxy> webPage = WebPageProxy::create(pageClient, *this, pageID, WTFMove(pageConfiguration)); 387 Ref<WebPageProxy> webPage = WebPageProxy::create(pageClient, *this, WTFMove(pageConfiguration)); 394 388 395 389 addExistingWebPage(webPage.get(), BeginsUsingDataStore::Yes); -
trunk/Source/WebKit/UIProcess/WebProcessProxy.h
r248713 r249206 314 314 315 315 protected: 316 static WebCore::PageIdentifier generatePageID();317 316 WebProcessProxy(WebProcessPool&, WebsiteDataStore*, IsPrewarmed); 318 317
Note:
See TracChangeset
for help on using the changeset viewer.