Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(47)

Issue 6603049: Stop resolving uri fragments into absolute uris (Issue 1539) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by Jasvir
Modified:
13 years, 5 months ago
Reviewers:
metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Earlier change made URL resolution too aggressive which interacts poorly cases where a link is just a url fragment. This change rewrites uris which are just uri fragments the same as regular uri fragments ie. rewrites to add a idsuffix @5080

Patch Set 1 #

Total comments: 5

Patch Set 2 : Stop resolving uri fragments into absolute uris (Issue 1539) #

Total comments: 3

Patch Set 3 : Stop resolving uri fragments into absolute uris (Issue 1539) #

Patch Set 4 : Stop resolving uri fragments into absolute uris (Issue 1539) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -18 lines) Patch
M src/com/google/caja/plugin/domado.js View 1 2 3 6 chunks +35 lines, -10 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-target-attribute-presets.js View 1 2 3 4 chunks +71 lines, -8 lines 0 comments Download

Messages

Total messages: 7
Jasvir
13 years, 6 months ago (2012-10-04 04:04:53 UTC) #1
metaweta
lgtm https://codereview.appspot.com/6603049/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/6603049/diff/1/src/com/google/caja/plugin/domado.js#newcode1803 src/com/google/caja/plugin/domado.js:1803: // URI fragments reference contents within the document ...
13 years, 6 months ago (2012-10-04 04:29:08 UTC) #2
Jasvir
https://codereview.appspot.com/6603049/diff/1/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js File tests/com/google/caja/plugin/es53-test-target-attribute-presets.js (right): https://codereview.appspot.com/6603049/diff/1/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js#newcode34 tests/com/google/caja/plugin/es53-test-target-attribute-presets.js:34: function(html, str) { html.indexOf(str) === 1; }); Error when ...
13 years, 6 months ago (2012-10-04 05:24:58 UTC) #3
metaweta
https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js File tests/com/google/caja/plugin/es53-test-target-attribute-presets.js (right): https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js#newcode34 tests/com/google/caja/plugin/es53-test-target-attribute-presets.js:34: function(html, str) { html.indexOf(str) === -1; }); You got ...
13 years, 6 months ago (2012-10-04 05:38:39 UTC) #4
Jasvir
https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js File tests/com/google/caja/plugin/es53-test-target-attribute-presets.js (right): https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js#newcode34 tests/com/google/caja/plugin/es53-test-target-attribute-presets.js:34: function(html, str) { html.indexOf(str) === -1; }); ...and hence ...
13 years, 6 months ago (2012-10-04 05:55:24 UTC) #5
metaweta
lgtm https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js File tests/com/google/caja/plugin/es53-test-target-attribute-presets.js (right): https://codereview.appspot.com/6603049/diff/5001/tests/com/google/caja/plugin/es53-test-target-attribute-presets.js#newcode34 tests/com/google/caja/plugin/es53-test-target-attribute-presets.js:34: function(html, str) { html.indexOf(str) === -1; }); On ...
13 years, 6 months ago (2012-10-04 13:51:50 UTC) #6
metaweta
13 years, 5 months ago (2012-10-09 20:09:17 UTC) #7
please close
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b