Commit Graph

73 Commits

Author SHA1 Message Date
Gijs Kruitbosch
567d31a745 Bug 1469916, r=ckerschb,jkt 2018-06-22 15:41:39 +01:00
Gijs Kruitbosch
435b8f162d Backed out changeset be11a3290029 (bug 1469916) for test orange involving Not enough arguments [nsIWebBrowserPersist.saveURI] 2018-07-03 15:45:13 +01:00
Gijs Kruitbosch
2cd42146aa Bug 1469916, r=ckerschb,jkt 2018-06-22 15:41:39 +01:00
J. Ryan Stinnett
0dcd6d60ba Bug 1365626 - Remove View MathML Source feature. r=mconley
The in-tree version of View MathML Source appears to have low usage, so it seems
reasonable to remove.  A similar feature is available as an add-on.

In recent months, the in-tree version has actually been broken, which wasn't
noticed for quite a while.  This adds further evidence for removal given the
lack of maintenance and interest in this feature.

Differential Revision: https://phabricator.services.mozilla.com/D1830
2018-06-28 20:45:31 +00:00
Kris Maglione
582a21b473 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt
2018-04-23 12:58:34 -07:00
Jonathan Kingston
c3449ab668 Bug 1374741 - Within toolkit/ make openUILinkIn() provide the correct triggeringPrincipal. r=Gijs
MozReview-Commit-ID: AX2S3bEKl1w
2018-02-21 23:08:42 +00:00
J. Ryan Stinnett
c78db6b950 Bug 1443371 - Remove unused page descriptor in viewSourceUtils.js. r=bdahl
`openInExternalEditor` used to accept a page descriptor as a deprecated arg, but
this is no longer possible after bug 1418403.

MozReview-Commit-ID: codNqEOemu
2018-03-06 08:12:39 -06:00
J. Ryan Stinnett
3ab512e66c Bug 1442923 - Convert openInExtenalEditor to Promises. r=bdahl
This resolves some confusion around the required callback for
`openInExtenalEditor` by converting it to instead return a Promise.  This also
simplifies the flow of its callers as well.

MozReview-Commit-ID: EYoucELJLbu
2018-03-05 11:50:50 -06:00
J. Ryan Stinnett
0649ffa4d2 Bug 1442923 - Remove expired View Source telemetry. r=bdahl
MozReview-Commit-ID: FXbkw6jUGbw
2018-03-05 11:29:51 -06:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Brendan Dahl
5ef80eaf60 Bug 1418403 - Remove viewing source in a standalone window. r=jryans
Along with removing the view source standalone windows and prefs this patch:
1) Re-structures several of the view source tests that were only testing the old
standalone windows to now test view source in tab.
2) Adds support viewSourceUtils.viewSource() to open a browser window when there
aren't any open (for browser toolbox view source).
3) Cleans up some of the API for viewSourceUtils and removes the old deprecated
ways of calling it.

MozReview-Commit-ID: DI6sgZwbCf
2018-02-05 13:33:58 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Mark Banner
6067ef1cb5 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 2. r=florian
MozReview-Commit-ID: 44oBXPP88Lc
2017-10-30 17:22:17 +00:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Masatoshi Kimura
5754eb0ecf Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt
2017-06-17 19:30:09 +09:00
Eugen Sawin
1f617c1192 Bug 1355542 - [2.0] Remove unused web progress callbacks and add missing progress filters. r=felipe 2017-04-13 23:20:17 +02:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Florian Quèze
13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
0c2dd4fa35 Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: 2MhpvzUDgtK
2017-01-06 12:09:28 -05:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd 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
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Mark Banner
8ddd9bb511 Bug 1315951 - Fix no-unused-vars issues in toolkit/components (except places). r=mossop
MozReview-Commit-ID: 8svkCKZHxsq
2016-11-08 12:49:32 +00:00
Jared Wein
6de548d828 Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: GDfvwWRLNm5
2016-08-16 21:27:37 -04:00
Sebastian Hengst
c0e4d28a3a Backed out changeset 7914e9dc6f88 (bug 1294542) for xpcshell failure in test_Log.js. r=backout 2016-08-17 01:24:58 +02:00
Jared Wein
3df021ec2e Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: AAXqh63QNv3
2016-08-16 15:44:13 -04:00
Philip Chee
9afe96349f Bug 1263262 - Do not hide the menubar in the View Partial Source window r=mconley 2016-04-09 03:40:10 +08:00
Mike Conley
98a2da3332 Bug 1207629 - Don't assume that viewSourceUtils.js has Services in scope. r=jryans 2015-09-23 11:32:52 -04:00
J. Ryan Stinnett
45691a1d88 Bug 1204365 - Repair external view source file name and extension. r=mconley 2015-09-22 14:23:47 -05:00
J. Ryan Stinnett
736ccdec2b Bug 1203624 - Measure view source usage. r=mconley p=ally 2015-09-15 15:56:25 -05:00
J. Ryan Stinnett
022a50634a Bug 1165599 - Restore basic external view source. r=jsantell
CLOSED TREE

This restores external view source after changes in bug 1025146.  It does
function in e10s, however the page descriptor is not used, so viewing a POST
result will GET the page instead.  This is the same as it was before bug
1025146.

Follow ups will add usage tracking and improve e10s behavior if there is enough
usage.
2015-09-09 15:41:20 -05:00
Neil Deakin
d49e7b6617 Bug 1134585, remove cpow usage from view selection source, r=mconley 2015-08-10 09:42:51 -04:00
J. Ryan Stinnett
50e6689efa Bug 1169723 - Load view source frame script lazily. r=mconley 2015-06-04 18:17:53 -05:00
J. Ryan Stinnett
375b366378 Bug 1067325 - MathML source in tab. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
cc8fe48b34 Bug 1067325 - Selection source in tab via frame scripts. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
90c30dc157 Bug 1067325 - Extract view source core to support tabs. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
3319e1fe68 Bug 1067325 - Fix line endings in several browser / toolkit files. r=mconley 2015-05-23 18:17:50 -05:00
Mike Conley
d98e438815 Bug 1163693 - Fix View Source external editor fallback. r=jryans. 2015-05-15 12:07:19 -04:00
Mike Conley
261f419eb5 Bug 1025146 - Modernize ViewSourceUtils to be able to use outerWindowIDs to load document sources. r=jryans. 2015-04-01 14:59:37 -04:00
Ehsan Akhgari
d4d4007fd7 Bug 1116880 - Pass in the referrer policy to the savePrivacyAwareURI() call in openInExternalEditor(); r=geekboy 2015-01-02 17:53:11 -05:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Ehsan Akhgari
09cb6bc6c1 Bug 815001 - Pass in the privacy information for the view sourced document to the web browser persist service when using an external view source program; r=jdm 2012-11-26 13:08:00 -05:00
Masayuki Nakano
8c8865adfd Bug 789852 Use getComplexValue() with nsIFile for view_source.editor.path, which supports unicode path r=gavin 2012-09-11 17:20:06 +09:00
Ehsan Akhgari
97b6ccc8c3 Bug 722868 - Part 4: Make the view source window aware of the deleteTemporaryPrivateFileWhenPossible API; r=Mossop 2012-04-24 23:14:16 -04:00
Ed Morley
2d31d82b8d Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00