Bug 184515 - Add support for converting a local window to a remote window
Summary: Add support for converting a local window to a remote window
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on: 184467 184591 184640 184653
Blocks: 184466 184716
  Show dependency treegraph
 
Reported: 2018-04-11 14:19 PDT by Chris Dumez
Modified: 2018-04-18 09:50 PDT (History)
15 users (show)

See Also:


Attachments
WIP Patch (168.57 KB, patch)
2018-04-11 14:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (168.11 KB, patch)
2018-04-11 14:46 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (168.09 KB, patch)
2018-04-11 14:59 PDT, Chris Dumez
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-sierra (532.55 KB, application/zip)
2018-04-11 16:09 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews117 for mac-sierra (569.67 KB, application/zip)
2018-04-11 16:25 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews104 for mac-sierra-wk2 (3.32 MB, application/zip)
2018-04-11 16:26 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews125 for ios-simulator-wk2 (2.79 MB, application/zip)
2018-04-11 16:42 PDT, EWS Watchlist
no flags Details
WIP Patch (169.72 KB, patch)
2018-04-12 13:03 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (170.43 KB, patch)
2018-04-12 13:21 PDT, Chris Dumez
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-sierra (2.66 MB, application/zip)
2018-04-12 14:43 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews115 for mac-sierra (1.80 MB, application/zip)
2018-04-12 14:53 PDT, EWS Watchlist
no flags Details
WIP Patch (137.83 KB, patch)
2018-04-12 21:42 PDT, Chris Dumez
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-sierra (2.42 MB, application/zip)
2018-04-12 22:55 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews112 for mac-sierra (1.14 MB, application/zip)
2018-04-12 23:00 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews104 for mac-sierra-wk2 (3.33 MB, application/zip)
2018-04-12 23:13 PDT, EWS Watchlist
no flags Details
WIP Patch (138.35 KB, patch)
2018-04-13 12:18 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (137.50 KB, patch)
2018-04-13 12:27 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (110.33 KB, patch)
2018-04-13 15:06 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (124.11 KB, patch)
2018-04-13 16:47 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (124.05 KB, patch)
2018-04-15 15:06 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (110.50 KB, patch)
2018-04-16 13:19 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (45.16 KB, patch)
2018-04-17 10:54 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (55.66 KB, patch)
2018-04-17 12:46 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (55.73 KB, patch)
2018-04-18 09:18 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2018-04-11 14:19:50 PDT
Add support for converting a local window to a remote window.
Comment 1 Chris Dumez 2018-04-11 14:20:17 PDT
<rdar://problem/39011318>
Comment 2 Chris Dumez 2018-04-11 14:24:14 PDT
Created attachment 337734 [details]
WIP Patch
Comment 3 EWS Watchlist 2018-04-11 14:27:16 PDT
Attachment 337734 [details] did not pass style-queue:


ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:185:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 75 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Chris Dumez 2018-04-11 14:46:53 PDT
Created attachment 337735 [details]
WIP Patch
Comment 5 EWS Watchlist 2018-04-11 14:49:07 PDT
Attachment 337735 [details] did not pass style-queue:


ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:185:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 74 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Chris Dumez 2018-04-11 14:59:48 PDT
Created attachment 337737 [details]
WIP Patch
Comment 7 EWS Watchlist 2018-04-11 16:09:57 PDT
Comment on attachment 337737 [details]
WIP Patch

Attachment 337737 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/7287980

Number of test failures exceeded the failure limit.
Comment 8 EWS Watchlist 2018-04-11 16:09:59 PDT
Created attachment 337740 [details]
Archive of layout-test-results from ews103 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 9 EWS Watchlist 2018-04-11 16:25:07 PDT
Comment on attachment 337737 [details]
WIP Patch

Attachment 337737 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/7287941

Number of test failures exceeded the failure limit.
Comment 10 EWS Watchlist 2018-04-11 16:25:08 PDT
Created attachment 337742 [details]
Archive of layout-test-results from ews117 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 11 EWS Watchlist 2018-04-11 16:26:09 PDT
Comment on attachment 337737 [details]
WIP Patch

Attachment 337737 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/7287988

New failing tests:
http/tests/navigation/process-swap-window-open.html
Comment 12 EWS Watchlist 2018-04-11 16:26:11 PDT
Created attachment 337744 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 13 EWS Watchlist 2018-04-11 16:42:20 PDT
Comment on attachment 337737 [details]
WIP Patch

Attachment 337737 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/7288005

New failing tests:
http/tests/navigation/process-swap-window-open.html
Comment 14 EWS Watchlist 2018-04-11 16:42:21 PDT
Created attachment 337749 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 15 Chris Dumez 2018-04-12 13:03:38 PDT
Created attachment 337825 [details]
WIP Patch
Comment 16 Chris Dumez 2018-04-12 13:21:49 PDT
Created attachment 337830 [details]
WIP Patch
Comment 17 EWS Watchlist 2018-04-12 14:43:33 PDT
Comment on attachment 337830 [details]
WIP Patch

