Commit graph

96 commits

Author SHA1 Message Date
Brindusan Cristian
31f0c21cca Backed out changeset 1575904619b5 (bug 1506547) for mochitest failures on test_reftests_with_caret.html. 2018-11-26 03:03:14 +02:00
Emilio Cobos Álvarez
b74c31e4d9 Bug 1506547 - Align user-select behavior more with other UAs. r=mats
There's a few subtle behavior changes here, which I'll try to break down in the
commit message.

The biggest one is the EditableDescendantCount stuff going away. This
was added in bug 1181130, to prevent clicking on the non-editable div from
selecting the editable div inside. This is problematic for multiple reasons:

 * First, I don't think non-editable regions of an editable element should
   be user-select: all.

 * Second, it just doesn't work in Shadow DOM (the editable descendant count is
   not kept up-to-date when not in the uncomposed doc), so nested
   contenteditables behave differently inside vs. outside a Shadow Tree.

 * Third, I think it's user hostile to just entirely disable selection if you
   have a contenteditable descendant as a child of a user-select: all thing.

   WebKit behaves like this patch in the following test-case (though not Blink):

     https://crisal.io/tmp/user-select-all-contenteditable-descendant.html

   Edge doesn't seem to support user-select: all at all (no pun intended).

   But we don't allow to select anything at all which looks wrong.

 * Fourth, it's not tested at all (which explains how we broke it in Shadow DOM
   and not even notice...).

In any case I've verified that this doesn't regress the editor from that bug. If
this regresses anything we can fix it as outlined in the first bullet point
above, which should also make us more compatible with other UAs in that
test-case.

The other change is `all` not overriding everything else. So, something like:

  <div style="-webkit-user-select: all">All <div style="-webkit-user-select: none">None</div></div>

Totally ignores the -webkit-user-select: none declaration in Firefox before this
change. This doesn't match any other UA nor the spec, and this patch aligns us
with WebKit / Blink.

This in turn makes us not need -moz-text anymore, whose only purpose was to
avoid this.

This also fixes a variety of bugs uncovered by the previous changes, like the
SetIgnoreUserModify(false) call in editor being completely useless, since
presShell->SetCaretEnabled ended in nsCaret::SetVisible, which overrode it.

This in turn uncovered even more bugs, from bugs in the caret painting code,
like not checking -moz-user-modify on the right frame if you're the last frame
of a line, to even funnier bits where before this patch you show the caret but
can't write at all...

In any case, the new setup I came up with is that when you're editing (the
selection is focused on an editable node) moving the caret forces it to end up
in an editable node, thus jumping over non-editable ones.

This has the nice effect of not completely disabling selection of
-moz-user-select: all elements that have editable descendants (which was a very
ad-hoc hack for bug 1181130, and somewhat broken per the above), and also
not needing the -moz-user-select: all for non-editable bits in contenteditable.css
at all.

This also fixes issues with br-skipping like not being able to insert content in
the following test-case:

  <div contenteditable="true"><span contenteditable="false">xyz </span><br>editable</div>

If you start moving to the left from the second line, for example.

I think this yields way better behavior in all the relevant test-cases from bug
1181130 / bug 1109968 / bug 1132768, shouldn't cause any regression, and the
complexity is significantly reduced in some places.

There's still some other broken bits that this patch doesn't fix, but I'll file
follow-ups for those.

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

--HG--
extra : moz-landing-system : lando
2018-11-25 20:01:07 +00:00
Emilio Cobos Álvarez
cbc11eb6a3 Bug 1492958 - Allow user-select: -moz-text on user-agent stylesheets only. r=mats
It's only used in contenteditable.css, and same usage in comm-central. That
sheet is loaded as a ua sheet so let's restrict it to that. No relevant
external usage either. This value was introduced in bug 1181130.

Differential Revision: https://phabricator.services.mozilla.com/D11584
2018-11-12 13:47:44 +01:00
Tim Nguyen
25e0092647 Bug 1485830 - Set custom odd tree row colors in common.css on all platforms. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D5963

--HG--
extra : moz-landing-system : lando
2018-09-18 13:22:49 +00:00
Tim Nguyen
cd0933861f Bug 1441837 - Remove unused --in-content-category-text-active variable. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D5966

--HG--
extra : moz-landing-system : lando
2018-09-16 05:23:03 +00:00
Daisuke Akatsuka
cb969cae82 Bug 1463621 - Part 1: Remove main codes of old animation inspector. r=pbro,r=Gijs
In this patch, remove main codes of old animation inspector such the
inspector/animation-old directory. Additionally, remove the codes that had been
referring the old codes.

Also, remove a CSS variable which no longer reffered in inspector from
devtools/client/themes/breadcrumbs.css, because this caused a test failure occur
from browser/base/content/test/static/browser_parsable_css.js. In this patch,
remove animationinspector.css as well. The reason why the error was not occurred
so far is that it had been interpreted that animationinspector.css refer to the
variable.

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

