Commit graph

12 commits

Author SHA1 Message Date
Mark Banner
f99ae4c2a9 Bug 1421376 - Change various instances of manually calling getService to use Services.jsm in browser/. r=mossop
MozReview-Commit-ID: FW3X2fkOwK2

--HG--
extra : rebase_source : f71e053e18017d675d4ea4d758e2552adcf5adc6
2017-11-28 19:21:33 +00:00
Samael Wang
bb968e4fcd Bug 1406253 - Part 3: use currentRequstFinalURI in context menu and add a test case. r=dao
If the image request gets redirect on loading, HTMLImageElement.currentURI
(which corresponds to nsIImageLoadingContent.currentURI) would return the
original URI before redirect, making "Save Image" in the context menu use
incorrect URI and filename. Use currentRequestFinalURI instead to get
redirected URI.

MozReview-Commit-ID: Bd7Q36sH93b

--HG--
extra : rebase_source : 5a1cc56554d1429f3c5af1c8cecaa1d72471ed21
2017-11-14 19:19:27 +08:00
Noemi Erli
e90c67896c Backed out 3 changesets (bug 1406253)for build bustage in dom/base/nsCopySupport.cpp r=backout on a CLOSED TREE
Backed out changeset 284f3cc2880c (bug 1406253)
Backed out changeset aecb3d509a39 (bug 1406253)
Backed out changeset 9ce01198e8a1 (bug 1406253)
2017-11-20 13:34:29 +02:00
Samael Wang
ef3c08ceb1 Bug 1406253 - Part 3: use currentRequstFinalURI in context menu and add a test case. r=dao
If the image request gets redirect on loading, HTMLImageElement.currentURI
(which corresponds to nsIImageLoadingContent.currentURI) would return the
original URI before redirect, making "Save Image" in the context menu use
incorrect URI and filename. Use currentRequestFinalURI instead to get
redirected URI.

MozReview-Commit-ID: Bd7Q36sH93b

--HG--
extra : rebase_source : b88ccf98bc2a41aac007d79060424eaa2c2aca88
2017-11-14 19:19:27 +08:00
Jared Wein
d2e8741f6d Bug 1410900 - Allow using shift-click on the Reload Frame context menuitem to skip the cache when reloading the frame. r=johannh
This patch uses the same logic as BrowserReloadOrDuplicate to determine if the cache should be skipped. I didn't extract out the logic to a separate function because I didn't want to add another function to the global namespace of browser.js.

MozReview-Commit-ID: 15kztsqMnAM

--HG--
extra : rebase_source : d5ad3ee62062d5971c95281368a102298e367e59
2017-10-26 19:42:18 -04:00
Ian Moody
9d62373c5d Bug 1408670 - Use PBU.isContentWindowPrivate instead of PBU.isBrowserPrivate in ContextMenu.jsm. r=Felipe
Follow up correction to bug 1399429.  isBrowserPrivate causes console spam,
probably not e10s safe going forward.

MozReview-Commit-ID: JMoTVbc3SAx

--HG--
extra : rebase_source : 323559cbac6dd877b32f17bdc810975078583934
2017-10-14 16:43:38 +01: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
Ian Moody
df5fd8a19d Bug 1399429 - Properly determine if the content window is private for the contextMenu. r=Felipe
MozReview-Commit-ID: Ipo3Rcs1TZ8

--HG--
extra : rebase_source : ac17083a7b3d3d12f39c797c8e073b37c0c1c770
2017-10-13 19:13:35 +01:00
Mike Conley
d908d328bf Bug 1399068 - Send the context menu target node up to the parent as an explicit CPOW to fix login selection. r=Felipe
LoginManagerParent expects either a CPOW or a DOM node (in the non-e10s case) to
be passed as the inputElement for LoginManagerParent.fillForm. In bug 1360406,
we serialized the target in the content process so that the parent didn't have
access to the CPOW anymore.

This patch adds a targetAsCPOW property to the nsContextMenu solely for passing
back and forth between the parent and content processes in order to refer to
the target DOM node.

MozReview-Commit-ID: IMwVK0Ewlhy

--HG--
extra : rebase_source : deadcb3d5e340402ebe615529fe937a184785e07
2017-10-04 14:29:09 -04:00
Xidorn Quan
0a75705c55 Bug 1403127 - Don't try to pass fullscreen element through IPC. r=jaws
MozReview-Commit-ID: DaiBNVdqAOh

--HG--
extra : rebase_source : 5e48becb2554f0861d554471ca61ba5933b3f1ac
2017-09-27 16:27:36 +10:00
Ehsan Akhgari
fecb44a276 Bug 1401028 - Remove the content-contextmenu observer notification; r=kmag
This was used by the add-on SDK.
2017-09-19 00:35:08 -04:00
Perry Jiang
15d0cf7b73 Bug 1360406 - Remove context menu sync IPC. r=felipe
MozReview-Commit-ID: 1oCwC283Suv
2017-08-21 15:42:37 -07:00