RESOLVED FIXED 200109
Web Inspector: Page: don't allow the domain to be disabled
https://bugs.webkit.org/show_bug.cgi?id=200109
Summary Web Inspector: Page: don't allow the domain to be disabled
Devin Rousso
Reported 2019-07-24 20:42:34 PDT
.
Attachments
Patch (28.14 KB, patch)
2019-07-24 20:59 PDT, Devin Rousso
no flags
Patch (28.23 KB, patch)
2019-07-24 21:15 PDT, Devin Rousso
no flags
Patch (28.55 KB, patch)
2019-07-24 21:21 PDT, Devin Rousso
ews-watchlist: commit-queue-
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (367.75 KB, application/zip)
2019-07-24 22:05 PDT, EWS Watchlist
no flags
Patch (19.13 KB, patch)
2019-07-24 22:12 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews104 for mac-highsierra-wk2 (2.27 MB, application/zip)
2019-07-24 23:16 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews116 for mac-highsierra (1.43 MB, application/zip)
2019-07-24 23:31 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews102 for mac-highsierra (2.20 MB, application/zip)
2019-07-24 23:33 PDT, EWS Watchlist
no flags
Patch (31.69 KB, patch)
2019-08-01 16:42 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews114 for mac-highsierra (3.29 MB, application/zip)
2019-08-01 19:42 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews102 for mac-highsierra (3.62 MB, application/zip)
2019-08-01 20:39 PDT, EWS Watchlist
no flags
Patch (31.35 KB, patch)
2019-08-02 01:15 PDT, Devin Rousso
no flags
Patch (31.18 KB, patch)
2019-08-08 16:18 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-07-24 20:59:53 PDT
EWS Watchlist
Comment 2 2019-07-24 21:02:14 PDT Comment hidden (obsolete)
Devin Rousso
Comment 3 2019-07-24 21:15:51 PDT
Devin Rousso
Comment 4 2019-07-24 21:21:55 PDT
EWS Watchlist
Comment 5 2019-07-24 22:05:13 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2019-07-24 22:05:15 PDT Comment hidden (obsolete)
Devin Rousso
Comment 7 2019-07-24 22:12:53 PDT
EWS Watchlist
Comment 8 2019-07-24 23:16:35 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 9 2019-07-24 23:16:36 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 10 2019-07-24 23:31:06 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 11 2019-07-24 23:31:08 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 12 2019-07-24 23:33:09 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 13 2019-07-24 23:33:11 PDT Comment hidden (obsolete)
Joseph Pecoraro
Comment 14 2019-07-29 12:04:21 PDT
Comment on attachment 374873 [details] Patch This potentially changes the order in which the frontend receives events. Previously they would come as part of `Page.enable` and now they are just sent immediately when a frontend connects. I don't think this should cause problems, the frontend should have been able to setup domain observers before it lets backend messages in: // Signal that the frontend is now ready to receive messages. WI.whenTargetsAvailable().then(() => { InspectorFrontendAPI.loadCompleted(); }); But I can't explain why so many tests are failing with lines like: CONSOLE MESSAGE: line 1: ReferenceError: Can't find variable: InspectorFrontendAPI ... There are also many cases of tests directly performing this that would need to be updated: page/media-query-list-listener-exception.html 13: InspectorProtocol.sendCommand("Page.enable", {}); page/frameScheduledNavigation.html 16: InspectorProtocol.sendCommand("Page.enable", {}); page/frameScheduledNavigation-async-delegates.html 19: InspectorProtocol.sendCommand("Page.enable", {}); page/archive.html 7: InspectorProtocol.sendCommand("Page.enable", {}); page/frameStartedLoading.html 17: InspectorProtocol.sendCommand("Page.enable", {}); timeline/line-column.html 39: InspectorProtocol.sendCommand("Page.enable"); A smaller step forward might be just removing `disable`. Almost this entire patch could be reused.
Joseph Pecoraro
Comment 15 2019-07-29 12:45:40 PDT
Also note that ITMLKit would need to rework their code now that `Page.enable` no longer exists.
Devin Rousso
Comment 16 2019-08-01 16:42:50 PDT
EWS Watchlist
Comment 17 2019-08-01 19:42:20 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 18 2019-08-01 19:42:22 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 19 2019-08-01 20:39:50 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 20 2019-08-01 20:39:51 PDT Comment hidden (obsolete)
Devin Rousso
Comment 21 2019-08-02 01:15:00 PDT
Created attachment 375399 [details] Patch The tests were failing because `WebCore::ScriptController::executeScript` doesn't actually do anything if it's paused, whereas `WebCore::ScriptController::evaluate` does.
Blaze Burg
Comment 22 2019-08-08 11:08:06 PDT
Comment on attachment 375399 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375399&action=review r=me > Source/WebInspectorUI/UserInterface/Controllers/NetworkManager.js:79 > + // COMPATIBILITY (iOS 13): Page.enable was removed. Should this say iOS 13 or 13.1?
Devin Rousso
Comment 23 2019-08-08 11:14:28 PDT
Comment on attachment 375399 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375399&action=review >> Source/WebInspectorUI/UserInterface/Controllers/NetworkManager.js:79 >> + // COMPATIBILITY (iOS 13): Page.enable was removed. > > Should this say iOS 13 or 13.1? From what I've come to understand, we put the last iOS version that did NOT support this change, meaning that if we drop support for it, we could remove the check.
WebKit Commit Bot
Comment 24 2019-08-08 11:59:47 PDT Comment hidden (obsolete)
Devin Rousso
Comment 25 2019-08-08 16:18:37 PDT
WebKit Commit Bot
Comment 26 2019-08-08 18:10:47 PDT
Comment on attachment 375854 [details] Patch Clearing flags on attachment: 375854 Committed r248454: <https://trac.webkit.org/changeset/248454>
WebKit Commit Bot
Comment 27 2019-08-08 18:10:49 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 28 2019-08-08 18:11:22 PDT
Truitt Savell
Comment 29 2019-08-09 11:49:20 PDT
It looks like the changes in https://trac.webkit.org/changeset/248454/webkit broke inspector/css/force-page-appearance.html on Debug and release wk1 History: https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector%2Fcss%2Fforce-page-appearance.html I was able to reproduce this locally by running the test on 248454 and it fails, on 248452 is passes. Can this be looked at today?
Devin Rousso
Comment 30 2019-08-09 13:07:20 PDT
(In reply to Truitt Savell from comment #29) > It looks like the changes in https://trac.webkit.org/changeset/248454/webkit > > broke inspector/css/force-page-appearance.html on Debug and release wk1 > > History: > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > html#showAllRuns=true&tests=inspector%2Fcss%2Fforce-page-appearance.html > > I was able to reproduce this locally by running the test on 248454 and it > fails, on 248452 is passes. > > Can this be looked at today? Looking now.
Devin Rousso
Comment 31 2019-08-09 14:15:07 PDT
(In reply to Devin Rousso from comment #30) > (In reply to Truitt Savell from comment #29) > > It looks like the changes in https://trac.webkit.org/changeset/248454/webkit > > > > broke inspector/css/force-page-appearance.html on Debug and release wk1 > > > > History: > > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > > html#showAllRuns=true&tests=inspector%2Fcss%2Fforce-page-appearance.html > > > > I was able to reproduce this locally by running the test on 248454 and it fails, on 248452 is passes. > > > > Can this be looked at today? > Looking now. <https://webkit.org/b/200587>
Note You need to log in before you can comment on or make changes to this bug.