--HG--
extra : rebase_source : 4a63e28f6087b9cf42cf8f02b84ed62cfe905809
2018-09-10 12:31:44 +09:00
Bogdan Tara
8022e747ad Merge autoland to mozilla-central. a=merge 2018-09-07 06:35:30 +03:00
Xidorn Quan
fae150af6e Bug 1488657 - Have anonymous element in text input inherit scrollbar-width from the element. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D5101

--HG--
extra : moz-landing-system : lando
2018-09-06 23:12:44 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Julian Descottes
9af8caced5 Bug 1441878 - Remove unused css variable theme-codemirror-gutter-background;r=ntim
This variable is no longer used anywhere and can be removed

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

--HG--
extra : moz-landing-system : lando
2018-08-27 09:46:28 +00:00
Jason Laster
cd0d54a731 Bug 1488917 - Update Debugger Frontend v87. r=dwalsh 2018-09-06 13:03:09 -04:00
Gabriel Luong
d0fbf8a9e5 Bug 1467572 - Part 19: Remove responsive-ua.css. r=rcaliman 2018-08-15 17:27:58 -04:00
Csoregi Natalia
e67c081821 Backed out 19 changesets (bug 1467572) for devtools failures on browser_net_telemetry_throttle_changed.js. CLOSED TREE
Backed out changeset 39123899178c (bug 1467572)
Backed out changeset 62fcbe25665c (bug 1467572)
Backed out changeset 5ef6c1c42747 (bug 1467572)
Backed out changeset e295be61276e (bug 1467572)
Backed out changeset 41d85a6f8a2a (bug 1467572)
Backed out changeset 4e6b95a6c506 (bug 1467572)
Backed out changeset 36d459a24020 (bug 1467572)
Backed out changeset abb52c2c68ab (bug 1467572)
Backed out changeset 470b9ce4ba0f (bug 1467572)
Backed out changeset 37609995dc8f (bug 1467572)
Backed out changeset 636bf5ce96f7 (bug 1467572)
Backed out changeset 5880a55d2ee8 (bug 1467572)
Backed out changeset 0f19f84bb2ed (bug 1467572)
Backed out changeset e83526778ccd (bug 1467572)
Backed out changeset c42448ca6e4a (bug 1467572)
Backed out changeset 934fb24dad26 (bug 1467572)
Backed out changeset 6102b9ef805b (bug 1467572)
Backed out changeset 7aaea1245d27 (bug 1467572)
Backed out changeset 7793f8a2b14f (bug 1467572)

--HG--
rename : devtools/client/shared/components/menu/utils.js => devtools/client/netmonitor/src/utils/menu.js
rename : devtools/client/responsive.html/components/App.js => devtools/client/responsive.html/app.js
rename : devtools/client/responsive.html/components/DevicePixelRatioMenu.js => devtools/client/responsive.html/components/DevicePixelRatioSelector.js
rename : devtools/client/responsive.html/components/Toolbar.js => devtools/client/responsive.html/components/GlobalToolbar.js
rename : devtools/client/responsive.html/components/SettingsMenu.js => devtools/client/responsive.html/components/ReloadConditions.js
rename : devtools/client/shared/components/throttling/NetworkThrottlingMenu.js => devtools/client/shared/components/throttling/NetworkThrottlingSelector.js
2018-08-16 03:43:41 +03:00
Gabriel Luong
fb8789b523 Bug 1467572 - Part 19: Remove responsive-ua.css. r=rcaliman 2018-08-15 17:27:58 -04:00
Jonathan Watt
f3ea3c7d86 Bug 1428676 pt 3. Change our existing consumers of 'menulist-button' to use '-moz-menulist-button'. r=emilio 2018-06-20 13:50:23 +01:00
shindli
0a48a3cd3c Backed out 3 changesets (bug 1428676) for bc failures in browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
Backed out changeset 6ba5975115fc (bug 1428676)
Backed out changeset 7f1270a9ec3d (bug 1428676)
Backed out changeset 662bfc31a950 (bug 1428676)
2018-07-31 19:30:46 +03:00
Jonathan Watt
449e0fddad Bug 1428676 pt 3. Change our existing consumers of 'menulist-button' to use '-moz-menulist-button'. r=emilio
--HG--
extra : rebase_source : 5fd3de8c33cd0d168c63accbf98f50e9947bf31c
2018-06-20 13:50:23 +01:00
Kris Maglione
031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Narcis Beleuzu
561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Emilio Cobos Álvarez
0c01140e18 Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 17:27:17 +02:00
Cosmin Sabou
39220f357c Backed out 2 changesets (bug 1477553) for reftest failures on xulscroll.html.
Backed out changeset a5bebad6bb23 (bug 1477553)
Backed out changeset 8d4b97056365 (bug 1477553)
2018-07-23 18:03:10 +03:00
Emilio Cobos Álvarez
5da3dc168b Bug 1477553: followup: Add a semicolon. r=me
CLOSED TREE

