Commit graph

301 commits

Author SHA1 Message Date
Mike Conley
03b699b5f3 Bug 1146454 - Stop using CPOWs for printing. r=billm
We were passing around content window CPOWs before to indicate
which content to send to the printer. This was, naturally, causing
unsafe CPOW usage warnings - especially when attempting to get at
the content window of an iframe with the context menu printing
command.

This patch changes the printing mechanism to use outer window IDs
instead of CPOWs.

--HG--
extra : commitid : 7bG2asTYoDR
extra : rebase_source : 3d8d10dbd0d7ce4b2891d81b5f15d71341b79f84
2015-07-03 16:06:04 -04:00
Christoph Kerschbaumer
1b37d7f28f Bug 1136055 - 'Save link as' does not follow HTTP 302 response / redirection. r=gijs
--HG--
extra : rebase_source : e9add66a53f8f2627ed08d15e8462653563edd85
2015-06-18 10:19:32 -07:00
Ryan VanderMeulen
b56e92700c Backed out changeset 9dc97d73b64f in favor of using a revised patch.
--HG--
extra : rebase_source : 6f35fc24e484beed9f117a5d262532bb66aed786
2015-06-19 10:19:11 -04:00
Ian Moody
7e004684e2 Bug 1135933 - Make nsContextMenu.setDesktopBackground() use a message to get the image as a dataURL and make a new element with it to pass to the setDesktopBackground dialog. r=gabor
Also perform the disableSetDesktopBackground() check in content

--HG--
extra : commitid : KxHNPz0K0D3
extra : rebase_source : d5f8876a2f3bc58fd4ce133c2eca9b18ce70f282
2015-06-15 23:36:38 -07:00
Christoph Kerschbaumer
89402898f0 Bug 1136055 - 'Save link as ...' should be treated as toplevel load. r=Gijs 2015-06-15 10:13:03 -07:00
Jared Wein
07c79c8b90 Bug 777680 - "Bookmark This Page" in context menu should be highlighted. r=mak
--HG--
extra : rebase_source : 5c3676692d33e07f934adefa9097658a269b0edf
2015-06-13 11:52:17 -04:00
Justin Dolske
daa0f38953 Bug 1161138 - Use normal L10N for Pocket strings. r=jaws 2015-06-09 12:11:26 -07:00
Ryan VanderMeulen
2fd90bf639 Backed out changeset 2a114efdfc3f (bug 1135933) for making browser_addKeywordSearch.js permafail.
CLOSED TREE
2015-05-29 12:25:09 -04:00
Ian Moody
1f4c2ff978 Bug 1135933 - Make nsContextMenu.setDesktopBackground() use a message to get the image as a dataURL and make a new element with it to pass to the setDesktopBackground dialog. r=gabor
Also perform the disableSetDesktopBackground() check in content

