Commit Graph

12 Commits

Author SHA1 Message Date
trav90 f883930d60 Use nsRefPtr in nsEditor.cpp
Followup to 01b322e
2018-07-25 07:09:15 +08:00
Pale Moon 0ab115fe75 Hold strong references to the editor's transaction manager. 2018-07-25 07:09:07 +08:00
janekptacijarabaci 3e466656b8 HTML - support for elements: <details> and <summary> (basic) 2018-07-25 07:04:13 +08:00
Pale Moon 041fff53f9 Re-implement Pale Moon spell checker dictionary logic.
We try to derive the dictionary to use based on the following priorities:
1) Content preference: the language the user set for the site before.
2) The value of "spellchecker.dictionary.override" which reflects a
   global choice of language explicitly set by the user.
3) Language set by the website, or any other dictionary that partly matches that.
   Eg. if the website is "en-GB", a user who only has "en-US" will get that.
   If the website is generic "en", the user will get one of the "en-*" installed,
   pretty much at random.
4) The user's locale
5) Leave the current dictionary set.
6) The content of the "LANG" environment variable (if set)
7) The first spell check dictionary installed.

Stop using the (broken) spellchecker.dictionary "holding pref"
2018-07-25 06:59:41 +08:00
Pale Moon f3a4e27ff8 Update clipboard command controllers to match cut/copy action spec. 2018-07-25 06:23:16 +08:00
Pale Moon 075def3e81 Enable clipboard menu commands correctly in (X)HTML documents.
Ref: bugs 1159490 and 1170531
2018-07-25 06:23:13 +08:00
Pale Moon 1a559619eb Bug 1162952 - Return true from document.queryCommandEnabled('cut'/'copy') when in privileged or user-initiated code. 2018-07-25 06:23:08 +08:00
Pale Moon 376d42daca Limit editor's editability to the correct subtree. 2018-07-25 06:22:32 +08:00
Olli Pettay 5e9bcb348a Ensure expected DOM tree operations when calling insertBefore. 2018-07-25 01:29:29 +08:00
wolfbeast e5994f3a7c Prevent leaking of editor-created element objects. 2018-07-24 23:17:09 +08:00
wolfbeast 5ee6187aad Prep tree for forward-porting Goanna, stage 1 2018-07-24 23:10:50 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00