Bug 180775

Summary: Web Inspector: Cmd-Option-R in docked inspector causes the inspector to reload instead of the inspected page
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, inspector-bugzilla-changes, joepeck, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix
bburg: review-, bburg: commit-queue-
[PATCH] Proposed Fix
none
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2017-12-13 15:29:14 PST
Cmd-Option-R in docked inspector causes the inspector to reload instead of the inspected page

Steps to Reproduce:
1. Inspect this page
2. Dock inspector to bottom
3. Click in inspector
4. Cmd-Option-R
  => Expected page to reload, instead the inspector page reloaded
Comment 1 Joseph Pecoraro 2017-12-13 15:29:21 PST
<rdar://problem/35964592>
Comment 2 Joseph Pecoraro 2017-12-13 15:33:14 PST
Created attachment 329271 [details]
[PATCH] Proposed Fix
Comment 3 BJ Burg 2017-12-13 20:40:28 PST
Comment on attachment 329271 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=329271&action=review

Looks good but please fix build issues then I'll mark r+

> Source/WebKit/UIProcess/mac/WKInspectorViewController.mm:237
> +    if (linkedOnOrAfter(WebKit::SDKVersion::FirstWithExpiredOnlyReloadBehavior))

Didn't know we had this now, cool.

> Source/WebKit/UIProcess/mac/WKInspectorWKWebView.h:38
> +@protocol WKInspectorWKWebViewIBDelegate

This protocol name bothers me. It shouldn't mention IB since there are no IB types/macros in the signature.

How about just @protocol WKInspectorWKWebViewDelegate?
Comment 4 Joseph Pecoraro 2017-12-13 20:46:33 PST
> How about just @protocol WKInspectorWKWebViewDelegate?

Yeah, sounds good.
Comment 5 Joseph Pecoraro 2017-12-13 20:46:59 PST
Created attachment 329321 [details]
[PATCH] Proposed Fix
Comment 6 Joseph Pecoraro 2017-12-13 20:50:13 PST
Created attachment 329322 [details]
[PATCH] Proposed Fix

Better patch with -M100% so git doesn't think new files are from old files...
Comment 7 BJ Burg 2017-12-14 08:47:55 PST
Comment on attachment 329322 [details]
[PATCH] Proposed Fix

r=e
Comment 8 WebKit Commit Bot 2017-12-14 09:08:55 PST
Comment on attachment 329322 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 329322

Committed r225907: <https://trac.webkit.org/changeset/225907>
Comment 9 WebKit Commit Bot 2017-12-14 09:08:57 PST
All reviewed patches have been landed.  Closing bug.