Changeset 238378 in webkit
- Timestamp:
- Nov 19, 2018 12:51:40 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238377 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * inspector/InspectorFrontendClient.h: 10 * inspector/InspectorFrontendHost.cpp: 11 (WebCore::InspectorFrontendHost::reopen): 12 * inspector/InspectorFrontendHost.h: 13 * inspector/InspectorFrontendHost.idl: 14 Provide a host call to reopen an inspector window to reload it. 15 16 * testing/Internals.cpp: 17 Stub implementation, this is not used in tests. 18 1 19 2018-11-19 Rob Buis <rbuis@igalia.com> 2 20 -
trunk/Source/WebCore/inspector/InspectorFrontendClient.h
r238350 r238378 62 62 virtual void bringToFront() = 0; 63 63 virtual void closeWindow() = 0; 64 virtual void reopen() = 0; 64 65 65 66 virtual UserInterfaceLayoutDirection userInterfaceLayoutDirection() const = 0; -
trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp
r238350 r238378 191 191 } 192 192 193 void InspectorFrontendHost::reopen() 194 { 195 if (m_client) 196 m_client->reopen(); 197 } 198 193 199 void InspectorFrontendHost::bringToFront() 194 200 { -
trunk/Source/WebCore/inspector/InspectorFrontendHost.h
r238350 r238378 58 58 void requestSetDockSide(const String&); 59 59 void closeWindow(); 60 void reopen(); 60 61 void bringToFront(); 61 62 void inspectedURLChanged(const String&); -
trunk/Source/WebCore/inspector/InspectorFrontendHost.idl
r238350 r238378 37 37 void loaded(); 38 38 void closeWindow(); 39 void reopen(); 39 40 void bringToFront(); 40 41 void inspectedURLChanged(DOMString newURL); -
trunk/Source/WebCore/testing/Internals.cpp
r238350 r238378 308 308 void detachWindow() final { } 309 309 void closeWindow() final; 310 void reopen() final { } 310 311 void bringToFront() final { } 311 312 String localizedStringsURL() final { return String(); } -
trunk/Source/WebInspectorUI/ChangeLog
r238350 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * UserInterface/Base/Main.js: 10 * UserInterface/Debug/UncaughtExceptionReporter.js: 11 (sheetElement.innerHTML): 12 * UserInterface/Views/SettingsTabContentView.js: 13 1 14 2018-11-17 Devin Rousso <drousso@apple.com> 2 15 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r238198 r238378 1585 1585 proposedContextMenu.appendSeparator(); 1586 1586 proposedContextMenu.appendItem(WI.unlocalizedString("Reload Web Inspector"), () => { 1587 // FIXME: Reload Web Inspector does not work with MultiplexingBackendTarget. 1588 window.location.reload(); 1587 InspectorFrontendHost.reopen(); 1589 1588 }); 1590 1589 … … 2254 2253 this._dockRight(); 2255 2254 2256 // FIXME: Reload Web Inspector does not work with MultiplexingBackendTarget. 2257 window.location.reload(); 2255 InspectorFrontendHost.reopen(); 2258 2256 }; 2259 2257 -
trunk/Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js
r238331 r238378 37 37 // Reload the Web Inspector. 38 38 new WI.KeyboardShortcut(WI.KeyboardShortcut.Modifier.Option | WI.KeyboardShortcut.Modifier.Shift | WI.KeyboardShortcut.Modifier.CommandOrControl, "R", () => { 39 window.location.reload();39 InspectorFrontendHost.reopen(); 40 40 }); 41 41 -
trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js
r238192 r238378 258 258 to the Web Inspector without reloading. However, some things might not work without reloading if the error corrupted the Inspector's internal state.</dd>`; 259 259 260 // FIXME: Reload Web Inspector does not work with MultiplexingBackendTarget.261 260 let sheetElement = window.__sheetElement = document.createElement("div"); 262 261 sheetElement.classList.add("sheet-container"); … … 274 273 bug with this information</a>. It is possible that someone else broke it by accident.</dd> 275 274 <dt>Oops, can I try again?</dt> 276 <dd><a href="javascript: window.location.reload()">Click to reload the Inspector</a>275 <dd><a href="javascript:InspectorFrontendHost.reopen()">Click to reload the Inspector</a> 277 276 again after making local changes.</dd> 278 277 ${dismissOptionHTML} -
trunk/Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js
r238192 r238378 259 259 experimentalSettingsView.addSeparator(); 260 260 261 // FIXME: Reload Web Inspector does not work with MultiplexingBackendTarget.262 261 let reloadInspectorButton = document.createElement("button"); 263 262 reloadInspectorButton.textContent = WI.UIString("Reload Web Inspector"); 264 reloadInspectorButton.addEventListener("click", () => { window.location.reload(); });263 reloadInspectorButton.addEventListener("click", () => { InspectorFrontendHost.reopen(); }); 265 264 266 265 let reloadInspectorContainerElement = experimentalSettingsView.addCenteredContainer(reloadInspectorButton, WI.UIString("for changes to take effect")); -
trunk/Source/WebKit/ChangeLog
r238372 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * UIProcess/RemoteWebInspectorProxy.cpp: 10 (WebKit::RemoteWebInspectorProxy::load): 11 (WebKit::RemoteWebInspectorProxy::reopen): 12 * UIProcess/RemoteWebInspectorProxy.h: 13 * UIProcess/RemoteWebInspectorProxy.messages.in: 14 * WebProcess/WebPage/RemoteWebInspectorUI.cpp: 15 (WebKit::RemoteWebInspectorUI::reopen): 16 * WebProcess/WebPage/RemoteWebInspectorUI.h: 17 * WebProcess/WebPage/WebInspector.cpp: 18 (WebKit::WebInspector::reopen): 19 * WebProcess/WebPage/WebInspector.h: 20 * WebProcess/WebPage/WebInspector.messages.in: 21 * WebProcess/WebPage/WebInspectorUI.cpp: 22 (WebKit::WebInspectorUI::reopen): 23 * WebProcess/WebPage/WebInspectorUI.h: 24 1 25 2018-11-19 Alejandro G. Castro <alex@igalia.com> 2 26 -
trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.cpp
r238350 r238378 57 57 createFrontendPageAndWindow(); 58 58 59 m_debuggableType = debuggableType; 60 m_backendCommandsURL = backendCommandsURL; 61 59 62 m_inspectorPage->process().send(Messages::RemoteWebInspectorUI::Initialize(debuggableType, backendCommandsURL), m_inspectorPage->pageID()); 60 63 m_inspectorPage->loadRequest(URL(URL(), WebInspectorProxy::inspectorPageURL())); … … 90 93 91 94 closeFrontendPageAndWindow(); 95 } 96 97 void RemoteWebInspectorProxy::reopen() 98 { 99 ASSERT(!m_debuggableType.isEmpty()); 100 101 closeFrontendPageAndWindow(); 102 load(m_debuggableType, m_backendCommandsURL); 92 103 } 93 104 -
trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.h
r238350 r238378 96 96 // RemoteWebInspectorProxy messages. 97 97 void frontendDidClose(); 98 void reopen(); 98 99 void bringToFront(); 99 100 void save(const String& filename, const String& content, bool base64Encoded, bool forceSaveAs); … … 120 121 WebPageProxy* m_inspectorPage { nullptr }; 121 122 123 String m_debuggableType; 124 String m_backendCommandsURL; 125 122 126 #if PLATFORM(MAC) 123 127 RetainPtr<WKInspectorViewController> m_inspectorView; -
trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.messages.in
r238350 r238378 23 23 messages -> RemoteWebInspectorProxy { 24 24 FrontendDidClose() 25 Reopen() 25 26 BringToFront() 26 27 -
trunk/Source/WebKit/WebProcess/WebPage/RemoteWebInspectorUI.cpp
r238350 r238378 129 129 } 130 130 131 void RemoteWebInspectorUI::reopen() 132 { 133 WebProcess::singleton().parentProcessConnection()->send(Messages::RemoteWebInspectorProxy::Reopen(), m_page.pageID()); 134 } 135 131 136 void RemoteWebInspectorUI::openInNewTab(const String& url) 132 137 { -
trunk/Source/WebKit/WebProcess/WebPage/RemoteWebInspectorUI.h
r238350 r238378 67 67 void bringToFront() override; 68 68 void closeWindow() override; 69 void reopen() override; 69 70 70 71 void openInNewTab(const String& url) override; -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp
r238369 r238378 143 143 } 144 144 145 void WebInspector::reopen() 146 { 147 close(); 148 show(); 149 } 150 145 151 void WebInspector::openInNewTab(const String& urlString) 146 152 { -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.h
r238330 r238378 53 53 void show(); 54 54 void close(); 55 void reopen(); 55 56 56 57 void openInNewTab(const String& urlString); -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.messages.in
r238330 r238378 24 24 Show() 25 25 Close() 26 Reopen() 26 27 27 28 SetAttached(bool attached) -
trunk/Source/WebKit/WebProcess/WebPage/WebInspectorUI.cpp
r238350 r238378 168 168 } 169 169 170 void WebInspectorUI::reopen() 171 { 172 if (m_backendConnection) 173 m_backendConnection->send(Messages::WebInspector::Reopen(), 0); 174 } 175 170 176 WebCore::UserInterfaceLayoutDirection WebInspectorUI::userInterfaceLayoutDirection() const 171 177 { -
trunk/Source/WebKit/WebProcess/WebPage/WebInspectorUI.h
r238350 r238378 93 93 void bringToFront() override; 94 94 void closeWindow() override; 95 void reopen() override; 95 96 96 97 WebCore::UserInterfaceLayoutDirection userInterfaceLayoutDirection() const override; -
trunk/Source/WebKitLegacy/ios/ChangeLog
r237266 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * WebCoreSupport/WebInspectorClientIOS.mm: 10 (WebInspectorFrontendClient::reopen): 11 1 12 2018-10-18 Alexey Proskuryakov <ap@apple.com> 2 13 -
trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebInspectorClientIOS.mm
r238350 r238378 126 126 void WebInspectorFrontendClient::bringToFront() { } 127 127 void WebInspectorFrontendClient::closeWindow() { } 128 void WebInspectorFrontendClient::reopen() { } 128 129 void WebInspectorFrontendClient::attachWindow(DockSide) { } 129 130 void WebInspectorFrontendClient::detachWindow() { } -
trunk/Source/WebKitLegacy/mac/ChangeLog
r238350 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * WebCoreSupport/WebInspectorClient.h: 10 * WebCoreSupport/WebInspectorClient.mm: 11 (WebInspectorFrontendClient::reopen): 12 1 13 2018-11-17 Devin Rousso <drousso@apple.com> 2 14 -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.h
r238350 r238378 118 118 void bringToFront() override; 119 119 void closeWindow() override; 120 void reopen() override; 120 121 121 122 void attachWindow(DockSide) override; -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm
r238350 r238378 251 251 } 252 252 253 void WebInspectorFrontendClient::reopen() 254 { 255 WebInspector* inspector = [m_inspectedWebView inspector]; 256 [inspector close:nil]; 257 [inspector show:nil]; 258 } 259 253 260 void WebInspectorFrontendClient::attachWindow(DockSide) 254 261 { … … 692 699 _destroyingInspectorView = YES; 693 700 694 if (_attachedToInspectedWebView) 695 [self close]; 701 [self close]; 696 702 697 703 _visible = NO; -
trunk/Source/WebKitLegacy/win/ChangeLog
r238350 r238378 1 2018-11-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: "Reload Web Inspector" button no longer partially works 4 https://bugs.webkit.org/show_bug.cgi?id=191773 5 <rdar://problem/46139932> 6 7 Reviewed by Devin Rousso. 8 9 * WebCoreSupport/WebInspectorClient.cpp: 10 (WebInspectorFrontendClient::reopen): 11 * WebCoreSupport/WebInspectorClient.h: 12 1 13 2018-11-17 Devin Rousso <drousso@apple.com> 2 14 -
trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp
r238350 r238378 271 271 } 272 272 273 void WebInspectorFrontendClient::reopen() 274 { 275 destroyInspectorView(); 276 277 if (Page* inspectedPage = m_inspectedWebView->page()) 278 inspectedPage->inspectorController().show(); 279 } 280 273 281 void WebInspectorFrontendClient::attachWindow(DockSide) 274 282 { -
trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.h
r238350 r238378 104 104 void bringToFront() override; 105 105 void closeWindow() override; 106 void reopen() override; 106 107 107 108 void setAttachedWindowHeight(unsigned) override;
Note: See TracChangeset
for help on using the changeset viewer.