Attachment 337830 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/7297793

Number of test failures exceeded the failure limit.
Comment 18 EWS Watchlist 2018-04-12 14:43:35 PDT
Created attachment 337837 [details]
Archive of layout-test-results from ews101 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 19 EWS Watchlist 2018-04-12 14:53:34 PDT
Comment on attachment 337830 [details]
WIP Patch

Attachment 337830 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/7297779

Number of test failures exceeded the failure limit.
Comment 20 EWS Watchlist 2018-04-12 14:53:35 PDT
Created attachment 337839 [details]
Archive of layout-test-results from ews115 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 21 Chris Dumez 2018-04-12 21:42:39 PDT
Created attachment 337863 [details]
WIP Patch
Comment 22 EWS Watchlist 2018-04-12 22:55:18 PDT
Comment on attachment 337863 [details]
WIP Patch

Attachment 337863 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/7301517

Number of test failures exceeded the failure limit.
Comment 23 EWS Watchlist 2018-04-12 22:55:20 PDT
Created attachment 337865 [details]
Archive of layout-test-results from ews101 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 24 EWS Watchlist 2018-04-12 23:00:58 PDT
Comment on attachment 337863 [details]
WIP Patch

Attachment 337863 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/7301512

Number of test failures exceeded the failure limit.
Comment 25 EWS Watchlist 2018-04-12 23:00:59 PDT
Created attachment 337866 [details]
Archive of layout-test-results from ews112 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 26 EWS Watchlist 2018-04-12 23:13:02 PDT
Comment on attachment 337863 [details]
WIP Patch

Attachment 337863 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/7301546

New failing tests:
media/video-frame-accurate-seek.html
Comment 27 EWS Watchlist 2018-04-12 23:13:04 PDT
Created attachment 337867 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 28 Chris Dumez 2018-04-13 12:18:30 PDT
Created attachment 337917 [details]
WIP Patch
Comment 29 Chris Dumez 2018-04-13 12:27:01 PDT
Created attachment 337919 [details]
WIP Patch
Comment 30 Chris Dumez 2018-04-13 15:06:47 PDT
Created attachment 337926 [details]
WIP Patch
Comment 31 Chris Dumez 2018-04-13 16:47:42 PDT
Created attachment 337931 [details]
WIP Patch
Comment 32 Chris Dumez 2018-04-15 15:06:45 PDT
Created attachment 337979 [details]
WIP Patch
Comment 33 Chris Dumez 2018-04-16 13:19:46 PDT
Created attachment 338029 [details]
WIP Patch
Comment 34 Chris Dumez 2018-04-17 10:54:48 PDT
Created attachment 338130 [details]
WIP Patch
Comment 35 Chris Dumez 2018-04-17 12:46:04 PDT
Created attachment 338144 [details]
Patch
Comment 36 Ryosuke Niwa 2018-04-17 20:27:49 PDT
Comment on attachment 338144 [details]
Patch

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

> Source/WebKit/UIProcess/WebPageProxy.cpp:2441
> +    m_mainFrameWindowCreationHandler = [this, previousProcess = WTFMove(previousProcess), previousFrameIdentifier = *previousFrameIdentifier](const GlobalWindowIdentifier& windowIdentifier) {

I think it's clearer to call previousProcess as frameOwnerProcess and ownerFrameIdentifier, etc..
since what's important here is that it's the process/frame which opened this frame.
Comment 37 Chris Dumez 2018-04-18 08:54:40 PDT
Comment on attachment 338144 [details]
Patch

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

>> Source/WebKit/UIProcess/WebPageProxy.cpp:2441
>> +    m_mainFrameWindowCreationHandler = [this, previousProcess = WTFMove(previousProcess), previousFrameIdentifier = *previousFrameIdentifier](const GlobalWindowIdentifier& windowIdentifier) {
> 
> I think it's clearer to call previousProcess as frameOwnerProcess and ownerFrameIdentifier, etc..
> since what's important here is that it's the process/frame which opened this frame.

This is not accurate. This is the identifier of the frame that is about to become remote in the old process. This is not the identifier of the frame which opened the new window. I guess the naming needs clarifying either way.
Comment 38 Chris Dumez 2018-04-18 09:18:20 PDT
Created attachment 338221 [details]
Patch
Comment 39 WebKit Commit Bot 2018-04-18 09:50:41 PDT
Comment on attachment 338221 [details]
Patch

Clearing flags on attachment: 338221

Committed r230764: <https://trac.webkit.org/changeset/230764>
Comment 40 WebKit Commit Bot 2018-04-18 09:50:44 PDT
All reviewed patches have been landed.  Closing bug.