WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
77307
[chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup.
https://bugs.webkit.org/show_bug.cgi?id=77307
Summary
[chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup.
Peter Collingbourne
Reported
2012-01-29 17:05:57 PST
[chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup.
Attachments
Patch
(1.32 KB, patch)
2012-01-29 17:09 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Patch
(1.71 KB, patch)
2012-02-11 19:35 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Patch
(5.41 KB, patch)
2012-02-17 10:26 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Patch
(5.79 KB, patch)
2012-02-17 14:11 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Patch
(6.21 KB, patch)
2012-02-21 19:32 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Patch
(6.32 KB, patch)
2012-02-23 17:36 PST
,
Peter Collingbourne
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Peter Collingbourne
Comment 1
2012-01-29 17:09:41 PST
Created
attachment 124476
[details]
Patch
Daniel Cheng
Comment 2
2012-02-08 17:18:25 PST
Comment on
attachment 124476
[details]
Patch Can you please add the "why" of this change to the ChangeLog? From this patch alone, it's not clear what you're trying to do--for example, why do we need to use AnnotateForInterchange now?
Peter Collingbourne
Comment 3
2012-02-11 19:35:37 PST
Created
attachment 126666
[details]
Patch
Nico Weber
Comment 4
2012-02-14 17:47:20 PST
Tony, can you look at this?
Nico Weber
Comment 5
2012-02-14 17:47:27 PST
(the patch, that is)
Tony Chang
Comment 6
2012-02-15 09:48:17 PST
Comment on
attachment 126666
[details]
Patch This change should have a layout test associated with it. Since WebFrame::selectionAsMarkup is part of the WebKit API, you can just call it directly from layoutTestController. The test would be chromium specific since it's the only port that has this function.
Peter Collingbourne
Comment 7
2012-02-17 10:26:16 PST
Created
attachment 127606
[details]
Patch
WebKit Review Bot
Comment 8
2012-02-17 14:01:10 PST
Comment on
attachment 127606
[details]
Patch
Attachment 127606
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11542469
Peter Collingbourne
Comment 9
2012-02-17 14:11:18 PST
Created
attachment 127656
[details]
Patch
Tony Chang
Comment 10
2012-02-21 11:02:46 PST
Comment on
attachment 127656
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=127656&action=review
> LayoutTests/http/tests/misc/resources/chromium-selectionAsMarkup.html:20 > + sel.indexOf("resources/chromium-selectionAsMarkup.html") != -1) > + document.body.innerHTML = "PASS";
This indenting is weird. && is also supposed to go on a new line to make it easier to see what is part of the condition and what is the if body. You could also just unwrap the if condition. Also, it would be nice to make each of these checks separate so if one of them starts failing, it's easier to tell from the test output.
> LayoutTests/platform/chromium/http/tests/misc/selectionAsMarkup.html:3 > +layoutTestController.dumpAsText(); > +layoutTestController.waitUntilDone();
We normally wrap layoutTestController call with a if (window.layoutTestController).
> LayoutTests/platform/chromium/http/tests/misc/selectionAsMarkup.html:6 > +document.location.href = "
http://localhost:8080/misc/resources/chromium-selectionAsMarkup.html
"; > +</script>
I would add some text that says what this test is testing. E.g., "This test makes sure that the markup used by print selection contains absolute urls and pushed down styles. This test depends on layoutTestController."
Tony Chang
Comment 11
2012-02-21 11:03:24 PST
This code and test is fine overall, just some style nits. Sorry for the slowness in reviewing.
Peter Collingbourne
Comment 12
2012-02-21 19:32:07 PST
Created
attachment 128112
[details]
Patch
Tony Chang
Comment 13
2012-02-22 10:18:11 PST
Comment on
attachment 128112
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=128112&action=review
> LayoutTests/platform/chromium/http/tests/misc/selectionAsMarkup.html:11 > +This test makes sure that the markup used by print selection > +contains absolute urls and pushed down styles. This test depends > +on layoutTestController.
Sorry, it occurs to me that this text will not be visible because of the redirect. I had meant for the text to be visible when loading the test in a browser (maybe by moving this text to the html file we redirect to).
Tony Chang
Comment 14
2012-02-22 10:18:59 PST
Comment on
attachment 128112
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=128112&action=review
> LayoutTests/http/tests/misc/resources/chromium-selectionAsMarkup.html:21 > + if (sel.indexOf("not selection") != -1) > + errors += "FAIL: non-selection text found\n";
Are these tabs? Please use 4 space indents.
Peter Collingbourne
Comment 15
2012-02-23 17:36:12 PST
Created
attachment 128618
[details]
Patch
WebKit Review Bot
Comment 16
2012-02-24 10:51:27 PST
Comment on
attachment 128618
[details]
Patch Clearing flags on attachment: 128618 Committed
r108821
: <
http://trac.webkit.org/changeset/108821
>
WebKit Review Bot
Comment 17
2012-02-24 10:51:33 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug