Goal: reduce duplicated code between WebInspectorProxy and RemoteWebInspectorProxy, and keep all WebView-related integrations contained to one class so they are easier to change in the future.
<rdar://problem/34740286>
Created attachment 322604 [details] Combined Patch
Created attachment 322605 [details] [1/6] Staged Patch
Created attachment 322606 [details] [2/6] Staged Patch
Created attachment 322607 [details] [3/6] Staged Patch
Created attachment 322608 [details] [5/6] Staged Patch
Created attachment 322609 [details] [6/6] Staged Patch
Created attachment 322610 [details] [7/7] Staged Patch
Created attachment 322612 [details] [4/6] Staged Patch webkit-patch didn't like this one, adding manually.
I'll fix the WPE oopsie.
Comment on attachment 322606 [details] [2/6] Staged Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322606&action=review > Source/WebKit/UIProcess/wpe/WebInspectorProxyWPE.cpp:47 > + notImplemented() This would need semicolon.
Comment on attachment 322609 [details] [6/6] Staged Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322609&action=review > Source/WebKit/ChangeLog:10 > + First, rename some helpers so its clear whether the argument is the inspector page > + or the inspected page. At many of the call sites, both of these are being used and I do not think this rename makes sense. The level is not specific to being an inspected page. Every Page has an inspection level. The level of the Inspected Page will be 1, the Frontend Page for that will be 2, and a Multi-level Frontend Page will be higher. Every page has a level, the caller is the one responsible to supply the page they are interested in getting the level for.
(In reply to Joseph Pecoraro from comment #12) > Comment on attachment 322609 [details] > [6/6] Staged Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=322609&action=review > > > Source/WebKit/ChangeLog:10 > > + First, rename some helpers so its clear whether the argument is the inspector page > > + or the inspected page. At many of the call sites, both of these are being used and > > I do not think this rename makes sense. The level is not specific to being > an inspected page. Every Page has an inspection level. The level of the > Inspected Page will be 1, the Frontend Page for that will be 2, and a > Multi-level Frontend Page will be higher. Every page has a level, the caller > is the one responsible to supply the page they are interested in getting the > level for. I had thought that every argument to this was an inspected WebPageProxy, but on further review some of them are not. I will drop this renaming.
Created attachment 322890 [details] Combined Patch
Created attachment 322891 [details] [1/5] Staged Patch
Created attachment 322892 [details] [2/5] Staged Patch
Created attachment 322893 [details] [3/5] Staged Patch
Created attachment 322894 [details] [4/5] Staged Patch
Created attachment 322895 [details] [5/5] Staged Patch
Created attachment 322896 [details] Combined Patch
Created attachment 322897 [details] [1/5] Staged Patch
Created attachment 322898 [details] [2/5] Staged Patch
Created attachment 322899 [details] [3/5] Staged Patch
Created attachment 322900 [details] [4/5] Staged Patch
Created attachment 322901 [details] [5/5] Staged Patch
Created attachment 322905 [details] Combined Patch
Created attachment 322906 [details] [1/5] Staged Patch
Created attachment 322907 [details] [2/5] Staged Patch
Created attachment 322908 [details] [3/5] Staged Patch
Created attachment 322909 [details] [4/5] Staged Patch
Created attachment 322910 [details] [5/5] Staged Patch
I have rebased this several times and our bots are none the wiser.
Created attachment 323073 [details] Combined Patch
Comment on attachment 323073 [details] Combined Patch r=me
Mac-32bit needs && WK_API_ENABLED in some places, will upload another combined patch.
Created attachment 323080 [details] Combined Patch
Created attachment 323198 [details] For EWS
Committed: https://trac.webkit.org/changeset/223770/webkit https://trac.webkit.org/changeset/223771/webkit https://trac.webkit.org/changeset/223772/webkit https://trac.webkit.org/changeset/223773/webkit https://trac.webkit.org/changeset/223774/webkit