--HG--
extra : transplant_source : %27U%EC%AF%EB%B4%D8%3D%CE%D0%5D%CC%B7%9D%26%AF%8Bk%90%CE
2015-05-26 00:25:44 +01:00
J. Ryan Stinnett
8f9179fcab Bug 1168198 - Avoid popups for view source tabs. r=Gijs 2015-05-28 09:15:23 -05:00
J. Ryan Stinnett
827375d5f8 Bug 1168095 - Repair view source from sidebar pages. r=Gijs 2015-05-27 20:17:18 -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
2566a56af4 Bug 1067325 - Fix line endings in several browser / toolkit files. r=mconley 2015-05-23 18:17:50 -05:00
Birunthan Mohanathas
3ffa8d565d Bug 1166840 - Remove unused document argument in uses of nsIClipboardHelper.copyString. r=ehsan 2015-05-21 21:49:30 +01:00
Marco Bonardo
57cc9e22c7 Bug 1160476 - ‘Bookmark this link’ context menu option doesn’t work. r=ttaubert 2015-05-20 13:48:17 +02:00
Jared Wein
5f69727d1f Bug 1162713 - Implement "Save Link to Pocket" context menu item. r=dolske 2015-05-14 14:04:05 -04:00
Justin Dolske
7050a1ac29 Bug 1164407 - Pocket not enabled on ja builds under Mac OS X. r=adw 2015-05-13 18:18:29 -07:00
Gijs Kruitbosch
629ad64763 Bug 1164410 - fix l10n use in pocket, r=jaws
--HG--
rename : browser/base/content/browser-pocket.properties => browser/base/content/browser-pocket-en-US.properties
extra : rebase_source : c736a1ee9faa69228ff37947ceab88531bfbc322
2015-05-12 18:21:08 +01:00
Ian Moody
3fa8728da3 Bug 1135619 - Make "Bookmark This Frame" fetch the document title and description via message so it is safe in e10s. r=gabor
--HG--
extra : transplant_source : %D6%97%0C%40%DF%F0%90f%26i%C0%1C0n%40%85%F8%1Ewb
2015-03-04 21:27:35 +00:00
Mike Conley
a40ff1f409 Bug 1025146 - Make viewing the source of a page or frame via the context menu work with remote browsers. r=jryans.
--HG--
extra : rebase_source : 77beee6aabb3b41febdfdce0b1efbc0077b0273b
2015-05-08 17:04:30 -04:00
Drew Willcoxon
4c424c363a Bug 1162283 - Add support for limited hard-coded localizations to Pocket. r=dolske, a=dolske 2015-05-08 18:57:08 -07:00
Jared Wein
12293f0ffe Bug 1161654 - Remove some dead code in Pocket.jsm and use pktApi for checking if the user is logged in. r=dolske 2015-05-05 17:05:45 -07:00
Florian Quèze
640bf32e81 Bug 1155518 - Implement "Save to Pocket" context menu item, r=jaws. 2015-05-05 12:24:10 +02:00
Ian Moody
fe297cf6c4 Bug 1160339 - Make nsContextMenu.linkText a function again for addon-compat. r=mconley
--HG--
extra : rebase_source : 3af32a3dee611f27e5f050d772d842905e4f3fb6
2015-04-30 23:02:39 +01:00
Neil Deakin
e662ba16db Bug 1134769, move selection info retrieval on context menu to content process, r=mconley 2015-04-29 08:38:42 -04:00
Ian Moody
1028ac00f3 Bug 1134424 - Use the existing reference to the document in nsContextMenu.saveMedia() rather than unsafely creating a new one. r=gabor
--HG--
extra : rebase_source : 7ca6efe0e6d13e86e885dab531ccae97624e079c
extra : histedit_source : 3c195110262249d6246488124c9b944265b71d26
2015-04-21 16:23:41 +01:00
Ian Moody
2384c1d0ca Bug 1134424 - Use a message to safely get the dataURL of the canvas for saving media with e10s. r=gabor
--HG--
extra : rebase_source : 5944b7a929179c6f83909b4afe96896021cb8533
extra : histedit_source : 8cdd9e8e372a4eebbd6db2fd92e0e50cd00afa28
2015-04-21 23:09:03 +01:00
Neil Deakin
5500eadc0e Bug 1058712, e10s, support for copy image command, r=ehsan,mconley 2015-04-21 20:09:14 -04:00
Ian Moody
1b0368b7b5 Bug 1141734 - Pass this.browser into PrintUtils.print() in nsContextMenu.printFrame(). r=gabor
--HG--
extra : transplant_source : %D0%03%7D%B1%BC%28%9D%26%C3%D2%7Ci%F0%2CI%E4%C3%A7%F2/
2015-04-15 22:44:50 +01:00
Ian Moody
276e43ea5c Bug 1140859 - Pass the outerWindowID into nsContextMenu.saveHelper() and use that to get the window, rather than unsafely accessing doc.defaultView. r=gabor
--HG--
extra : transplant_source : %05%1C%0C%25%17%E5o%C9%06%13R%92%20u%BB%F0z%86%1A%B6
2015-04-12 11:05:32 +01:00
Ian Moody
876b457646 Bug 1140859 - Pass the safe documentURIObject into nsContextMenu.saveHelper() rather than unsafely accessing it on the document. r=gabor
--HG--
extra : transplant_source : %D8%A7%D02%9D%12%B0%E6%8FSr%1E%3F%08%EC%DDWU%04%AF
2015-04-11 10:51:09 +01:00
Ian Moody
2896994406 Bug 850378 - Set channel.contentDispositionFilename to value of a[download] in nsContextMenu.saveHelper(). r=dolske
This lets the "Save Link As..." context menu command use the download attibute hint for filenames
2015-03-20 19:06:51 +00:00
Ian Moody
c4760cc752 Bug 1141160 - Make "Reload Image" use messages to avoid unsafe CPOW warnings. r=gabor
--HG--
extra : transplant_source : %AB%EF%CE%07%12%BF%8F%2AU%16%80t%7EJ%DC%D9%191%C6X
2015-03-21 14:15:26 +00:00
Ian Moody
2652a41798 Bug 1134222 - Save a reference to the ownerDocument during the sync contextmenu message, and use it for saveLink(). r=gabor
--HG--
extra : transplant_source : Py%3AQ%EFr%D2u%17%13%83%C0%1F%C0%11%7F%7FEUg
2015-04-11 09:08:41 +01:00
Gijs Kruitbosch
6d631e29db Bug 1133981 - e10s-ify findbar FAYT key handling, r=mconley
--HG--
extra : rebase_source : 31f07c93b1f5116a5bb952b1c19da003941ad762
extra : amend_source : 58e1db73a93835b0d80326e34ef7056633a7aaa0
2015-03-11 20:22:09 +00:00
Ian Moody
d96ac42737 Bug 1141346 - Make 'This Frame' > 'Reload Frame' use messages to avoid unsafe CPOW usage. r=gabor
--HG--
extra : transplant_source : %0D%22%B0%EC%A9%DC%A0%D1hihb%F2%B6%A0%DF%1F%27%1B%80
2015-03-21 00:13:57 +00:00
Mike Conley
d3d4344540 Bug 1150120 - Pass outerWindowID up when sending contextmenu message up from content process. r=gabor.
This will hopefully allow us to avoid using CPOWs for contentDocument and contentWindow
when doing things like printing or viewing the source of subframes.