MozReview-Commit-ID: LWpV3csRWfT
2018-07-23 15:53:14 +02:00
Emilio Cobos Álvarez
e8373c682f Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 15:31:30 +02:00
Tim Nguyen
f5a293984d Bug 1476322 - Make browser_parsable_css.js parse more types of rules. r=jaws
MozReview-Commit-ID: HZmMUEJsROz

--HG--
extra : rebase_source : 00fd2dd98397375d596677f8025012e8ad3d48bc
2018-07-17 16:53:03 +01:00
Johann Hofmann
b945779700 Bug 1476002 - Update Tracking Protection animation icon colour to Purple 30 in Dark theme. r=ntim
MozReview-Commit-ID: Aaw5kvCK2qb

--HG--
extra : rebase_source : d29e2dffd338887bff69657effb7103efd1eae30
2018-07-17 15:07:47 +02:00
Xidorn Quan
427a5dd50d Bug 1460870 - Whitelist fullscreen pseudo-class in pdfjs when unprefixed fullscreen is disabled. r=Gijs
MozReview-Commit-ID: L5EpFOHc5v4

--HG--
extra : rebase_source : 57d2cee3f7578461933ae6d0c4abf5ce6ab33010
2018-05-12 00:15:15 +10:00
Dorel Luca
d32e085275 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-11 00:59:14 +03:00
Emilio Cobos Álvarez
6be00d5d1e Bug 509958: Remove an unused whitelist entry from a test that only runs on opt builds. r=me on a CLOSED TREE
Fullscreen was also unprefixed long time ago.

MozReview-Commit-ID: CKHMRZ6YOTS
2018-05-10 19:45:31 +02:00
Jason Laster
40117fd237 Bug 1460371 - Update Debugger Frontend v51 r=jdescottes
--HG--
rename : devtools/client/debugger/new/debugger.css => devtools/client/debugger/new/dist/debugger.css
rename : devtools/client/debugger/new/parser-worker.js => devtools/client/debugger/new/dist/parser-worker.js
rename : devtools/client/debugger/new/pretty-print-worker.js => devtools/client/debugger/new/dist/pretty-print-worker.js
rename : devtools/client/debugger/new/search-worker.js => devtools/client/debugger/new/dist/search-worker.js
2018-05-10 12:34:11 -04:00
Julian Descottes
0d3bd50ec5 Bug 1460606 - browser_parsable_css should not flag classnames with -- as properties;r=Gijs
This allows to parse

.application--empty {
  --test1: red;
--test2: red;
  color: var(--test3);
}

and extract --test1, --test2, --test3, but not --empty.

MozReview-Commit-ID: GNQaZq5k5JU

--HG--
extra : rebase_source : 1945bc7b3472c6eb5c6a55bd9c39173ad0c3541d
2018-05-10 16:00:13 +02:00
Emilio Cobos Álvarez
641cd64f67 Bug 1452143: Fix two more tests which don't run on debug try on a CLOSED TREE. r=me
MozReview-Commit-ID: B3kj7tzn3Oq
2018-04-17 14:31:20 +02:00
Ryan VanderMeulen
88aaa7b61f Bug 1453838 - Update pdf.js to version 2.0.491. r=bdahl, r=yury 2018-04-12 19:29:03 -04:00
Michael Kohler
8e4633c919 Bug 1441855 - remove unused --chrome-nav-buttons-background and --chrome-nav-buttons-hover-background definitions r=jaws
Summary: Removes unused --chrome-nav-buttons-background and --chrome-nav-buttons-hover-background definitions

Reviewers: jaws

Reviewed By: jaws

Bug #: 1441855

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

--HG--
extra : rebase_source : a187a0da2a9fa0a6ab200b4552e9d7d626854aae
2018-04-13 11:54:56 +03:00
Brian Birtles
0ced916915 Bug 1450624 - Remove toolbox minimize feature; r=pbro
--HG--
extra : rebase_source : ffa2e7283e61f61c693ace6c8760c50637ab3810
2018-04-04 09:12:45 +09:00
Andreea Pavel
de5c4376b8 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-22 11:31:19 +02:00
Brian
5620b5bda6 Bug 1442300 - Remove --in-content-category-background property since it is unused. r=jaws 2018-03-21 17:25:15 -04:00
Timothy Guan-tin Chien
164b1df8be Bug 1444489 - Part VI, Enlarge the size of controls on mobile r=e7358d9c+590837,Gijs
Enlarge controls by around 1.3x, which is the size of the original touch controls.

