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

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed)

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
haraken
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, Nate Chapin, rwlbuis, sof, site-isolation-reviews_chromium.org, Yuki
Project:
blink
Visibility:
Public.

Description

Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. This patch switches the bindings code from using LocalDOMWindow to using the DOMWindow interface. This will allow OOPIF to add a RemoteDOMWindow class that remote frames can expose to web content. BUG=425623 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185067

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : checkpoint #

Patch Set 4 : whee #

Total comments: 30

Patch Set 5 : Fix build #

Patch Set 6 : . #

Patch Set 7 : Really fix build #

Patch Set 8 : Fix incorrect assumption #

Total comments: 33

Patch Set 9 : Address review comments #

Patch Set 10 : Rebase on top of DOMWindow refactoring #

Patch Set 11 : Rebase on top of DOMWindow moves and UseCounter overload for Frame #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -166 lines) Patch
M Source/bindings/core/v8/BindingSecurity.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/core/v8/DictionaryHelperForCore.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/ScriptProfiler.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/ScriptState.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8Binding.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/V8Binding.cpp View 1 2 3 4 5 6 7 7 chunks +7 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/custom/V8EventTargetCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/custom/V8MessageEventCustom.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 6 7 8 9 10 12 chunks +22 lines, -19 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 4 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/EventDispatcher.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/MessageEvent.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/events/MessageEvent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/events/MouseRelatedEvent.cpp View 1 2 3 chunks +5 lines, -6 lines 6 comments Download
M Source/core/events/TouchEvent.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 2 comments Download
M Source/core/events/UIEvent.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/frame/DOMWindow.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -2 lines 0 comments Download
M Source/core/frame/DOMWindowProperty.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/frame/Frame.h View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -10 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 7 chunks +16 lines, -14 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Location.cpp View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Window.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/ImageDocument.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/DOMWindowPagePopup.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/DOMWindowPagePopup.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/storage/StorageArea.cpp View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XSLTProcessor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/crypto/DOMWindowCrypto.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/crypto/DOMWindowCrypto.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/DOMWindowFileSystem.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/filesystem/DOMWindowFileSystem.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/DOMWindowIndexedDatabase.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/DOMWindowSpeechSynthesis.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/speech/DOMWindowSpeechSynthesis.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/WebDOMMessageEvent.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (2 generated)
dcheng
I've annotated the review with the reasoning for particular design choices I made. https://codereview.chromium.org/683013002/diff/60001/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp File ...
6 years, 1 month ago (2014-10-31 03:20:42 UTC) #2
haraken
not LGTM unfortunately. This CL is making too many "uncertain" changes in one go. Let's ...
6 years, 1 month ago (2014-10-31 06:07:04 UTC) #3
dcheng
Replying to your more high-level comments. In general, the philosophy should be to assume and ...
6 years, 1 month ago (2014-10-31 06:31:01 UTC) #4
haraken
> Replying to your more high-level comments. In general, the philosophy should be > to ...
6 years, 1 month ago (2014-10-31 06:42:10 UTC) #5
dcheng
On 2014/10/31 at 06:42:10, haraken wrote: > > Replying to your more high-level comments. In ...
6 years, 1 month ago (2014-10-31 08:08:18 UTC) #6
haraken
Here is the second round of comments! BTW, not related to your CL, what prevents ...
6 years, 1 month ago (2014-11-08 09:17:26 UTC) #7
dcheng
https://codereview.chromium.org/683013002/diff/140001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/683013002/diff/140001/Source/bindings/core/v8/V8Initializer.cpp#newcode306 Source/bindings/core/v8/V8Initializer.cpp:306: return; On 2014/11/08 at 09:17:24, haraken wrote: > If ...
6 years, 1 month ago (2014-11-08 23:59:56 UTC) #8
haraken
LGTM For code health, we might want to: - Rename DOMWindow to Window - Name ...
6 years, 1 month ago (2014-11-10 08:58:20 UTC) #9
dcheng
https://codereview.chromium.org/683013002/diff/200001/Source/core/events/MouseRelatedEvent.cpp File Source/core/events/MouseRelatedEvent.cpp (right): https://codereview.chromium.org/683013002/diff/200001/Source/core/events/MouseRelatedEvent.cpp#newcode43 Source/core/events/MouseRelatedEvent.cpp:43: if (!abstractView || !abstractView->isLocalDOMWindow()) On 2014/11/10 08:58:20, haraken wrote: ...
6 years, 1 month ago (2014-11-10 09:29:44 UTC) #10
dcheng
https://codereview.chromium.org/683013002/diff/200001/Source/core/events/MouseRelatedEvent.cpp File Source/core/events/MouseRelatedEvent.cpp (right): https://codereview.chromium.org/683013002/diff/200001/Source/core/events/MouseRelatedEvent.cpp#newcode67 Source/core/events/MouseRelatedEvent.cpp:67: LocalFrame* frame = view() && view()->isLocalDOMWindow() ? toLocalDOMWindow(view())->frame() : ...
6 years, 1 month ago (2014-11-10 20:41:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683013002/200001
6 years, 1 month ago (2014-11-10 20:42:47 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 21:57:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as 185067

Powered by Google App Engine
This is Rietveld 408576698