Summary: | dump-as-markup should work in Firefox | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||
Component: | New Bugs | Assignee: | Adam Barth <abarth> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | eric, ojan | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Adam Barth
2010-08-05 21:00:45 PDT
Created attachment 63687 [details]
Patch
Seems ojan is your man here. Comment on attachment 63687 [details] Patch > +++ b/LayoutTests/ChangeLog > + Apparently Firefox lacks this API. I think something else is going wrong here. document.body.ownerDocument.defaultView.getSelection() returns a selection object in Firefox. Does this fail for all dump-as-markup tests? Does it throw an exception? I ran into the problem trying to run runner.html in Firefox. That dumps all kinds of crazy DOMs. Comment on attachment 63687 [details] Patch You learn something new everyday. :) Filed https://bugs.webkit.org/show_bug.cgi?id=43655 for the difference in behavior. Mind just adding a comment to _getSelectionFromNode about the case where it returns null? i.e. when the selection is inside a display:none iframe in Firefox. Committed r64892: <http://trac.webkit.org/changeset/64892> |