New issue
Advanced search Search tips

Issue 748853 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

AccountConsistencyServiceTest.OnInactive failing on iOS11

Project Member Reported by justincohen@chromium.org, Jul 26 2017

Issue description


2017-07-25 22:11:13.498 components_unittests[47712:11838184] -[__NSArrayM superlayer]: unrecognized selector sent to instance 0x6080000598f0
2017-07-25 22:11:13.582 components_unittests[47712:11838184] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM superlayer]: unrecognized selector sent to instance 0x6080000598f0'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011614aaeb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000011910df41 objc_exception_throw + 48
	2   CoreFoundation                      0x00000001161c9374 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00000001160cde48 ___forwarding___ + 1432
	4   CoreFoundation                      0x00000001160cd828 _CF_forwarding_prep_0 + 120
	5   UIKit                               0x000000011408c3a9 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1151
	6   components_unittests                0x000000010604694a _ZN25AccountConsistencyService12GetWKWebViewEv + 554
	7   components_unittests                0x0000000105647c54 _ZN29AccountConsistencyServiceTest16GetMockWKWebViewEv + 52




account_consistency_service.mm:397
 web_view_ = BuildWKWebView(); is an OCMockObject.
 [UIApplication.sharedApplication.keyWindow addSubview:web_view_]; crashes.

 

Comment 1 by jlebel@chromium.org, Jul 28 2017

Code introduced by crrev.com/c/577807 to solve  issue 738435 
Status: Fixed (was: Assigned)
The hack has been reverted: crrev.com/c/591671

Sign in to add a comment