Bug 180775 - Web Inspector: Cmd-Option-R in docked inspector causes the inspector to reload instead of the inspected page
Summary: Web Inspector: Cmd-Option-R in docked inspector causes the inspector to reloa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-12-13 15:29 PST by Joseph Pecoraro
Modified: 2017-12-14 09:08 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (28.26 KB, patch)
2017-12-13 15:33 PST, Joseph Pecoraro
bburg: review-
bburg: commit-queue-
Details | Formatted Diff | Diff
[PATCH] Proposed Fix (23.09 KB, patch)
2017-12-13 20:46 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] Proposed Fix (28.54 KB, patch)
2017-12-13 20:50 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.