Drop scriptable API which are used only by BlueGriffon
Categories
(Core :: DOM: Editor, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 2 open bugs)
Details
Attachments
(8 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
BlueGriffon refers mozilla-centrall at April 27 2017.
https://github.com/therealglazou/bluegriffon/blob/master/config/mozilla_central_revision.txt
https://hg.mozilla.org/mozilla-central/rev/c0d35b1c5ab5fa9bb2f5661aa0454a1ce31b50e0
And there is this issue:
https://github.com/therealglazou/bluegriffon/issues/99
but nobody replied to say "no".
Perhaps, we could delete scriptable APIs which is used only by BlueGriffon now.
The list of APIs:
nsIEditor.doTransaction()
nsIEditor.addEditorObserver()
nsIHTMLAbsPosEditor.refreshGrabber()
nsIHTMLEditor.getInlineProperty()
nsIHTMLEditor.pasteNoFormatting()
nsIHTMLEditor.setCaretAfterElement()
nsIHTMLInlineTableEditor.refreshInlineTableEditingUI()
nsIHTMLObjectResizer.refreshResizers()
Especially, the first 2 methods are too bad for mozilla-central.
glazou: Do you have any plan to keep updating BlueGriffon?
Comment 1•3 years ago
|
||
pasteNoFormatting() is used in Thunderbird as well, and quite handy so you don't get junk into the compose window.
Comment 2•3 years ago
|
||
Ah, I see, the actual function isn't called.
Assignee | ||
Comment 3•3 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #2)
Ah, I see, the actual function isn't called.
Yes, using cmd_*
is fine for now.
Assignee | ||
Comment 4•3 years ago
|
||
(And personally, I'd like to merge all interfaces rerated to nsIHTMLEditor
in the future. It reduces the footprint and cuts QI cost in chrome script.)
Assignee | ||
Comment 5•3 years ago
|
||
No reply from BlueGriffon side. Let's get rid of them for now.
Assignee | ||
Comment 6•3 years ago
|
||
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D118797
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D118798
Assignee | ||
Comment 9•3 years ago
|
||
Only test_bug1140105.html
is its user, but it can be replaced with
getInlinePropertyWithAttrValue()
since they do exactly same things:
https://searchfox.org/mozilla-central/rev/fc95c6ad297d9d257f05599d01741503f3f57326/editor/libeditor/HTMLStyleEditor.cpp#1685-1687,1719-1721
Depends on D118799
Assignee | ||
Comment 10•3 years ago
|
||
Depends on D118800
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D118801
Assignee | ||
Comment 12•3 years ago
|
||
Depends on D118802
Assignee | ||
Comment 13•3 years ago
|
||
Depends on D118803
Comment 14•3 years ago
|
||
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/302135e6f782 part 1: Get rid of `nsIHTMLInlineTableEditor.refreshInlineTableEditingUI()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/504a1b28770c part 2: Get rid of `nsIHTMLAbsPosEditor.refreshGrabber()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/88fb5db3ed3b part 3: Get rid of `nsIHTMLObjectResizer.refreshResizers()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/e7c97cafeec0 part 4: Get rid of `nsIHTMLEditor.getInlineProperty()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/91882492033a part 5: Get rid of `nsIHTMLEditor.pasteNoFormatting()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/10c27ce19e42 part 6: Get rid of `nsIHTMLEditor.setCaretAfterElement()` because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/0cfa164a81a1 part 7: Get rid of `nsIEditor::AddEditorObserver()` and `nsIEditorObserver` interface because of unused r=m_kato https://hg.mozilla.org/integration/autoland/rev/2689403bd0d2 part 8: Get rid of `nsIEditor.doTransaction()` because of unused r=m_kato
Comment 15•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/302135e6f782
https://hg.mozilla.org/mozilla-central/rev/504a1b28770c
https://hg.mozilla.org/mozilla-central/rev/88fb5db3ed3b
https://hg.mozilla.org/mozilla-central/rev/e7c97cafeec0
https://hg.mozilla.org/mozilla-central/rev/91882492033a
https://hg.mozilla.org/mozilla-central/rev/10c27ce19e42
https://hg.mozilla.org/mozilla-central/rev/0cfa164a81a1
https://hg.mozilla.org/mozilla-central/rev/2689403bd0d2
Assignee | ||
Updated•3 years ago
|
Description
•