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

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed)

Created:
7 years, 1 month ago by Erik Dahlström (inactive)
Modified:
6 years, 11 months ago
Reviewers:
Stephen Chennney
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), eae+blinkwatch, dglazkov+blink, dstockwell, Timothy Loh, f(malita), adamk+blink_chromium.org, darktears, pdr, Stephen Chennney, Steve Block, dino_apple.com, Inactive, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove support for the externalResourcesRequired attribute. Intent: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/intent$20to$20remove/blink-dev/cyBqba-FxQU/fL208UQx3sEJ Changes in behavior: 1. Load events should only be dispatched to elements that have some actual external content to load and to the outermost svg element. 2. Scripts should be killed/not executed if the svg is not xml wellformed. 3. Load events on elements that have external resources to fetch will not be dispatched until that resource is ready for use, similar to how externalResourcesRequired="true" used to work. BUG=332066 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164692

Patch Set 1 #

Total comments: 21

Patch Set 2 : address review issues #

Patch Set 3 : tests + tweaks #

Patch Set 4 : rebased #

Patch Set 5 : rebaseline test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -802 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/svg/dynamic-image-after-docload.svg View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/svg/dynamic-image-after-docload-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/http/tests/svg/dynamic-image-root.svg View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/svg/dynamic-image-root-expected.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/svg/load-on-delayed-script.svg View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/svg/load-on-delayed-script-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/http/tests/svg/resources/delayCachedLoadScript.php View 1 2 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/svg/resources/setexecuted.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/http/tests/svg/svgload-vs-load.svg View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/svg/svgload-vs-load-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/svg/W3C-SVG-1.1-SE/types-dom-04-b.svg View 3 chunks +9 lines, -5 lines 0 comments Download
M LayoutTests/svg/W3C-SVG-1.1-SE/types-dom-04-b-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/svg/custom/load-non-wellformed.svg View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/svg/custom/loadevents-capturing.svg View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-capturing-expected.png View 1 2 Binary file 0 comments Download
D LayoutTests/svg/custom/loadevents-capturing-expected.txt View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired.svg View 1 chunk +0 lines, -30 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired-displaynone.svg View 1 chunk +0 lines, -30 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired-displaynone-expected.png View Binary file 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired-displaynone-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired-expected.png View Binary file 0 comments Download
D LayoutTests/svg/custom/loadevents-externalresourcesrequired-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/svg/custom/loadevents-normal.svg View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
M LayoutTests/svg/custom/loadevents-normal-displaynone.svg View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-normal-displaynone-expected.png View 1 2 Binary file 0 comments Download
D LayoutTests/svg/custom/loadevents-normal-displaynone-expected.txt View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/svg/custom/loadevents-normal-expected.png View 1 2 Binary file 0 comments Download
D LayoutTests/svg/custom/loadevents-normal-expected.txt View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
A LayoutTests/svg/custom/nested-svg-load-events.svg View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/nested-svg-load-events-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/svg/custom/path-domsubtreemodified-crash.html View 1 1 chunk +0 lines, -38 lines 0 comments Download
D LayoutTests/svg/custom/path-domsubtreemodified-crash-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/custom/svg-features-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/svg/custom/svg2-loadevents-capturing.svg View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + LayoutTests/svg/custom/svg2-loadevents-capturing-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/svg/custom/svg2-loadevents-normal.svg View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
A + LayoutTests/svg/custom/svg2-loadevents-normal-displaynone.svg View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
A + LayoutTests/svg/custom/svg2-loadevents-normal-displaynone-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/svg/custom/svg2-loadevents-normal-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/svg/custom/use-crash-in-non-wellformed-document-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/svg/dom/SVGAnimatedBoolean-expected.txt View 2 chunks +14 lines, -14 lines 0 comments Download
M LayoutTests/svg/dom/SVGScriptElement/resources/script-reexecution.js View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/svg/dom/SVGScriptElement/script-reexecution.svg View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/svg/dom/script-tests/SVGAnimatedBoolean.js View 2 chunks +17 lines, -17 lines 0 comments Download
M LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-dom-href1-attr.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-dom-href2-attr.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-svgdom-href1-prop.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-svgdom-href2-prop.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/repaint/image-href-change.svg View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/repaint/image-with-clip-path.svg View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/dom/DOMImplementation.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/svg/SVGAElement.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGAElement.cpp View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download
M Source/core/svg/SVGAElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGAnimationElement.h View 1 2 3 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGAnimationElement.cpp View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download
M Source/core/svg/SVGAnimationElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGCircleElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGCircleElement.cpp View 1 2 3 4 chunks +1 line, -10 lines 0 comments Download
M Source/core/svg/SVGCircleElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGClipPathElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGClipPathElement.cpp View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M Source/core/svg/SVGClipPathElement.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGCursorElement.h View 1 2 3 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGCursorElement.cpp View 1 2 3 3 chunks +0 lines, -4 lines 0 comments Download
M Source/core/svg/SVGCursorElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGDefsElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGDefsElement.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGDefsElement.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGElement.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGElement.cpp View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/svg/SVGEllipseElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGEllipseElement.cpp View 1 2 3 4 chunks +1 line, -10 lines 0 comments Download
M Source/core/svg/SVGEllipseElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D Source/core/svg/SVGExternalResourcesRequired.cpp View 1 chunk +0 lines, -120 lines 0 comments Download
D Source/core/svg/SVGExternalResourcesRequired.idl View 1 chunk +0 lines, -33 lines 0 comments Download
M Source/core/svg/SVGFEImageElement.h View 1 2 3 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGFEImageElement.cpp View 1 2 3 4 chunks +0 lines, -8 lines 0 comments Download
M Source/core/svg/SVGFEImageElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGFilterElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGFilterElement.cpp View 1 2 4 chunks +1 line, -5 lines 0 comments Download
M Source/core/svg/SVGFilterElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGFontElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGFontElement.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.cpp View 1 2 4 chunks +1 line, -5 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGGElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGGElement.cpp View 1 2 3 3 chunks +0 lines, -6 lines 0 comments Download
M Source/core/svg/SVGGElement.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGGradientElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGGradientElement.cpp View 1 2 3 chunks +0 lines, -5 lines 0 comments Download
M Source/core/svg/SVGGradientElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGImageElement.h View 1 2 3 4 chunks +1 line, -3 lines 0 comments Download
M Source/core/svg/SVGImageElement.cpp View 1 2 3 6 chunks +3 lines, -8 lines 0 comments Download
M Source/core/svg/SVGImageElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGImageLoader.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/svg/SVGLineElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGLineElement.cpp View 1 2 3 4 chunks +1 line, -10 lines 0 comments Download
M Source/core/svg/SVGLineElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGMPathElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGMPathElement.cpp View 1 2 3 4 chunks +0 lines, -8 lines 0 comments Download
M Source/core/svg/SVGMPathElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGMarkerElement.h View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGMarkerElement.cpp View 1 2 4 chunks +1 line, -5 lines 0 comments Download
M Source/core/svg/SVGMarkerElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGMaskElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGMaskElement.cpp View 1 2 4 chunks +1 line, -5 lines 0 comments Download
M Source/core/svg/SVGMaskElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGPathElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGPathElement.cpp View 1 2 3 3 chunks +0 lines, -6 lines 0 comments Download
M Source/core/svg/SVGPathElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGPatternElement.h View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGPatternElement.cpp View 1 2 3 4 chunks +0 lines, -4 lines 0 comments Download
M Source/core/svg/SVGPatternElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGPolyElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGPolyElement.cpp View 1 2 3 4 chunks +0 lines, -11 lines 0 comments Download
M Source/core/svg/SVGPolygonElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGPolylineElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGRectElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGRectElement.cpp View 1 2 3 5 chunks +1 line, -10 lines 0 comments Download
M Source/core/svg/SVGRectElement.idl View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGSVGElement.h View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGSVGElement.cpp View 1 2 3 4 chunks +2 lines, -6 lines 0 comments Download
M Source/core/svg/SVGSVGElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGScriptElement.h View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M Source/core/svg/SVGScriptElement.cpp View 1 2 3 8 chunks +13 lines, -27 lines 0 comments Download
M Source/core/svg/SVGScriptElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGSwitchElement.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGSwitchElement.cpp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/svg/SVGSwitchElement.idl View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGSymbolElement.h View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGSymbolElement.cpp View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
M Source/core/svg/SVGSymbolElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGTextContentElement.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/svg/SVGTextContentElement.cpp View 1 2 3 3 chunks +0 lines, -4 lines 0 comments Download
M Source/core/svg/SVGTextContentElement.idl View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGUseElement.h View 1 2 6 chunks +2 lines, -8 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 2 3 9 chunks +14 lines, -18 lines 0 comments Download
M Source/core/svg/SVGUseElement.idl View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/svg/SVGViewElement.h View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M Source/core/svg/SVGViewElement.cpp View 1 2 3 chunks +0 lines, -5 lines 0 comments Download
M Source/core/svg/SVGViewElement.idl View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Erik Dahlström (inactive)
7 years, 1 month ago (2013-11-06 14:52:53 UTC) #1
Stephen Chennney
Most of this is cleanup, but there are some serious questions in amongst it. I ...
7 years, 1 month ago (2013-11-06 16:45:41 UTC) #2
Erik Dahlström (inactive)
I agree about the need to look over the load event handling in svg in ...
7 years, 1 month ago (2013-11-07 09:38:03 UTC) #3
Stephen Chennney
I dropped the ball on this in a big way. I think we should move ...
7 years ago (2013-12-18 20:56:23 UTC) #4
Erik Dahlström (inactive)
On 2013/12/18 20:56:23, Stephen Chenney wrote: > I dropped the ball on this in a ...
6 years, 11 months ago (2014-01-08 08:14:44 UTC) #5
Stephen Chennney
lgtm
6 years, 11 months ago (2014-01-08 15:52:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ed@opera.com/62083002/190001
6 years, 11 months ago (2014-01-08 15:53:08 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 18:08:57 UTC) #8
Message was sent while issue was closed.
Change committed as 164692

Powered by Google App Engine
This is Rietveld 408576698