Commit graph

73 commits

Author SHA1 Message Date
Gijs Kruitbosch
09a107bc24 Bug 1469916, r=ckerschb,jkt
--HG--
extra : rebase_source : 180442deeef92f0e9202d76c5e4e46b630072d99
extra : source : be11a32900298eb6fd4d18ad21b9a699995254c3
2018-06-22 15:41:39 +01:00
Gijs Kruitbosch
9396488809 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
0d0616cad1 Bug 1469916, r=ckerschb,jkt
--HG--
extra : rebase_source : 5c2f49af85664fdb5375f6dc4cc57d6913f1eff9
2018-06-22 15:41:39 +01:00
J. Ryan Stinnett
84c4eba82e 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

--HG--
extra : moz-landing-system : lando
2018-06-28 20:45:31 +00:00
Kris Maglione
bf4d9f1be5 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

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Jonathan Kingston
6d747cc6cb Bug 1374741 - Within toolkit/ make openUILinkIn() provide the correct triggeringPrincipal. r=Gijs
MozReview-Commit-ID: AX2S3bEKl1w

--HG--
extra : rebase_source : f8ab09abbf65224e7253f72c5db36e774c4daffc
2018-02-21 23:08:42 +00:00
J. Ryan Stinnett
439621a7be 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

--HG--
extra : rebase_source : 4c08f6659374f380c05e48c3eb3e86b620c5187a
2018-03-06 08:12:39 -06:00
J. Ryan Stinnett
ef9b21aeaf 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

--HG--
extra : rebase_source : b27541f6d86b06d967b6a5023d82c43efb422d67
2018-03-05 11:50:50 -06:00
J. Ryan Stinnett
81e9ca66f5 Bug 1442923 - Remove expired View Source telemetry. r=bdahl
MozReview-Commit-ID: FXbkw6jUGbw

--HG--
extra : rebase_source : 5d6614feaa78f744ba74ffc382de8c102d5ced4b
2018-03-05 11:29:51 -06:00
Florian Quèze
c714053d73 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
40c81820ad 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

--HG--
extra : rebase_source : 64677186122f74ab95912d5f3f173cf37472458a
2018-02-05 13:33:58 -08:00
Kris Maglione
918ed6c474 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 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
6476f95b13 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb 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
c276bb9375 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

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Mark Banner
99e91ded27 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 2. r=florian
MozReview-Commit-ID: 44oBXPP88Lc

--HG--
extra : rebase_source : 6625ac73eca1fa63d474eda3d1146baf910eac8c
2017-10-30 17:22:17 +00:00
Dan Banner
7caa92d5d8 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
3231cb3535 Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt

--HG--
extra : rebase_source : 50d3f4680a498125ddf600b0d64f6740b0229f80
2017-06-17 19:30:09 +09:00
Eugen Sawin
0b1bae9e19 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
43bac26d30 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a

--HG--
extra : rebase_source : 014c0b04d8538dc5f15bc6dd4ed6bd220c55c5d4
2017-01-17 09:48:17 -06:00
Florian Quèze
34e970eb9b Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
b33bfba51a Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: 2MhpvzUDgtK

--HG--
extra : rebase_source : 1df2b81badfe556928f6424c8990e4b3fde7056f
2017-01-06 12:09:28 -05:00
Jared Wein
9141469edf Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe

--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Jared Wein
ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher
0dfb7c2b5c 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
7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Mark Banner
7d81bfea9f Bug 1315951 - Fix no-unused-vars issues in toolkit/components (except places). r=mossop
MozReview-Commit-ID: 8svkCKZHxsq

--HG--
extra : rebase_source : 01552e8214f02490aad3cf704757f52a9c3b3959
2016-11-08 12:49:32 +00:00
Jared Wein
ea0b3d77bc 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
c66c2fee3a 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
b82aa6f6de 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
f9af648597 Bug 1263262 - Do not hide the menubar in the View Partial Source window r=mconley
--HG--
extra : transplant_source : %04%20%C2%F2%D5%B3%21V%9C%E7%B5%D3%AFe%3D%CF%E0%1DB%91
2016-04-09 03:40:10 +08:00
Mike Conley
bf5662d318 Bug 1207629 - Don't assume that viewSourceUtils.js has Services in scope. r=jryans
--HG--
extra : commitid : FQrbZD44XMx
extra : rebase_source : 435a9d52aecd4623301ce9aeb67df126a735e312
extra : amend_source : d32f92d860ce1e45c4a129786b999433c5447b21
2015-09-23 11:32:52 -04:00
J. Ryan Stinnett
8556917eae Bug 1204365 - Repair external view source file name and extension. r=mconley 2015-09-22 14:23:47 -05:00
J. Ryan Stinnett
4ac507e6e7 Bug 1203624 - Measure view source usage. r=mconley p=ally 2015-09-15 15:56:25 -05:00
J. Ryan Stinnett
78852db01c 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.

--HG--
extra : amend_source : 41f2607f62a0c472effc0f2433352230014dbc9d
extra : transplant_source : %9F%3E%9D%D5w%11%B0t%94%C3%91W_%82G%8Ei%D5%CB%9A
2015-09-09 15:41:20 -05:00
Neil Deakin
4e5e016c5d Bug 1134585, remove cpow usage from view selection source, r=mconley 2015-08-10 09:42:51 -04:00
J. Ryan Stinnett
4c6ec60312 Bug 1169723 - Load view source frame script lazily. r=mconley 2015-06-04 18:17:53 -05:00
J. Ryan Stinnett
a9e07e1d86 Bug 1067325 - MathML source in tab. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
23ee447382 Bug 1067325 - Selection source in tab via frame scripts. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
3e6b1576a1 Bug 1067325 - Extract view source core to support tabs. r=mconley 2015-05-23 18:17:50 -05:00
J. Ryan Stinnett
2566a56af4 Bug 1067325 - Fix line endings in several browser / toolkit files. r=mconley 2015-05-23 18:17:50 -05:00
Mike Conley
a514c6581d Bug 1163693 - Fix View Source external editor fallback. r=jryans.
--HG--
extra : rebase_source : 22a27f83926d33d7f0683a2209e78b56fbdd3f14
2015-05-15 12:07:19 -04:00
Mike Conley
11b6d3c0d0 Bug 1025146 - Modernize ViewSourceUtils to be able to use outerWindowIDs to load document sources. r=jryans.
--HG--
extra : rebase_source : 596f18b77b228c9553a9c4b4d582766d5468d8b2
2015-04-01 14:59:37 -04:00
Ehsan Akhgari
65df2a63dd 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
7e20285e70 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
ce71c8bd00 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
cde384043e 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
2d1d49791d 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
9f814b505f Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00