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

Issue 919473004: Make DOMParser create documents with a context document set (Closed)

Created:
5 years, 10 months ago by Jens Widell
Modified:
5 years, 10 months ago
Reviewers:
haraken
CC:
blink-reviews, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make DOMParser create documents with a context document set Store a (weak) reference to the current context's document in DOMParser objects when created, and use this in parseFromString() when creating the parsed document. This matches how parsed documents are created by XMLHttpRequest. BUG=456624 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189959

Patch Set 1 #

Total comments: 3

Patch Set 2 : added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -14 lines) Patch
A + LayoutTests/fast/dom/DOMParser-marquee-crash.html View 1 1 chunk +4 lines, -9 lines 0 comments Download
A LayoutTests/fast/dom/DOMParser-marquee-crash-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/xml/DOMParser.h View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/xml/DOMParser.cpp View 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/xml/DOMParser.idl View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
Jens Widell
PTAL I just had a quick look at this issue. If you have another fix ...
5 years, 10 months ago (2015-02-11 07:53:01 UTC) #2
haraken
Thanks for looking at this! Can we add a test? https://codereview.chromium.org/919473004/diff/1/Source/core/xml/DOMParser.cpp File Source/core/xml/DOMParser.cpp (right): https://codereview.chromium.org/919473004/diff/1/Source/core/xml/DOMParser.cpp#newcode30 ...
5 years, 10 months ago (2015-02-11 08:23:11 UTC) #3
Jens Widell
On 2015/02/11 08:23:11, haraken wrote: > Thanks for looking at this! > > Can we ...
5 years, 10 months ago (2015-02-11 08:29:07 UTC) #4
Jens Widell
On 2015/02/11 08:29:07, Jens Widell wrote: > On 2015/02/11 08:23:11, haraken wrote: > > Thanks ...
5 years, 10 months ago (2015-02-11 09:05:47 UTC) #5
haraken
On 2015/02/11 08:29:07, Jens Widell wrote: > On 2015/02/11 08:23:11, haraken wrote: > > Thanks ...
5 years, 10 months ago (2015-02-11 09:12:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/919473004/20001
5 years, 10 months ago (2015-02-11 09:21:51 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-11 10:39:01 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189959

Powered by Google App Engine
This is Rietveld 408576698