Closed
Bug 1490882
Opened 7 years ago
Closed 7 years ago
The last test of test_middle_click_paste.html is always ignored
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
copyHTMLContent always fails to copy contents in <iframe>. It shows the <iframe> but does not wait its reflow so that it fails to retrieve Selection for the contentWindow. Then, SimpleTest.waitForClipboard() rejects but copyHTMLContent just call SimpleTest.finish(). Therefore, the failure hasn't been recorded.
| Assignee | ||
Comment 1•7 years ago
|
||
When I added some tests into test_middle_click_paste.html, I realized that
SimpleTest.waitForClipboard() in copyHTMLContent() fails to copy the
HTML fragment to clipboard and just quit the test. Therefore, only the
last tests are ignored always.
The reason is, iframe.contentDocument.getSelection() returns nullptr
since the frame becomes visible immediately before accessing the Selection.
This patch makes flushing the pending layout with scrollTop. This makes
getSelection() return non-null.
However, unfortunately, only on Linux, it fails to copy the content. I'm
still not sure the reason. This patch just avoids running the last part
only on Linux.
Comment 2•7 years ago
|
||
Comment on attachment 9008633 [details]
Bug 1490882 - Fix a bug of test_middle_click_paste.html
Makoto Kato [:m_kato] has approved the revision.
Attachment #9008633 -
Flags: review+
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/70ae129e43a4
Fix a bug of test_middle_click_paste.html r=m_kato
Comment 4•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•