Changeset 239367 in webkit
- Timestamp:
- Dec 18, 2018, 9:01:04 PM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Cocoa/WKSafeBrowsingWarning.h (modified) (2 diffs)
-
UIProcess/Cocoa/WKSafeBrowsingWarning.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239366 r239367 1 2018-12-18 Alex Christensen <achristensen@webkit.org> 2 3 REGRESSION(r239134) iOS safe browsing warning unable to show details 4 https://bugs.webkit.org/show_bug.cgi?id=192837 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: 9 (-[WKSafeBrowsingWarning addContent]): 10 I had a fragile design that relied on the internal view heirarchy structure of UIScrollView, 11 which I changed in r239134 by introducing a layout which changed where its scrollbars were in the view heirarchy. 12 I now have a more robust design that saves a WeakObjCPtr to the view I need to traverse to. 13 Testing is problematic because this had to do with scrollbars and UIScrollView internals which seem to behave 14 differently in TestWebKitAPI, but I verified manually that this fixes the issue. 15 1 16 2018-12-18 Fujii Hironori <Hironori.Fujii@sony.com> 2 17 -
trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.h
r238771 r239367 44 44 45 45 #if PLATFORM(MAC) 46 using ViewType = NSView; 46 47 using RectType = NSRect; 47 48 @interface WKSafeBrowsingWarning : NSView<NSTextViewDelegate> 48 49 #else 50 using ViewType = UIView; 49 51 using RectType = CGRect; 50 52 @interface WKSafeBrowsingWarning : UIScrollView<UITextViewDelegate> … … 55 57 RefPtr<const WebKit::SafeBrowsingWarning> _warning; 56 58 WeakObjCPtr<WKSafeBrowsingTextView> _details; 59 WeakObjCPtr<ViewType> _box; 57 60 } 58 61 -
trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm
r239134 r239367 51 51 using ButtonType = NSButton; 52 52 using AlignmentType = NSLayoutAttribute; 53 using ViewType = NSView;54 53 using SizeType = NSSize; 55 54 #else … … 59 58 using ButtonType = UIButton; 60 59 using AlignmentType = UIStackViewAlignment; 61 using ViewType = UIView;62 60 using SizeType = CGSize; 63 61 #endif … … 300 298 auto goBack = makeButton(WarningItem::GoBackButton, self, @selector(goBackClicked)); 301 299 auto box = [[ViewType new] autorelease]; 300 _box = box; 302 301 setBackground(box, colorForItem(WarningItem::BoxBackground, self)); 303 302 box.layer.cornerRadius = boxCornerRadius; … … 368 367 - (void)showDetailsClicked 369 368 { 370 ViewType *box = self.subviews.lastObject;369 ViewType *box = _box.get().get(); 371 370 ButtonType *showDetails = box.subviews.lastObject; 372 371 [showDetails removeFromSuperview];
Note:
See TracChangeset
for help on using the changeset viewer.