Changeset 135879 in webkit
- Timestamp:
- Nov 27, 2012, 10:36:27 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r135864 r135879 1 2012-11-27 Alexey Proskuryakov <ap@apple.com> 2 3 [WK2] WebPageProxy::relatedPages() cannot assume that this page is known to process 4 https://bugs.webkit.org/show_bug.cgi?id=103433 5 <rdar://problem/12543513> 6 7 Reviewed by Jessie Berlin. 8 9 * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::relatedPages): Removed an incorrect 10 assertion, and modified code to not rely on its condition being true. 11 1 12 2012-11-27 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 13 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r135844 r135879 297 297 PassRefPtr<ImmutableArray> WebPageProxy::relatedPages() const 298 298 { 299 // pages() returns a list of pages in WebProcess, so this page may or may not be among them - a client can use a reference to WebPageProxy after the page has closed. 299 300 Vector<WebPageProxy*> pages = m_process->pages(); 300 ASSERT(pages.contains(this));301 301 302 302 Vector<RefPtr<APIObject> > result; 303 result.reserveCapacity(pages.size() - 1);303 result.reserveCapacity(pages.size()); 304 304 for (size_t i = 0; i < pages.size(); ++i) { 305 305 if (pages[i] != this)
Note:
See TracChangeset
for help on using the changeset viewer.