DescriptionRemove port lifetime management from renderer
- Remove port tracking logic from the renderer because it is handled by
the browser since https://codereview.chromium.org/1413543005/.
- Store the source tab id on the port in the browser to remove the need
for tracking the tab ID in the renderer (originally introduced with
https://codereview.chromium.org/145463002).
- Remove redundant onDestroy_ from messaging.js (because the event
listeners are already removed as a part of the event's destroy_()).
- In the browser process, ask the renderer whether a newly created opener
port exists because the originating frame might have navigated since the
request to create a port.
BUG=475536
Committed: https://crrev.com/d1db9f61a6000339514472fe0d69c02e9917571c
Cr-Commit-Position: refs/heads/master@{#395861}
Patch Set 1 #Patch Set 2 : Simplify: Assume that opener port is open, only send reply if closed #
Total comments: 24
Patch Set 3 : Devlin's nits up to #10 #
Total comments: 2
Patch Set 4 : Devlin's nits up to #12 #
Total comments: 1
Patch Set 5 : Use MakeUnique instead of WrapUnique #Messages
Total messages: 23 (12 generated)
|