Commit Graph

64 Commits

Author SHA1 Message Date
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
Ed Morley
b17e01b56a Backed out changeset 8d131b6770d7 (bug 257061) for exceptions in findbar.xml 2014-05-01 11:45:32 +01:00
Mike de Boer
3b54ae345d Bug 257061: adding a counter of found matches to the find in page bar. r=Unfocused. 2014-05-01 11:30:26 +02:00
Mike de Boer
39863567a7 Bug 326743: support the find clipboard in the find toolbar. r=Unfocused 2014-02-28 16:07:32 +01:00
Mike de Boer
729e51e159 Bug 963925: do not store searchString upon Highlight. r=Unfocused 2014-02-17 15:43:01 +01:00
Phil Ringnalda
2ff6e6f32a Back out 024e6835e6ea:bece94ce2310 (bug 326743) for frequent 10.6 debug failures in browser_bug537013.js 2014-02-14 23:58:49 -08:00
Mike de Boer
0e98650667 Bug 326743: support the find clipboard in the find toolbar. r=Unfocused 2014-02-14 14:04:21 +01:00
Mike de Boer
f4e68f74e8 Backed out 5 changesets (bug 326743)
Backed out changeset 55fba7bccaaf (bug 326743)
Backed out changeset f4ab79254dfb (bug 326743)
Backed out changeset c8151192e447 (bug 326743)
Backed out changeset 57ceb72568c6 (bug 326743)
Backed out changeset 3081b9770c33 (bug 326743)
2014-02-14 12:55:13 +01:00
Mike de Boer
43cfcfaefb Bug 326743: support the find clipboard in the find toolbar. r=Unfocused 2014-02-14 11:38:22 +01:00