gecko-dev/toolkit
Emilio Cobos Álvarez 1288b871bf Bug 1510485 - Properly handle errors in nsFind when returning a range. r=bzbarsky
Bug 1505887 changed the behavior here from content calling into nsFind via
window.find(), by making the SetStart and SetEnd calls here fail instead of
succeed for NAC (like the text in textareas).

This patch makes us handle that error gracefully moving on to the next match,
instead of trying to preserve the previous behavior.

This means that we'll fail to highlight textarea content and such from
window.find, which Chromium does, looks like. Though Chromium doesn't expose
the ranges as selection either. In any case I don't think that this is a very
common thing given bugs like bug 1442466, which this bug fixes.

I haven't found anything close to a spec for what window.find() should do... If
we decide to go with this patch then I'll add a crashtest for this and a test
for bug 1442466 as well. Otherwise I'll add a way to skip the security check in
nsFind somehow for NAC, or relax the security restrictions in SetStart /
SetEnd, I guess.

Differential Revision: https://phabricator.services.mozilla.com/D14013

--HG--
extra : moz-landing-system : lando
2018-12-11 01:06:32 +00:00
..
actors Bug 1511138 - Fix getComputedStyle usage of SelectChild. r=mconley 2018-12-07 14:24:49 -05:00
components Bug 1510485 - Properly handle errors in nsFind when returning a range. r=bzbarsky 2018-12-11 01:06:32 +00:00
content Merge inbound to mozilla-central. a=merge 2018-12-11 00:05:18 +02:00
crashreporter Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
forgetaboutsite Bug 1286798 - Part 16: Adjust ClearDataService for new local storage implementation; r=asuth 2018-11-29 21:48:05 +01:00
library Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
locales Bug 1511454 - Migrate about:plugins to use Fluent for localization r=flod,Gijs,zbraniecki 2018-12-05 16:06:15 +00:00
modules Bug 1512267 - If you set a pres shell resolution, you must scale to it. r=kats,JanH 2018-12-10 19:32:59 +00:00
mozapps Bug 1508782 - Add moz.yaml for bspatch in toolkit/mozapps/update; r=mhowell 2018-12-10 19:07:42 +00:00
pluginproblem Bug 1497940 - Part V, Convert pluginProblem to UA Widget r=smaug 2018-11-22 05:49:54 +00:00
profile Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
recordreplay Bug 1512961 - Reformat recent changes to the Google coding style r=Ehsan 2018-12-10 19:23:16 +00:00
system Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
themes Bug 1511394 - Update buttons according to photon spec. r=dao 2018-12-08 15:35:45 +00:00
xre Bug 469990: Allow command line arguments to be handed off from a new Firefox/Thunderbird process to an existing one when necessary. r=spohl 2018-12-07 09:33:40 -05:00
.eslintrc.js
moz.build
moz.configure Bug 1512914 - Add an --enable-layout-debugger configure option r=froydnj 2018-12-10 15:47:36 +00:00
nss.configure Bug 1492716 - Part 2: Add formatting rule to help text for --{enable,disable,with,without}. r=glandium 2018-10-16 20:28:12 +09:00
toolkit.mozbuild Bug 1508782 - Add moz.yaml for bspatch in toolkit/mozapps/update; r=mhowell 2018-12-10 19:07:42 +00:00