Fune (船) is a Firefox ESR fork with the intent of bringing back the Firefox 2.0 look and overall decrapifying the browser.
Find a file
Razvan Caliman 0bde9bbef6 Bug 724505 - Map minified CSS to prettyfied CSS. r=gl
Ensure source links for selectors in the Rules view and warning links in Web Console for minified CSS go to the right location in the Style Editor after applying automatic prettification.

This only works for linked stylesheets. [Bug 1169770](https://bugzilla.mozilla.org/show_bug.cgi?id=1169770) needs to be fixed first before this can work correctly on inline minified stylesheets.

This patch augments the `prettifyCSS()` method to generate the mappings necessary to generate a sourcemap from the original to the prettified source. It uses these mappings to translate the cursor position when invoking the Style Editor to be opened at a specific location.

The mappings from the minified to the prettified source are used only until the stylesheet is changed in the Style Editor. Upon editing the source in the Style Editor, the associated mappings are cleared because it's likely they have been rendered invalid.

The updated stylesheet will already be prettified so it bypasses the `prettifyCSS()` method, thus avoiding the need to re-generate mappings. New CSS warnings will be listed in the Web Console which point to the right location in the edited stylesheet (the old warnings no longer point to the right place, but that's an acceptable side-effect). The Rules view in the Inspector also lists selectors with the new positions within the edited stylesheet.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 17:30:00 +00:00
.cargo Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth 2019-07-04 06:28:01 +00:00
.vscode
accessible Bug 1474771 - Adjust accessibility test_list.html to deal with frames having NS_FRAME_IS_DIRTY more often. r=Jamie 2019-07-03 05:30:30 +00:00
browser Backed out changeset 3e2fe70b181a (bug 1522012) for causing failures in browser_touchbar_tests.js CLOSED TREE 2019-07-04 18:47:07 +03:00
build Backed out 2 changesets (bug 1562389) for causing bustages in ../python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py::WindowsToolchainTest::test_clang_cl CLOSED TREE 2019-07-04 07:44:49 +03:00
caps
chrome Backed out 43 changesets (bug 1561724, bug 1561150, bug 1541557, bug 1561122, bug 1560400, bug 1558298, bug 1561999, bug 1532795, bug 1561061) for multiple failures. CLOSED TREE 2019-07-02 10:51:56 +03:00
config Bug 1557762 - ensure we define NS_FREE_PERMANENT_DATA for single-stage pgo builds, r=chmanchester 2019-06-28 16:38:14 +00:00
devtools Bug 724505 - Map minified CSS to prettyfied CSS. r=gl 2019-07-04 17:30:00 +00:00
docshell Backed out 2 changesets (bug 1552168) for causing mochitest crashes on test_menubar.xul CLOSED TREE 2019-07-03 16:08:23 +03:00
dom Bug 1396224 - Avoid cache for private clipboard data r=mstange 2019-07-02 21:45:10 +00:00
editor Bug 1396224 - Avoid cache for private clipboard data r=mstange 2019-07-02 21:45:10 +00:00
extensions Bug 1562876: rename Selection::RemoveRange to Selection::RemoveRangeAndUnselectFramesAndNotifyListeners. r=smaug 2019-07-03 13:26:14 +02:00
gfx Bug 1546818 - Change WR text transform to be relative to the surface raster node r=gw 2019-07-04 14:54:36 +00:00
gradle/wrapper
hal
image Bug 1562159. Restore second copy of test because pref is different second time. 2019-06-29 00:17:30 +00:00
intl Bug 1558602 - Allow DocumentL10n to use LocalizationSync. r=smaug,Pike 2019-07-01 17:56:57 +00:00
ipc Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for toolchain bustages on UniquePtrExtensions.h . CLOSED TREE 2019-06-28 22:42:00 +03:00
js Bug 1563241: Make Spidermonkey's testing intrinsic wasmBulkMem dependent on shared memory too; r=lth 2019-07-04 06:23:27 +00:00
layout Bug 1562733 - Properly transform DetailedGlyph offsets when rendering vertical (rotated) text through webrender. r=lsalzman 2019-07-04 11:58:35 +00:00
media Backed out 2 changesets (bug 1552607) for causing checkstyle failures. CLOSED TREE 2019-07-02 04:19:01 +03:00
memory Bug 1559975 - enable py2 and py3 linting in memory r=ahal 2019-06-28 18:53:28 +00:00
mfbt Bug 1563046: Move operator LogModule* out of line in debug builds. r=froydnj 2019-07-02 23:58:18 +00:00
mobile Bug 1557569 - Disable ScreenshotTest.capturePixelsThrowsCompositorNotReady for frequent failures. r=gbrown 2019-07-04 15:27:28 +00:00
modules Backed out changeset 3e2fe70b181a (bug 1522012) for causing failures in browser_touchbar_tests.js CLOSED TREE 2019-07-04 18:47:07 +03:00
mozglue Bug 1559000 - Enable/disable mozglue's AutoProfilerLabel when Base Profiler starts/stops - r=mstange 2019-07-04 04:39:08 +00:00
netwerk No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM 2019-07-04 13:06:12 +00:00
nsprpub
other-licenses Bug 1553537 Part 2 - Port the InetBgDL plugin to Visual Studio 2019. r=agashlin 2019-06-25 00:34:13 +00:00
parser Bug 1559008. Load catalog DTDs even if we don't have a useful DTD URI, since we ignore that URI anyway when we find a catalog DTD. r=peterv 2019-06-24 12:45:22 +00:00
python Bug 1563326 - for code-analysis target do not globally import PackageFrontend. r=sylvestre 2019-07-04 11:42:16 +00:00
remote Bug 1560301 - Implement very minimal support of browser context. r=remote-protocol-reviewers,ato 2019-07-02 12:40:58 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM 2019-07-04 13:06:12 +00:00
services Bug 1559514 - Emit sync event when up-to-date if JSON dump is loaded r=glasserc 2019-07-04 15:15:48 +00:00
servo Bug 1561283 - Don't optimize out recascading of children when becoming or stopping being display: contents. r=dholbert 2019-07-01 21:39:47 +00:00
startupcache
storage
taskcluster Bug 1562828 - Rename Rap-P(idl-bg) to Rap(idlbg-p) r=perftest-reviewers,sparky 2019-07-03 20:55:14 +00:00
testing Bug 1549033 - Only dump PERFHERDER_DATA when scenario tests are run with a resource usage flag. r=perftest-reviewers,stephendonner,rwood 2019-07-04 15:36:40 +00:00
third_party Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth 2019-07-04 06:28:01 +00:00
toolkit Bug 1563529 - Make HTML inputs inherit font in global.css. r=dao 2019-07-04 16:24:52 +00:00
tools Bug 1562956 - eslint: allow dash in tag names in xul documents;r=Standard8 2019-07-04 11:18:47 +00:00
uriloader Bug 1560040 - Introduce 2 new URL-Classifier features to annotate and block social trackers, r=dimi 2019-06-22 16:53:50 +00:00
view
widget Bug 1396224 - Avoid cache for private clipboard data r=mstange 2019-07-02 21:45:10 +00:00
xpcom Bug 1563046: Move operator LogModule* out of line in debug builds. r=froydnj 2019-07-02 23:58:18 +00:00
xpfe/appshell
.arcconfig
.clang-format
.clang-format-ignore Bug 1519636 - Mark the entire media/libdav1d directory as third-party; r=andi 2019-06-28 07:37:58 +00:00
.cron.yml Bug 1562628: Run the periodic file update cron job on ESR68; r=RyanVM 2019-07-03 16:36:40 +00:00
.eslintignore Bug 1555450 - Remove locale-specific behavior when fully fluent (no longer using properties/json) r=k88hudson 2019-07-03 23:49:07 +00:00
.eslintrc.js Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana 2019-06-21 20:13:40 +00:00
.flake8
.gdbinit
.gdbinit_python
.git-blame-ignore-revs
.gitignore Bug 1555482 - Remove strings-import, bundle:locales and imported strings (locales-src/ subdirectories) r=k88hudson 2019-07-03 23:49:23 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore
.hgtags No bug - Tagging mozilla-central adc59d50adf815ad6764ff235f833a5ba74291b6 with FIREFOX_BETA_69_BASE a=release DONTBUILD CLOSED TREE 2019-07-01 08:44:11 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle
Cargo.lock Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth 2019-07-04 06:28:01 +00:00
Cargo.toml Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth 2019-07-04 06:28:01 +00:00
client.mk
client.py
CLOBBER
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LEGAL
LICENSE
mach
Makefile.in
moz.build Bug 1560425 - Remove old performance measurement API r=jorendorff 2019-07-02 14:37:17 +00:00
moz.configure
mozilla-config.h.in
old-configure.in
package-lock.json
package.json
README.txt
settings.gradle
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.