Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
Florian Quèze b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze be4dbae285 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Mike de Boer 6e5d62a6f2 Bug 1316514 - if we attempt to make the 'Highlight All' toggle a global setting, then we need to set the pref when toggled. r=Gijs
What you see first is the removal of the line `this._highlightAll = aHighlight;`, which is repeated in the `_setHighlightAll` method.
This line was put here initially to make the test_findbar_events.xul test pass but in fact makes it so that the pref is never set in `_setHighlightAll`!
In other words, we never actually persisted the 'Highlight All' state properly.
Reading further: the `_dispatchFindEvent` attaches some findbar state flags to the event details, including the value of `_highlightAll`.
Even though none of our consumers use it currently (haven't checked if TB does, though), you can cancel further execution of highlighting all ranges.
Since the `_setHighlightAll` doesn't do that kind of processing, but merely makes sure the internal state is up to snuff, is persisted properly and the buttons are updated, I moved it up to be invoked before dispatching the event.

MozReview-Commit-ID: 4BBy4FR1r5c

--HG--
extra : rebase_source : 204e77aaef3cd55886daeb2e0fdef84da1159c68
2017-01-13 17:27:18 +01:00
Jared Wein ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher 0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Mark Banner 4f94e4bd68 Bug 1322343 - Enable no-unused-vars in the local scope in toolkit/.eslintrc.js. r=mossop
MozReview-Commit-ID: CiIsUjQzp4D

--HG--
extra : rebase_source : 1b98e88673625a52ef82c1fad5d56aec3e2e8e80
2016-11-09 22:06:32 +00:00
Dave Townsend c5bb304fd9 Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm

--HG--
extra : rebase_source : 4073cebbef1694393efe312aaafbdb803adbd304
2016-11-11 15:22:34 -08:00
Mike de Boer 05f70d10ef Bug 1303008 - refactor Fennec Finder.jsm integration to always show the correct match count results in the findbar. r=nalexander
MozReview-Commit-ID: KZIstsbHAyT

--HG--
extra : rebase_source : 24972d38daa947d62410b43d14f0da6c7662e5da
2016-10-10 11:53:25 +02:00
Mike de Boer 7b430eae7d Bug 1279707 - when the location changes, we need to be more thorough in clearing the state variables than we are now to make sure we start fresh in new documents. r=jaws
MozReview-Commit-ID: KkeSKt7XVAc

--HG--
extra : rebase_source : ce2fd1fc3b41193e853a9ba39be06e86882c06c9
2016-09-15 17:11:18 +02:00
Mike de Boer ef97f74f53 Bug 1283042 - add a test for highlighting XML documents; needed to fix up highlightFinished notifications. r=jaws
MozReview-Commit-ID: HKw51diGOBm
2016-09-12 18:46:18 +02:00
Mike de Boer f52eb8430c Bug 1290914 - move the matches count and highlight-all request from the findbar binding to the JS module in the content process, so it's closer to the metal. r=jaws
MozReview-Commit-ID: INYobXmrVj5
2016-09-08 22:38:55 +02:00
Mike de Boer d826244682 Bug 1295759 - make sure selected ranges in iframes are cleared when the findbar is hidden as well. Adds a test to guard against regressions. r=jaws
MozReview-Commit-ID: 5rudNSNK8GK

--HG--
extra : rebase_source : 03dc19bc9ba83f7601d4d57d2bd9b78d312fda1b
2016-08-29 16:22:29 +02:00
Mike de Boer 56661a22a9 Bug 1294392 - consolidate the highlight and counter timers into one iterator timer. r=jaws
This introduces a new NLP (Natural Language Processing) module with only one
method: 'levenstein'. We're using it to allow the highlighter to keep running
when the it starts the iterator with a word that's one edit distance behind the
value in the findField.

MozReview-Commit-ID: K8oeiXoiLUe
2016-08-25 20:11:44 +02:00
Mike de Boer 8a56860e70 Bug 1282070 - repaint the modal highlight mask when the page resizes or changes size due to added/ removed content. r=jaws
MozReview-Commit-ID: 1j0C0BUfT8r
2016-08-19 17:18:41 +02:00
Jared Wein e6276ea7f5 Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe
MozReview-Commit-ID: RCSDEvvk2I
2016-08-16 15:44:15 -04:00
Wes Kocher e9556c03b7 Backed out changeset af4cc6c04573 (bug 1282070) for failures in test_bug263683.xul CLOSED TREE 2016-08-16 11:58:33 -07:00
Mike de Boer f4c829a76c Bug 1282070 - repaint the modal highlight mask when the page resizes or changes size due to added/ removed content. r=jaws
MozReview-Commit-ID: JrTOarWMEQQ
2016-08-16 18:01:19 +02:00
Sebastian Hengst 8505f067f2 Backed out changeset bc160abe215b (bug 1282070) for docshell leakage in browser_visibleFindSelection.js. r=backout 2016-08-16 16:05:45 +02:00
Mike de Boer 010418133a Bug 1282070 - repaint the modal highlight mask when the page resizes or changes size due to added/ removed content. r=jaws
MozReview-Commit-ID: JKzUehP4pyP
2016-08-16 12:16:29 +02:00
Mike de Boer e557b7eff0 Bug 1294644 - prevent drawing the rectangles all too often when modal highlighting is off and make sure to restore the outline of found links and the highlight color of the currentle highlighted occurrence. r=jaws
Many thanks to Tooru Fujisawa [:arai] for helping write this patch and testing it.

MozReview-Commit-ID: BxAd3WdqUXU
2016-08-16 11:25:56 +02:00
Mike de Boer 7c49e1e69b Bug 1280876 - don't take screenshots of pages that have the findbar open. r=jaws,mconley
MozReview-Commit-ID: Dmz0MaukNVq

--HG--
extra : rebase_source : dc359e5bc31d86fa01caf6c8d9d4fc359251d9f3
2016-08-10 11:23:47 +02:00
Mike de Boer ebc9f1764d Bug 1290842 - reduce the amount calls to the highlighter upon the first find action and improve the behavior when modal highlighting is not enabled now that we have a FinderHighlighter class we can use. r=jaws
MozReview-Commit-ID: K01dpqp8LSf
2016-08-02 10:40:21 +02:00
Carsten "Tomcat" Book 1e0260eddf Merge mozilla-central to fx-team 2016-07-28 17:44:58 +02:00
Mike de Boer 33aa207132 Bug 1281421 - Merge the find counter and highlighter iterators into a FinderIterator singleton. r=jaws
MozReview-Commit-ID: 9fhOKWIkOXN

--HG--
extra : rebase_source : 7a2bc23383b99b0a13ef49121f168bd03399b4a9
2016-07-28 12:34:13 +02:00
Carsten "Tomcat" Book bd055a6272 Merge mozilla-central to fx-team 2016-07-27 16:40:43 +02:00
Mike de Boer 938576136a Bug 1279684 - make sure that toggling 'Highlight All' also hides the found occurrences from the mask. r=jaws
MozReview-Commit-ID: 2AmSwNgE1if
2016-07-27 16:37:26 +02:00
Jared Wein 35fa19bc95 Bug 1285464 - Keep focus handling in the chrome process so focus will move back to the content out of the typeahead findbar but not change which chrome window has focus. r=mikedeboer
MozReview-Commit-ID: Ga8QFFgX0ZZ

--HG--
extra : rebase_source : 51053e8f539e7d358bd16c36b30bb72fef2ecaa1
2016-07-26 14:53:32 -04:00
Ray Lin 4985f03251 Bug 1198279 - Clear all highlighted matches when find bar closed. r=mikedeboer
MozReview-Commit-ID: C4wiWWKAMpa

--HG--
extra : rebase_source : 157d3ac570fa75b3ba61686eab1cc4269e1ada76
2016-07-05 15:59:25 +08:00
Mike de Boer fe68c53f4b Bug 269442 - whole word matching support for nsFind. r=ehsan,dao. ui-r=shorlander
MozReview-Commit-ID: KIDWHyjOSYL
2016-06-28 15:13:53 +02:00
Mike de Boer 2cdbcb870d Bug 384458 - part 4: implement modal highlighting using the AnonymousContent API and SVG masks. r=jaws 2016-06-09 13:30:49 +02:00
Mike de Boer 86c75b7400 Bug 384458 - part 3: move the highlighting code to its own module. r=jaws 2016-06-09 13:30:48 +02:00
Wes Kocher 0adc8ded6e Backed out 6 changesets (bug 384458) for frequent browser_FinderHighlighter.js failures
Backed out changeset ded915ec401f (bug 384458)
Backed out changeset 63ec66da50fa (bug 384458)
Backed out changeset ae71396d3be0 (bug 384458)
Backed out changeset 3b025cbfbe3c (bug 384458)
Backed out changeset 091c5465acf7 (bug 384458)
Backed out changeset 5eabde153def (bug 384458)
2016-06-08 14:53:57 -07:00
Mike de Boer a479893c6a Bug 384458 - part 4: implement modal highlighting using the AnonymousContent API and SVG masks. r=jaws 2016-06-08 19:54:10 +02:00
Mike de Boer 33e61dede1 Bug 384458 - part 3: move the highlighting code to its own module. r=jaws 2016-06-08 19:54:08 +02:00
Mike de Boer 18ea004233 Bug 1056235 - deal with surrogate pairs properly when retrieving the currently selected text for prefill in the findbar. r=masayuki 2016-06-06 12:56:55 +02:00
Dave Townsend 6e44ebad84 Bug 1257246: Update toolkit for eslint 2. r=Gijs
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: KHYdAkRvhVr

--HG--
extra : rebase_source : 720cc9d864175248508146a7f4704b4bf3f02439
extra : histedit_source : 6cc0ecbf21a571e1a41d517b67512a3452fac19a
2016-04-05 11:33:48 -07:00
Blake Kaplan 99310215c0 Bug 1174036 - Handle dynamically-removed textareas gracefully. r=mikedeboer r=ehsan
Also, flush layout when starting a find in order to avoid racing with
textarea-hiding notifications and maintain JS type correctness when objects
are passed over IPC.
2016-03-28 11:12:31 -07:00
Jared Wein 10738b2e3f Bug 1064580 - Add definitions for onCurrentSelection to the listeners since RemoteFinder.jsm expects them to be present. Also add an error check in Finder.jsm for empty selections. r=evilpie
MozReview-Commit-ID: E6lgH8OZhaH

--HG--
extra : rebase_source : 2e646f82a0f851775e2dc2893f170d58db0979ae
2016-03-07 16:37:34 -05:00
Dave Townsend e496a11771 Bug 1245649: Turn on no-extra-semi. r=markh
--HG--
extra : commitid : HReQFPDOA6x
extra : rebase_source : 303a92f511c3c9dd2d26135975d4dc7c85e823b3
2016-02-03 17:27:36 -08:00
Paul Rouget 53184296fe Bug 1163961 - Browser API: Page search. r=kchen, r=ehsan 2015-06-09 20:04:00 -04:00
Birunthan Mohanathas 3ffa8d565d Bug 1166840 - Remove unused document argument in uses of nsIClipboardHelper.copyString. r=ehsan 2015-05-21 21:49:30 +01:00
Gijs Kruitbosch 6d631e29db Bug 1133981 - e10s-ify findbar FAYT key handling, r=mconley
--HG--
extra : rebase_source : 31f07c93b1f5116a5bb952b1c19da003941ad762
extra : amend_source : 58e1db73a93835b0d80326e34ef7056633a7aaa0
2015-03-11 20:22:09 +00:00
Blake Kaplan 3d95b83bc4 Bug 1055508 - Make the findbar respect the search clipboard as well as prefillwithselection in e10s. r=mikedeboer 2015-01-16 15:11:00 +01:00
Tomasz Kołodziejski 4c14e3120b Bug 1070923 - Fix intermittent test_bug451286.xul by waiting for the highlight toggle to finish. r=mikedeboer
--HG--
extra : rebase_source : 109dcc17a75333f1715e48432893e216e73838fc
2014-09-26 10:49:00 -04:00
Tomasz Kołodziejski 63556e7c60 Bug 429732 - Make Finder.jsm iterate over matches asynchronously in small batches so it does not block the UI thread. r=mikedeboer 2014-09-18 10:23:00 +02:00
Mike Conley 501c84401a Bug 927424 - Allow findbar binding to cancel content focusing when using RemoteFinder in an e10s window. r=evilpie.
--HG--
extra : source : 2f6420722723035b1ed11e5de8e1829e827552fa
2014-09-04 15:17:47 -04:00
Tomasz Kołodziejski 4fd7332f4a Bug 429732 - speed up highlighting by optimizing _getEditableNode. r=ehsan 2014-08-29 11:14:00 +02:00
Adam Dane [:hobophobe] eac4337e6e Bug 1008450 - Bail on _findIterator when we lack a body node. r=mikedeboer 2014-05-14 15:16:03 -05:00
Mike de Boer 6c4d29c0e6 Bug 257061: adding a counter of found matches to the find in page bar. r=Unfocused 2014-05-01 13:01:14 +02:00