Commit Graph

197 Commits

Author SHA1 Message Date
Florian Queze
c8776102ba Bug 1359111 - stop using BrowserUtils.makeFileURI, r=jaws. 2017-04-25 09:21:50 +02:00
Florian Queze
c9a0637249 Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws. 2017-04-25 09:21:49 +02:00
Florian Queze
ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Sebastian Hengst
4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Florian Queze
35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Jared Wein
5a181760cc Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx
2017-03-21 14:29:43 -04:00
Florian Quèze
73074c2660 Bug 1344711 - hand cleanup of remaining useless try blocks around get*Pref calls identified by eslint, r=jaws. 2017-03-07 15:29:48 +01:00
Thomas Nguyen
82e1caab63 Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08: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
Dave Townsend
e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
Dave Townsend
12596ced47 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ
2016-11-10 14:48:04 -08:00
Jared Wein
0c024fa9ca Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6
2016-10-24 13:14:19 -04:00
Paolo Amadini
4b4a9792a3 Bug 1243445 - Pasting an invalid URL breaks the Downloads View in the Library. r=jaws
MozReview-Commit-ID: DCPhxiB1i0Y
2016-08-22 14:22:18 +01:00
Jared Wein
ebf1ccbe46 Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop
MozReview-Commit-ID: DYOmE6xwMJh
2016-08-03 18:54:59 -04:00
Christoph Kerschbaumer
dc0d7a32e7 Bug 1272590 - Remove SEC_NORMAL from toolkit/content/contentAreaUtils.js (r=sicking) 2016-05-17 10:00:45 +02:00
Dave Townsend
c588a748f1 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Phil Ringnalda
3929f085ec Backed out 5 changesets (bug 1245916) for browser-chrome and devtools bustages
CLOSED TREE

Backed out changeset 70eca07367f4 (bug 1245916)
Backed out changeset 04c1740aa499 (bug 1245916)
Backed out changeset b554c7ce41c4 (bug 1245916)
Backed out changeset 01675e4828b5 (bug 1245916)
Backed out changeset 878db4caf845 (bug 1245916)
2016-02-15 13:58:27 -08:00
Dave Townsend
c6bdb66d16 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Mike Conley
0755f0301c Bug 1246244 - Allow non-CPOW documents to pass through saveImageURL properly. r=jaws,Margaret
MozReview-Commit-ID: 1SbM2n3PNI1
2016-02-05 18:19:59 -05:00
Mike Conley
97f1234f91 Bug 1243643 - Deprecate unsafe CPOW usage in contentAreaUtils' saveImage. r=jld 2016-01-28 16:23:30 -05:00
Ehsan Akhgari
ff682ba7e5 Bug 1202085 - Part 2: Add an optional document argument to imgICache::FindEntryProperties(); r=seth 2015-10-30 16:03:09 -04:00
Carsten "Tomcat" Book
036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
190bccea7d Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Shu-yu Guo
a021cebc10 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Mike Conley
31222be0ea Bug 1141337 - Update nsIWebBrowserPersistable to allow subframe targeting for Save Frame As. r=jld
This alters nsIWebBrowserPersistable so that startPersistence takes an
outerWindowID. This allows us to target a particular subframe from
beneath an nsFrameLoader, which is useful when attempting to Save
Frame As a remote browser.
2015-08-06 10:44:16 -04:00
Jed Davis
f47e3d9e63 Bug 1193903 - Improve error reporting for out-of-process saveBrowser(). r=mconley 2015-08-13 18:08:02 -07:00
Jed Davis
e32b5dab07 Bug 1101100 - Multiprocess-enable nsWebBrowserPersist. r=billm
The high-level overview is that the parts of nsWebBrowserPersist which
access the DOM have been factored out (as WebBrowserPersistLocalDocument)
and abstracted (nsIWebBrowserPersistDocument) such that they can be
implemented in the cross-process case using IPC.
2015-08-05 14:25:39 -07:00
Jimmy Wang
f0e4983767 Bug 1040947 - Opening page info from a remote tab is sluggish. r=florian 2015-07-08 17:18:38 -04:00
Mike Conley
e6cfff6e15 Bug 1128050 - [e10s] Save page as... doesn't always load from cache. r=billm. 2015-05-04 21:58:21 -04:00
Jim Mathies
d9df1d0d1f Bug 1122525 - On right-click query in advance media related information from the image cache and forward this info to chrome with the contextmenu event. r=mconley 2015-03-31 12:59:06 -05:00
Magnus Melin
c2c4544121 Bug 1135212 - ReferenceError: Ci is not defined (in contentAreaUtils.js). r=Gijs 2015-02-20 22:52:06 +02:00
Bill McCloskey
e641723ad4 Bug 1127927 - Make link saving safe for e10s (r=mconley) 2015-02-11 12:55:29 -08:00
Christoph Kerschbaumer
5ba300a734 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/content/ (r=bsmedberg) 2015-02-10 20:50:02 -08:00
Philip Chee
e581dd35aa Bug 1110036 - "Save As" stops working from "Page Info" > "Media" pane. Progress of downloading is 0% forever r=sstamm 2014-12-17 01:09:12 +08:00
Sid Stamm
baf7d8c72e Bug 1103280 - remove references to undefined REFERRER_POLICY_DEFAULT symbol. r=billm 2014-11-22 05:14:00 +01:00
Jed Davis
c9aa3e7ec0 Bug 1058251 - Make "Save As" work in e10s without "Web Page, complete" mode. r=mconley f=paolo 2014-11-18 11:35:47 -08:00
Sid Stamm
7327eccdb3 Bug 704320 - Add referrer policy support for nsIWebBrowserPersist and its consumers. (r=jst) 2014-11-18 08:47:14 -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
Paolo Amadini
065766b8f7 Bug 985318 - Convert to Promise.jsm in the Toolkit "content" folder. r=mak 2014-03-20 11:04:37 +01:00
Bill McCloskey
d08f8a860d Bug 961529 - Add BrowserUtils module (r=felipe) 2014-02-08 17:40:27 -08:00
Marco Bonardo
fb598e0590 Bug 945707 - Pausing a download fails when done after a retry. r=paolo 2014-01-29 17:00:17 -05:00
Raymond Lee
a853dc2b09 Bug 875731 - /toolkit/content/ Replace callers of nsIDownloadManager.usersDownloadsDirectory with Downloads.getUserDownloadsDirectory. r=paolo 2013-10-25 14:03:18 +08:00
Dão Gottwald
05c7213917 Bug 914748 - Let openURL call openUILinkIn rather than browserDOMWindow.openURI, as the latter may do nothing and return null. r=felipe 2013-09-16 11:27:22 +02:00
Doug Turner
7767c0773f Bug 906072 - Remove Maemo port. r=romaxa, r=ted, r=johns 2013-08-25 16:56:53 -07:00
Drew Willcoxon
29871d0aa3 Bug 906276 - Add attribute to nsIDocShell to disable content retargeting. r=jlebar, sr=biesinger 2013-08-24 01:10:50 -07:00
Felipe Gomes
4349cb9d35 Bug 854299 - Part 4. Add a callback function to contentAreaUtils's getTargetFile. r=adw 2013-04-01 03:13:37 -03:00
Ms2ger
6869d37380 Backout changesets a255a998af6e:9c72d5cfe1fb for bc orange. 2013-04-01 12:00:49 +02:00