Closed
Bug 1485063
Opened 6 years ago
Closed 6 years ago
Move AccessibleCaret preferences to StaticPrefList.h
Categories
(Core :: DOM: Selection, defect, P4)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
46 bytes,
text/x-phabricator-request
|
MatsPalmgren_bugz
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
MatsPalmgren_bugz
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
MatsPalmgren_bugz
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
MatsPalmgren_bugz
:
review+
|
Details | Review |
All the AccessibleCaret preferences providing default values at [1] can be moved to the layout section in StaticPrefList.h to avoid manually defining Add*VarCache in [2] and [3].
[1] https://searchfox.org/mozilla-central/rev/71ef4447db179639be9eff4471f32a95423962d7/modules/libpref/init/all.js#5551-5598
[2] https://searchfox.org/mozilla-central/rev/71ef4447db179639be9eff4471f32a95423962d7/layout/base/AccessibleCaret.cpp#84-90
[3] https://searchfox.org/mozilla-central/rev/71ef4447db179639be9eff4471f32a95423962d7/layout/base/AccessibleCaretManager.cpp#103-121
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
"layers.async-pan-zoom.enabled" has been enabled for all platforms for a
long time. I reword the comment to avoid confusion.
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Comment 5•6 years ago
|
||
Comment on attachment 9007906 [details]
Bug 1485063 Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h
Mats Palmgren (:mats) has approved the revision.
Attachment #9007906 -
Flags: review+
Comment 6•6 years ago
|
||
Comment on attachment 9007908 [details]
Bug 1485063 Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h
Mats Palmgren (:mats) has approved the revision.
Attachment #9007908 -
Flags: review+
Comment 7•6 years ago
|
||
Comment on attachment 9007909 [details]
Bug 1485063 Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h
Mats Palmgren (:mats) has approved the revision.
Attachment #9007909 -
Flags: review+
Comment 8•6 years ago
|
||
Comment on attachment 9007911 [details]
Bug 1485063 Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h
Mats Palmgren (:mats) has approved the revision.
Attachment #9007911 -
Flags: review+
Comment 9•6 years ago
|
||
Hmm, I wonder why we started using snake_case for StaticPrefs names in the first place...
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #9)
> Hmm, I wonder why we started using snake_case for StaticPrefs names in the
> first place...
Snake_case is recommanded in the document [1], and so far layout prefs has been following that. Media has different opinions to use CamelCase though. See the discussion in bug 1448222 comment 5 and bug 1448222 comment 11.
[1] https://searchfox.org/mozilla-central/rev/d4ef4e9747133aa2914aca2a15cf9df1e42a6aa0/modules/libpref/init/StaticPrefList.h#61-66
Assignee | ||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b4e402e76ba6
Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h r=mats
https://hg.mozilla.org/integration/autoland/rev/f42f853c8aa7
Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h. r=mats
https://hg.mozilla.org/integration/autoland/rev/1edf90819cb2
Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h. r=mats
https://hg.mozilla.org/integration/autoland/rev/fdd2f4fc6d5a
Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h. r=mats
Comment 13•6 years ago
|
||
(In reply to Ting-Yu Lin [:TYLin] (UTC-7) from comment #10)
> Snake_case is recommanded in the document [1], and so far layout prefs has
> been following that. Media has different opinions to use CamelCase though.
> See the discussion in bug 1448222 comment 5 and bug 1448222 comment 11.
Thanks, I filed bug 1490161.
Comment 14•6 years ago
|
||
Backed out 4 changesets (bug 1485063) for failing test-oop-extensions/test_ext_webrequest_frameId.html
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=fdd2f4fc6d5a0fc0686fa4b20e09c4b0e10db134&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified
failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified&fromchange=3dbc855f18d5ea8cee4af7fccca14f891b8b3816&selectedJob=198544392&filter-searchStr=Linux+x64+QuantumRender+debug+Mochitests+with+e10s+test-linux64-qr%2Fdebug-mochitest-e10s-15+M-e10s%2815%29
backout: https://hg.mozilla.org/integration/autoland/rev/91109fedb3b07acf96bc93229b18fdd6a37f35e3
Flags: needinfo?(aethanyc)
Comment 15•6 years ago
|
||
Additional retriggers proved this was intermittent: https://tinyurl.com/y7eo3nkg
Relanding the patches.
Ting-Yu we apologize for this.
Assignee | ||
Comment 16•6 years ago
|
||
Andreea, no worries. Thank you for keeping the tree green.
BTW, I don't see a push log for relanding yet. I'll reland my patches to autoland.
Flags: needinfo?(aethanyc)
Assignee | ||
Comment 17•6 years ago
|
||
Well, lando seems to have bugs to reland patch series. Filed bug 1490407. I'll reland them to inbound later.
Comment 18•6 years ago
|
||
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d43869851540
Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h r=mats
https://hg.mozilla.org/integration/mozilla-inbound/rev/99456cff7313
Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h. r=mats
https://hg.mozilla.org/integration/mozilla-inbound/rev/8f53e771094d
Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h. r=mats
https://hg.mozilla.org/integration/mozilla-inbound/rev/8ad3af468d26
Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h. r=mats
Comment 19•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d43869851540
https://hg.mozilla.org/mozilla-central/rev/99456cff7313
https://hg.mozilla.org/mozilla-central/rev/8f53e771094d
https://hg.mozilla.org/mozilla-central/rev/8ad3af468d26
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 20•6 years ago
|
||
backout |
Backed out for causing bug 1490818.
https://hg.mozilla.org/mozilla-central/rev/2603d8004c78b79c8c8c6f789d752a11700cf841
Status: RESOLVED → REOPENED
status-firefox64:
fixed → ---
Resolution: FIXED → ---
Target Milestone: mozilla64 → ---
Assignee | ||
Comment 21•6 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #20)
> Backed out for causing bug 1490818.
> https://hg.mozilla.org/mozilla-central/rev/
> 2603d8004c78b79c8c8c6f789d752a11700cf841
I was flipping the pref "layout.accessiblecaret.enabled_on_touch" to false in Part 3. That's why the selection won't work in bug 1490818.
Assignee | ||
Comment 22•6 years ago
|
||
I'll correct Part 3, and land those patches again.
Updated•6 years ago
|
Attachment #9007908 -
Attachment description: Bug 1485063 Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h. → Bug 1485063 Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h
Updated•6 years ago
|
Attachment #9007909 -
Attachment description: Bug 1485063 Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h. → Bug 1485063 Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h
Updated•6 years ago
|
Attachment #9007911 -
Attachment description: Bug 1485063 Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h. → Bug 1485063 Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h
Comment 23•6 years ago
|
||
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9a90cc08d56d
Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h r=mats
https://hg.mozilla.org/integration/autoland/rev/f1426745e933
Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h r=mats
https://hg.mozilla.org/integration/autoland/rev/253db3bbd64f
Part 3 - Move preferences which enable AccessibleCaret to StaticPrefList.h r=mats
https://hg.mozilla.org/integration/autoland/rev/df8cf3e01392
Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h r=mats
Comment 24•6 years ago
|
||
(In reply to Ting-Yu Lin [:TYLin] (UTC-7) from comment #21)
> I was flipping the pref "layout.accessiblecaret.enabled_on_touch" to false
> in Part 3.
Please try to backtrack your steps to figure out how that happened
so that you can avoid it in the future. It's a bit scary if
unintentional code changes happens after the review like this.
Assignee | ||
Comment 25•6 years ago
|
||
I make the mistake from the beginning when moving the prefs, not after the patches were reviewed. Anyway, it's my bad for not testing on a real Android device. Also filed Bug 1493317 for further investigation.
Comment 26•6 years ago
|
||
Ah, my bad for not catching that in the review then.
Comment 27•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9a90cc08d56d
https://hg.mozilla.org/mozilla-central/rev/f1426745e933
https://hg.mozilla.org/mozilla-central/rev/253db3bbd64f
https://hg.mozilla.org/mozilla-central/rev/df8cf3e01392
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Blocks: 1448219
Summary: Move AccessibleCaret prefereneces to StaticPrefList.h → Move AccessibleCaret preferences to StaticPrefList.h
You need to log in
before you can comment on or make changes to this bug.
Description
•