MozReview-Commit-ID: kpgFFIW2hh

--HG--
extra : rebase_source : 66636a0cb15a17ef15c2a2307a2f9100c1852480
extra : source : ae615321dc9b3e6276d8e79285d0e9d65b6d6bc2
2018-03-09 17:00:51 -08:00
Timothy Guan-tin Chien
1543c98d18 Bug 1444489 - Part IV, Implement Casting UI on videoControls r=Gijs
Optimize and re-commit the casting buttons SVG removed from the previous commit.

MozReview-Commit-ID: GICxaRZXTiJ

--HG--
rename : mobile/android/themes/geckoview/images/videocontrols-cast-active.svg => toolkit/themes/shared/media/castingButton-active.svg
rename : mobile/android/themes/geckoview/images/videocontrols-cast-ready.svg => toolkit/themes/shared/media/castingButton-ready.svg
extra : rebase_source : 099416d0d03e5ab85ec5387f00911889db97d3e2
extra : source : 79a159f175227eae35648ffbeddcc58e77ef19cf
2018-03-09 17:39:44 -08:00
Timothy Guan-tin Chien
de835f3700 Bug 1444489 - Part I, Convert noControls binding to HTML content r=Gijs
The noControls binding is bound to <video> without controls on mobile
(see geckoview/content.css), and is only visible when the video is
blocked because of background autoplay.

MozReview-Commit-ID: KZqlQedCjd5

--HG--
extra : rebase_source : c5f619b0849ee56f957e9017ab2627d592a3285e
2018-03-12 22:30:03 +08:00
sreeise
70a0c81b98 Bug 1441857 - Added comment explaining custom properties are directly from CSSOM in order to get predefined style which is why they are not referenced by CSS. r=jaws
--HG--
extra : rebase_source : be31080cf5fbcb92578d02a07e0102df4d712f3a
2018-03-13 22:43:06 -04:00
Kris Maglione
9d57aca49f Bug 1373708: Follow-up: Throttle static browser tests so they don't OOM when using background requests. r=florian
MozReview-Commit-ID: FdZyOpdvarb

--HG--
extra : rebase_source : f89b0e1bb75b2ca5626ff07e53f768db6e5caeeb
2018-03-16 18:28:52 -07:00
Jason Laster
851b3b85b0 Bug 1445081 - Update Debugger Frontend v21. r=jdescottes
MozReview-Commit-ID: IrusTqKuyAN
2018-03-14 09:56:55 -04:00
Jon K
c6c197da1e Bug 1441844 - Remove unused --chrome-nav-bar-separator-color variable. r=dao 2018-03-13 13:59:46 +01:00
Xidorn Quan
e77e212b7c Bug 1442559 part 3 - Detect whitelist item which doesn't have any condition. r=Gijs
MozReview-Commit-ID: GavZUKl9y1r

--HG--
extra : rebase_source : 1d31314443fcbb30a93c4af48f0c2a0198f54c49
2018-03-03 11:56:55 +11:00
Xidorn Quan
69475f1af2 Bug 1442559 part 2 - Use a separate whitelist for prop names. r=Gijs
MozReview-Commit-ID: LT50Q5xFydH

--HG--
extra : rebase_source : dbd74c080e28393f14d2567051b8007c77bbff8b
2018-03-03 11:55:42 +11:00
Xidorn Quan
4fcb2e8136 Bug 1442559 part 1 - Make it clearer what whitelist item filters the error. r=Gijs
MozReview-Commit-ID: 2VFgHRdvd5m

--HG--
extra : rebase_source : ca93e3c464cbbba68c3a646a7909c9bd81a887b6
2018-03-03 11:54:24 +11:00
Andreea Pavel
f21ba11e92 Backed out 3 changesets (bug 1442559) for eslint failure at /builds/worker/checkouts/gecko/browser/base/content/test/static/browser_parsable_css.js:474 on a CLOSED TREE
Backed out changeset d540c55c96c5 (bug 1442559)
Backed out changeset 6371120b7c1c (bug 1442559)
Backed out changeset b2bf42743feb (bug 1442559)
2018-03-05 01:30:36 +02:00
Xidorn Quan
ce92b4808a Bug 1442559 part 3 - Detect whitelist item which doesn't have any condition. r=Gijs
MozReview-Commit-ID: GavZUKl9y1r

--HG--
extra : rebase_source : 0a77b9cef055e89df9b954db1047746bdbe1ca46
2018-03-03 11:56:55 +11:00
Xidorn Quan
ca7fb34c7a Bug 1442559 part 2 - Use a separate whitelist for prop names. r=Gijs
MozReview-Commit-ID: LT50Q5xFydH

--HG--
extra : rebase_source : 1f14e0ee4096e8abb822c03de92f227e60354d4a
2018-03-03 11:55:42 +11:00