Bug 80065 - Editor's default paragraph separator is not reset when a frame's document is changed
: Editor's default paragraph separator is not reset when a frame's document is ...
Status: RESOLVED FIXED
: WebKit
HTML Editing
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-03-01 16:10 PST by
Modified: 2012-03-02 21:49 PST (History)


Attachments
Patch (5.51 KB, patch)
2012-03-02 17:27 PST, Pablo Flouret
no flags Review Patch | Details | Formatted Diff | Diff
Patch (5.95 KB, patch)
2012-03-02 17:43 PST, Pablo Flouret
no flags Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-03-01 16:10:24 PST
If a page somehow changes the value of Editor::m_shouldStyleWithCSS, Editor::m_defaultParagraphSeparator, etc. those values persist after the page is navigated away/refreshed/etc.
------- Comment #1 From 2012-03-02 14:20:59 PST -------
Could you please prove a test case?
------- Comment #2 From 2012-03-02 15:01:37 PST -------
(In reply to comment #1)
> Could you please prove a test case?

This came up from https://bugs.webkit.org/show_bug.cgi?id=59961#c20 but i see now that i missed Editor::clear(), so i'll just reset the default paragraph separator there.

Patch coming up.
------- Comment #3 From 2012-03-02 17:27:58 PST -------
Created an attachment (id=129983) [details]
Patch
------- Comment #4 From 2012-03-02 17:33:42 PST -------
(From update of attachment 129983 [details])
View in context: https://bugs.webkit.org/attachment.cgi?id=129983&action=review

> LayoutTests/editing/resources/reset-default-values-helper.html:6
> +        location.href = location.href + (location.search == "" ? "?" : "&") + "ohhai";

I don't think adding query string works on all ports. You should probably add one more file. By the way, this file should be in editing/execCommand/resources instead.
------- Comment #5 From 2012-03-02 17:43:41 PST -------
Created an attachment (id=129984) [details]
Patch
------- Comment #6 From 2012-03-02 18:45:33 PST -------
(From update of attachment 129984 [details])
Rejecting attachment 129984 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

Last 500 characters of output:
_by_email
    return self._reviewer_only(self.account_by_email(email))
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/common/config/committers.py", line 632, in account_by_email
    return self._email_to_account_map().get(email.lower()) if email else None
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/common/config/committers.py", line 525, in _email_to_account_map
    assert(email not in self._accounts_by_email)  # We should never have duplicate emails.
AssertionError

Full output: http://queues.webkit.org/results/11795262
------- Comment #7 From 2012-03-02 21:49:10 PST -------
(From update of attachment 129984 [details])
Clearing flags on attachment: 129984

Committed r109653: <http://trac.webkit.org/changeset/109653>
------- Comment #8 From 2012-03-02 21:49:15 PST -------
All reviewed patches have been landed.  Closing bug.