--HG--
extra : rebase_source : aa17cd0be26f136cefbde1c4683ac99a07c6bf15
extra : amend_source : ec32ff88015c74031977824d134922edd9a91c04
2015-04-01 13:38:24 -04:00
Tooru Fujisawa
3008f7f07a Bug 1140725 - Remove isDisabledForEvents from nsContextMenu.js. r=dolske 2015-04-07 18:19:16 +09:00
Jim Mathies
1aaae619de 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
Ian Moody
cfb644046c Bug 1141186 - Fix context-menu Share commands so they don't use unsafe CPOWs. r=mconley 2015-03-11 21:19:30 +00:00
Ian Moody
9f640b91b5 Bug 1134222 - Store the value of linkText that is calculated during nsContextMenu init and reuse it later rather than recalculating it. r=mconley 2015-03-08 10:37:00 -04:00
Alex Verstak
673fbec87c Bug 1113431 - Propagate referrer policy throughout the UI: command-click and context menu open link in new tab/window. r=gijskruitbosch 2015-03-04 23:29:55 -08:00
Ian Moody
5282fa9052 Bug 1134391 - Make "View Image/Video" command use messages to avoid unsafe CPOW warnings. r=mconley 2015-03-04 21:27:35 +00:00
Ian Moody
c7117db6e3 Bug 1140878 - Move SwitchDocumentDirection() to toolkit/content/browser-content.js so it can be safely used in e10s. r=mconley 2015-03-11 21:19:18 +00:00
Ian Moody
9473a96362 Bug 1135934 - Make "View Background Image" and "View Description" use gContextMenuContentData to avoid unsafe CPOW warnings. r=mconley 2015-03-08 10:19:00 -04:00
Ian Moody
3d0f6aba15 Bug 1135916 - Make "Copy Email Address" use gContextMenuContentData to avoid unsafe CPOW warning. r=mconley 2015-03-08 10:18:00 -04:00
Gijs Kruitbosch
9614f79c91 Bug 1111967 - honor browser.casting.enabled pref for casting on desktop, r=mconley 2015-03-09 13:15:55 +00:00
Ian Moody
1c28fb713c Bug 1133577 - Make context-menu open link/frame commands use messages to avoid unsafe CPOW warnings. r=mconley
--HG--
extra : rebase_source : bb8813cc9e2852b6b86822452657f427970b983b
2015-02-21 00:22:39 +00:00
Ian Moody
5717dba3fe Bug 1134409 - Make "Full Screen" context-menu command use messages instead of CPOWs. r=mconley.
--HG--
extra : rebase_source : c4fd20a5a33d9a60ebbe3e3db14801b0207232ba
2015-02-19 01:39:00 -05:00