Bug 122598 - CTTE: activeDOMWindow() and firstDOMWindow() should return references.
Summary: CTTE: activeDOMWindow() and firstDOMWindow() should return references.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 07:51 PDT by Andreas Kling
Modified: 2013-10-10 13:09 PDT (History)
6 users (show)

See Also:


Attachments
Patch (26.97 KB, patch)
2013-10-10 07:53 PDT, Andreas Kling
andersca: review+
eflews.bot: commit-queue-
Details | Formatted Diff | Diff
Patch (27.65 KB, patch)
2013-10-10 08:58 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-10-10 07:51:00 PDT
CTTE: activeDOMWindow() and firstDOMWindow() should return references.
Comment 1 Andreas Kling 2013-10-10 07:53:35 PDT
Created attachment 213883 [details]
Patch
Comment 2 Anders Carlsson 2013-10-10 07:55:50 PDT
Comment on attachment 213883 [details]
Patch

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

> Source/WebCore/page/DOMWindow.cpp:1832
> +bool DOMWindow::isInsecureScriptAccess(DOMWindow& activeWindow, const String& urlString)

Can this be const?
Comment 3 EFL EWS Bot 2013-10-10 08:10:56 PDT
Comment on attachment 213883 [details]
Patch

Attachment 213883 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/3879029
Comment 4 EFL EWS Bot 2013-10-10 08:14:16 PDT
Comment on attachment 213883 [details]
Patch

Attachment 213883 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/3867029
Comment 5 Build Bot 2013-10-10 08:35:21 PDT
Comment on attachment 213883 [details]
Patch

Attachment 213883 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/3872027
Comment 6 Build Bot 2013-10-10 08:36:06 PDT
Comment on attachment 213883 [details]
Patch

Attachment 213883 [details] did not pass win-ews (win):
Output: http://webkit-queues.appspot.com/results/3869029
Comment 7 Build Bot 2013-10-10 08:55:26 PDT
Comment on attachment 213883 [details]
Patch

Attachment 213883 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/3870036
Comment 8 Andreas Kling 2013-10-10 08:58:51 PDT
Created attachment 213889 [details]
Patch
Comment 9 WebKit Commit Bot 2013-10-10 09:29:55 PDT
Comment on attachment 213889 [details]
Patch

Clearing flags on attachment: 213889

Committed r157228: <http://trac.webkit.org/changeset/157228>
Comment 10 WebKit Commit Bot 2013-10-10 09:29:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Csaba Osztrogonác 2013-10-10 13:09:35 PDT
(In reply to comment #9)
> (From update of attachment 213889 [details])
> Clearing flags on attachment: 213889
> 
> Committed r157228: <http://trac.webkit.org/changeset/157228>

FYI: This patch broke the Apple Windows build, as the EWS noticed it:
    1>WebKit.exp : error LNK2001: unresolved external symbol "public: class WTF::PassRefPtr<class WebCore::DOMWindow> __thiscall WebCore::DOMWindow::open(class WTF::String const &,class WTF::AtomicString const &,class WTF::String const &,class WebCore::DOMWindow *,class WebCore::DOMWindow *)" (?open@DOMWindow@WebCore@@QAE?AV?$PassRefPtr@VDOMWindow@WebCore@@@WTF@@ABVString@4@ABVAtomicString@4@0PAV12@2@Z)
     1>C:\cygwin\home\buildbot\slave\win-debug\build\WebKitBuild\Debug\bin32\WebKit.dll : fatal error LNK1120: 1 unresolved externals