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

Issue 23604028: [XML Viewer crash] Store the reference of pretty-print div as tree to be used during the processing (Closed)

Created:
7 years, 3 months ago by vivekg_samsung
Modified:
7 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[XML Viewer crash] Store the reference of pretty-print div as tree to be used during the processing XMLViewer creates a pretty-print div for rendering XML contents. Once the document onLoad is called upon, the processing of the tree takes place. In this if the source xml contains the id="tree", it will get conflicted. The resulting XML viewer may appear blank if the id="tree" is present at the root node. Even worse, if the conflicting id="tree" appears within any of the elements after the root, it causes the renderer to crash. The fix is to store the pretty-print div as tree reference to be used during the internal processing. R=abarth, pfeldman BUG=284399 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157201

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Messages

Total messages: 10 (0 generated)
vivekg__
Please take a look, thanks!
7 years, 3 months ago (2013-09-03 11:31:15 UTC) #1
abarth-chromium
Won't this break extensions that hook prepareWebKitXMLViewer?
7 years, 3 months ago (2013-09-03 20:57:35 UTC) #2
vivekg_samsung
On 2013/09/03 20:57:35, abarth wrote: > Won't this break extensions that hook prepareWebKitXMLViewer? Isn't "onAfterWebkitXMLViewerLoaded" ...
7 years, 3 months ago (2013-09-03 21:22:27 UTC) #3
abarth-chromium
Looking around briefly, I'm pretty sure this CL will break https://chrome.google.com/webstore/detail/efr-and-xbrl-addon/ghhlglecmgopkfdaepgnncgkpgielgbl?hl=en That extension assumes that ...
7 years, 3 months ago (2013-09-04 00:40:21 UTC) #4
vivekg__
On 2013/09/04 00:40:21, abarth wrote: > Looking around briefly, I'm pretty sure this CL will ...
7 years, 3 months ago (2013-09-04 01:47:54 UTC) #5
abarth-chromium
https://codereview.chromium.org/23604028/diff/6001/Source/core/xml/XMLViewer.js File Source/core/xml/XMLViewer.js (right): https://codereview.chromium.org/23604028/diff/6001/Source/core/xml/XMLViewer.js#newcode80 Source/core/xml/XMLViewer.js:80: var root = document.getElementById('tree'); Why not save off the ...
7 years, 3 months ago (2013-09-04 02:02:40 UTC) #6
vivekg__
On 2013/09/04 02:02:40, abarth wrote: > https://codereview.chromium.org/23604028/diff/6001/Source/core/xml/XMLViewer.js > File Source/core/xml/XMLViewer.js (right): > > https://codereview.chromium.org/23604028/diff/6001/Source/core/xml/XMLViewer.js#newcode80 > ...
7 years, 3 months ago (2013-09-04 02:15:36 UTC) #7
abarth-chromium
LGTM. Thanks for being willing to iterate on this CL
7 years, 3 months ago (2013-09-04 02:45:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/23604028/1006
7 years, 3 months ago (2013-09-04 02:53:37 UTC) #9
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 05:57:19 UTC) #10
Message was sent while issue was closed.
Change committed as 157201

Powered by Google App Engine
This is Rietveld 408576698