Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 2629493004: Introduce DOMWindowClient (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
dcheng
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce DOMWindowClient The lifetime of ExecutionContext and DOMWindow is a bit different. In common case, they get detached at the same timing but in a case where a frame navigates from an initial empty document to another same-origin document, the ExecutionContext gets detached but the DOMWindow is reused. Due to the (subtle) difference, we need DOMWindowClient in addition to ContextClient. ContextClient is a client for objects that want to observe ExecutionContext. DOMWindowClient is a client for objects that want to observe DOMWindow. This CL uses DOMWindowClient for Navigator. BUG=610176 Review-Url: https://codereview.chromium.org/2629493004 Cr-Commit-Position: refs/heads/master@{#443216} Committed: https://chromium.googlesource.com/chromium/src/+/a82bb82ae350134c763a8e995738fec5d4e2a061

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -14 lines) Patch
M third_party/WebKit/Source/core/dom/ContextLifecycleObserver.h View 3 chunks +44 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContextLifecycleObserver.cpp View 2 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Navigator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Navigator.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
haraken
PTAL
3 years, 11 months ago (2017-01-12 09:16:20 UTC) #3
dcheng
Just one question: do we expect all DOMWindowProperty subclasses to be DOMWindowClients eventually? From what ...
3 years, 11 months ago (2017-01-12 09:36:34 UTC) #4
haraken
On 2017/01/12 09:36:34, dcheng wrote: > Just one question: do we expect all DOMWindowProperty subclasses ...
3 years, 11 months ago (2017-01-12 11:04:24 UTC) #5
dcheng
LGTM
3 years, 11 months ago (2017-01-12 11:24:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2629493004/1
3 years, 11 months ago (2017-01-12 11:26:10 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 12:55:18 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/a82bb82ae350134c763a8e995738...

Powered by Google App Engine
This is Rietveld 408576698