dump-as-markup should work in Firefox
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>