Commit graph

3676 commits

Author SHA1 Message Date
Johann Hofmann
2b3b15148f Bug 1365912 - Add a pref for enabling compact and touch mode. r=dao
MozReview-Commit-ID: 1hmTdl0zSKB

--HG--
extra : rebase_source : ff11c96e23d80cf943d7b22173cf996d8d5dff51
2017-05-30 14:09:54 +02:00
Gijs Kruitbosch
26219bb139 Bug 1368370 - remove leftover page action hiding, r=dao
MozReview-Commit-ID: KEaOIYhKL6G

--HG--
extra : rebase_source : 60bf711ab0332f640035e277a843aba87f85161e
2017-05-29 11:40:41 +01:00
Drew Willcoxon
83efe33bc6 Bug 1363183 - Add a "bookmark" item to the page action menu. r=mikedeboer
MozReview-Commit-ID: 9RR4U3X3gIT

--HG--
extra : rebase_source : b2307c2c64a2913fd2c0fc3d2225164fcd6d0cba
2017-05-25 16:19:02 -07:00
Drew Willcoxon
547921aa65 Bug 1363182 - Add a "send to device" subview to the page action menu. r=eoger,mikedeboer
Add a Send to Device subview to the page action panel.  When the page isn't
sendable, disable the Send to Device menu item.  When the user doesn't have any
devices, show a menu item that opens the Firefox Account preferences pane.

Generalize gSync.populateSendTabToDevicesMenu() so that it can be used to
populate any kind of container, not only a menupopup with menuitems.

Add an SVG that shows a phone and an SVG that shows a desktop.

MozReview-Commit-ID: EZQKAEAr08q

--HG--
extra : rebase_source : bda87f105712a6c6ba83da1a78179eee93b5f4d0
2017-05-24 15:49:43 -07:00
Sebastian Hengst
d1ec3e6aa9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-05-24 11:27:29 +02:00
Paolo Amadini
33ebc4466d Bug 1009116 - Redo resizing architecture of panelmultiview. r=Gijs
The height of the "panelmultiview" binding is now determined by the stack layout code, and doesn't have to be calculated manually via JavaScript anymore. This allows the removal of mutation and overflow observers, and reduces the number of synchronous layouts being made.

There is still a workaround included for wrapping blocks not being taken into account in height calculations.

MozReview-Commit-ID: 9rrPU5O5hUx

--HG--
extra : rebase_source : b872c14a553c4293ac476d5d22c634a5a0f6cb24
extra : intermediate-source : bf96469b6ea7daee29eb75a60d11f017a1c86a64
extra : source : 719bb4e7286fbd3baf32061929e4b7d9f953c671
2017-05-23 17:08:01 +01:00
Doug Thayer
82301632cc Bug 1359733 - (pt. 2) Refactor gMenuButtonUpdateBadge r=rstrong
Since we now have a store of notifications that is global across
all windows, it no longer makes sense to consume the API from
within browser.js. This patch moves the browser.js logic out into
a jsm file that is wired up through nsBrowserGlue, such that it
will be lazily instantiated on the first update event it would
receive[1].

We decided to move this into toolkit, as this piece of the
system is fairly generic and shouldn't differ between
applications.

[1]: There is a change to nsBrowserGlue to use "global[module]"
instead of this[module]. This mirrors the code for all the other
types of notifications, and I suspect it was just a latent bug,
since the original diff that includes this line makes no use of
it.

MozReview-Commit-ID: 8EQdM9BOpgl

--HG--
rename : browser/base/content/test/appUpdate/.eslintrc.js => toolkit/mozapps/update/tests/browser/.eslintrc.js
rename : browser/base/content/test/appUpdate/browser.ini => toolkit/mozapps/update/tests/browser/browser.ini
rename : browser/base/content/test/appUpdate/browser_updatesBackgroundWindow.js => toolkit/mozapps/update/tests/browser/browser_updatesBackgroundWindow.js
rename : browser/base/content/test/appUpdate/browser_updatesBackgroundWindowFailures.js => toolkit/mozapps/update/tests/browser/browser_updatesBackgroundWindowFailures.js
rename : browser/base/content/test/appUpdate/browser_updatesBasicPrompt.js => toolkit/mozapps/update/tests/browser/browser_updatesBasicPrompt.js
rename : browser/base/content/test/appUpdate/browser_updatesBasicPromptNoStaging.js => toolkit/mozapps/update/tests/browser/browser_updatesBasicPromptNoStaging.js
rename : browser/base/content/test/appUpdate/browser_updatesCantApply.js => toolkit/mozapps/update/tests/browser/browser_updatesCantApply.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadCompleteSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadCompleteSize.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadPartialSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadPartialSize.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadSizes.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadSizes.js
rename : browser/base/content/test/appUpdate/browser_updatesCompletePatchApplyFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesCompletePatchApplyFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesCompletePatchWithBadCompleteSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompletePatchWithBadCompleteSize.js
rename : browser/base/content/test/appUpdate/browser_updatesDownloadFailures.js => toolkit/mozapps/update/tests/browser/browser_updatesDownloadFailures.js
rename : browser/base/content/test/appUpdate/browser_updatesMalformedXml.js => toolkit/mozapps/update/tests/browser/browser_updatesMalformedXml.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailureWithCompleteValidationFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailureWithCompleteValidationFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchWithBadPartialSize.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchWithBadPartialSize.js
extra : rebase_source : 24048650b23eff0a1da9679d1e9b5e1db1900287
2017-05-19 08:56:22 -07:00
Mike de Boer
96546e2ad2 Bug 1354108 - Add the edit controls (cut, copy, paste) to the static menu panel. r=Gijs
MozReview-Commit-ID: Dudscy7dSB1

--HG--
extra : rebase_source : 42ac8e4c57b19b03bcf965d40b65c81dde790fba
2017-05-23 12:03:00 +02:00
Carsten "Tomcat" Book
067f1fa700 Merge mozilla-central to mozilla-inbound 2017-05-18 14:59:47 +02:00
Bob Owen
d01f9cd1f7 Bug 1175267 Part 1: Handle file:// URI xpi files in chrome code directly instead of routing through content browser. r=mossop 2017-05-18 13:31:44 +01:00
Bob Owen
15654b3b71 Bug 1351358 Part 4: Select correct remote type upfront when passed window arguments in browser.js onDCL. r=Gijs
This prevents short-lived processes when we are not at the maximum normal content process count and the new window's first tab is not going to load in that remote type.
2017-05-18 12:08:57 +01:00
Bob Owen
d0c57d84c1 Bug 1351358 Part 2.5: Move logic in the parent for switching in and out of Large Allocation process into browser.js RedirectLoad. r=mystor
This fixes a bug where we swap out of the Large Allocation process, when reloaded via the UI.
2017-05-18 12:08:56 +01:00
Bob Owen
47421837bf Bug 1351358 Part 2: Limit the http pages that will load in the file content process with allowLinkedWebInFileUriProcess pref. r=Gijs, r=mystor
This change means that any related http pages driven through content (window.open, links, etc.) will continue to be loaded in the file content process.
Same-origin loads via the UI will also remain in the file content process.
Cross-origin loads via the UI will cause a process switch.
History navigation will stay in the process, if it was originally loaded in that process.
2017-05-18 12:08:56 +01:00
Matthew Wein
7353ca75f1 Bug 1266012 - Add identity indication for the moz-extensions scheme r=mixedpuppy
MozReview-Commit-ID: BtbRGPJbsHs

--HG--
rename : browser/components/extensions/extension.svg => browser/themes/shared/controlcenter/extension.svg
extra : rebase_source : a89e321d3f5750307a869fdf82521a61bce62ce1
2017-05-10 15:14:15 -04:00
Carsten "Tomcat" Book
4603014981 Backed out changeset a9ac97cc2efa (bug 1347791) for test failures in browser_ext_sessions_restore.js | restored tab has the expected url - Got about:blank, expected about:config 2017-05-17 08:11:47 +02:00
Alastor Wu
ce9ddc4dab Bug 1347791 - part1 : rename the attribute for the tab which has blocked the autoplay audio and would show the play-tab icon. r=mikedeboer
The "blocked" attribute is too general to indicate the real usage, so rename it
to "activemedia-blocked".

This attribute indicates that whether the tab has blocked the autoplay media.

MozReview-Commit-ID: EAmq6OuBYjq

--HG--
extra : rebase_source : e8e9321854b80736f0959fbfecbc8bf9a83b0712
2017-05-17 11:55:54 +08:00
Andreas Tolfsen
10877e266b Bug 1355890 - Add visual cue to urlbar when under remote control r=Gijs
This patch adds a visual UX cue to visually distinguish the user agent
sessions that are under remote control from those used for normal
browsing sessions.  The new hue helps the user identify windows that
are under automation.

browser/base/content/browser.js will now query Marionette to find out if
the remote protocol is running when starting a new <xul:browser>.

The remote-control system notification will also be sent when the
Marionette remote protocol is running, activating any already opened
<xul:browser>s.  The message is sent from testing/marionette/server.js.

MozReview-Commit-ID: AsjGmLL1Rl1

--HG--
extra : rebase_source : b46137b3b620c8216e3f4cc532a35149edb8dcf7
2017-04-27 23:21:43 +01:00
Drew Willcoxon
efa8951e8a Bug 1355323 - Create action menu panel with initial "copy URL" and "email link" items. r=mikedeboer
MozReview-Commit-ID: LpR63K7riho

--HG--
rename : browser/themes/shared/page-action.svg => browser/themes/shared/icons/page-action.svg
extra : rebase_source : b9ab550ffa6c7941af9a2040a794d3df8d9dd35a
2017-05-16 10:25:22 -07:00
Fischer.json
c0472057e4 Bug 1330315 - Add a telemetry probe to track how the Preferences are opened, r=mconley
MozReview-Commit-ID: GfuGF4v30pI

--HG--
extra : rebase_source : e8b4399bd1e3fc5e5b220e80d6694c00a4b7e482
2017-05-09 10:43:48 -04:00
Kris Maglione
84e0c25849 Bug 1356826: Part 6 - Wait for delayed startup before checking for side-loads. r=aswan
MozReview-Commit-ID: IpuRNbdUXmE

--HG--
extra : rebase_source : 0fc72897bc0a12b5bd789c9a0d00df3dec4f7760
extra : source : d47998fa24cd084ffba07a73834d8ffb3af81b60
2017-04-15 14:09:41 -07:00
Florian Quèze
5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Chris Pearce
b1275c271a Bug 1362212 - Remove canPlayTelemetry from _delayedStartup. r=dao
Calling HTMLMediaElement.canPlayType() on the main thread will cause
us to do disk I/O to load system decoding libraries, so we shouldn't
do it on the main thread, let alone on the parent process' main thread.

I moved the telemetry into an idle service observer off main thread
into Gecko in the previous patch.


MozReview-Commit-ID: CH6LNNLzreJ

--HG--
extra : rebase_source : 7075d0a0e1fd88c51da23ab8ef5860a51bf4b2cd
2017-05-05 17:38:40 +12:00
Dão Gottwald
9cc94f157a Bug 1364090 - Detach the reload and stop buttons from the location bar. r=johannh
MozReview-Commit-ID: Ltp6EghiI44

--HG--
extra : rebase_source : f033cadab35b56cf96f25786260853a8a5f9a1ed
2017-05-11 19:16:05 +02:00
Wes Kocher
ea3b6b9f1e Backed out changeset 75a14f02f6f7 (bug 1330315) for build failures in TelemetryHistogramData.inc a=backout
MozReview-Commit-ID: KKnLXDjgmqC

--HG--
extra : rebase_source : 29e2b567cd0bc75cc4e0b22af20c7efaeb73a259
2017-05-10 10:45:18 -07:00
Fischer.json
7102edfb97 Bug 1330315 - Add a telemetry probe to track how the Preferences are opened, r=mconley
MozReview-Commit-ID: GfuGF4v30pI

--HG--
extra : rebase_source : 68ed5ae4ff04c79aab70e288276ca527a807a435
2017-05-09 10:43:48 -04:00
Andrew McCreight
e3a114f978 Bug 1363215 - Replace calls to __define{Getter,Setter}__ on top-level this with Object.defineProperty. r=Gijs
__define{Getter,Setter}__ are deprecated, and are not defined on
NonSyntacticVariablesObjects, so these calls get in the way of sharing
globals between different .jsms. Probably only the DownloadUtils.jsm
change is really needed for that.

configurable and enumerable are both set to true to match the existing
behavior. If enumerable is set to false, then tests fail, because some
of the getters overwrite the getter with a regular property.

MozReview-Commit-ID: 1OZF45fIAQ

--HG--
extra : source : 96dd2e2d8d1677fb04c98bb3a063df32478fbc00
2017-05-08 14:07:34 -07:00
Doug Thayer
7e3c287071 Bug 1356675 - Show manual update on cant-apply status r=rstrong
If there is an update available but the user can't apply it, we
publish a notification on the update-available topic with the
status "cant-apply". This was previously being ignored by
browser.js. This should fix the bug in question on Windows 10.

MozReview-Commit-ID: 1twRvYEXbiT

--HG--
extra : rebase_source : c116239a35db022f7be13e693702fdff58882fc5
2017-05-04 10:12:52 -07:00
Bob Owen
e317cff839 Bug 1361992: Ensure that PrintPreviewListener methods all use the same source browser. r=Gijs 2017-05-07 16:11:19 +01:00
Iris Hsiao
fa6e98e026 Merge mozilla-central to autoland 2017-05-04 13:22:44 +08:00
Ehsan Akhgari
2f73dfe826 Bug 1360864 - Defer the install and update check for the OpenH264 plugin until the browser is idle; r=cpearce,spohl 2017-05-03 20:15:21 -04:00
Edouard Oger
b3b3ff9cc5 Bug 1353571 part 3 - Refactor browser-syncui and browser-fxaccounts. r=markh
MozReview-Commit-ID: K790Ag8WZgv

--HG--
rename : browser/base/content/test/general/accounts_testRemoteCommands.html => browser/base/content/test/sync/accounts_testRemoteCommands.html
rename : browser/base/content/test/general/browser_fxa_web_channel.html => browser/base/content/test/sync/browser_fxa_web_channel.html
rename : browser/base/content/test/general/content_aboutAccounts.js => browser/base/content/test/sync/content_aboutAccounts.js
extra : rebase_source : dcba087df94d06b15c9f073ff2df3324fd646c57
2017-04-18 14:15:43 -04:00
Kershaw Chang
e8df9986bf Bug 1351281 - Remove NetworkPrioritizer.jsm, r=dao
Since Necko has already given higher priority to http transactions from the focused window, we don't need NetworkPrioritizer.jsm anymore.
2017-05-03 03:28:00 +02:00
Swapnesh Kumar Sahoo
c11cf34901 Bug 1354331 - Remove network.http.enablePerElementReferrer usages. r=valentin r=baku 2017-05-01 00:12:34 +05:30
Dão Gottwald
64faacdafa Bug 1360597 - Cancel existing FX_PAGE_LOAD_MS stopwatch before re-starting it in case we missed a previous STATE_STOP change. r=mconley
MozReview-Commit-ID: 8smK3JwmOFL

--HG--
extra : rebase_source : a265154ab70d860525ae40bfe6bbe82a8374b036
2017-04-28 19:04:24 +02:00
Neil Deakin
cf77cf0e03 Bug 1356587, update the gEditUIVisible flag when the panelUI is opened and closed so that the command updating optimization actually applies. Currently it never applies once the panel has been opened at least once, r=gijs 2017-05-01 10:42:33 -04:00
Matheus Longaray
1cec8e74d5 Bug 1332386 - Create extra print preview browser when using Simplify Page option. r=mconley
This patch creates a new print preview browser to host the simplified cloned-document
when Simplify Page option is used on preview. Also, this patch keeps track of what browser
should be presented, based on whether the 'Simplify page' checkbox is checked.

MozReview-Commit-ID: FZSRUyC49Wk
2017-05-01 17:30:48 +02:00
Kevin Jones
4171e7467d Bug 1360940 - Don't instantiate lazy browsers when checking if the window can close. r=mconley
--HG--
extra : amend_source : b43a008cff64aec3fd09fd743bb794c9ecc4fbdf
2017-04-30 15:21:00 -04:00
Sebastian Hengst
8961c1494e Backed out changeset 99fd6973d18e (bug 1332386) for frequently failing browser_tabSwitchPrintPreview.js on Linux x64 opt-ish builds. r=backout a=backout
MozReview-Commit-ID: 7oyiuBSTGtI
2017-04-29 20:47:54 +02:00
Masatoshi Kimura
8266cde3a0 Bug 817374 - Fix inconsistency of the setOverLink parameter. r=mossop
MozReview-Commit-ID: 6rLOm1T2sOd

--HG--
extra : rebase_source : 1ab6b328ce4190f40934720c9c4c1fd94107d217
2016-11-21 21:39:15 +09:00
Mike Conley
1a7c6049d6 Bug 1336763 - If browser.permitUnload times out in CanCloseWindow, make sure to check the rest of the browsers belonging to other processes before returning a result. r=dao
MozReview-Commit-ID: D59PVfsbDV0

--HG--
extra : rebase_source : 223825be086104e2e06fa69152ebc00ec76dee47
2017-04-19 14:29:42 -04:00
Matheus Longaray
e723d98949 Bug 1332386 - Create extra print preview browser when using Simplify Page option. r=mconley
This patch creates a new print preview browser to host the simplified cloned-document
when Simplify Page option is used on preview. Also, this patch keeps track of what browser
should be presented, based on whether the 'Simplify page' checkbox is checked.

MozReview-Commit-ID: FZSRUyC49Wk

--HG--
extra : rebase_source : cccc12f17f315089c9e5d05116077b7f87f4053b
2017-04-20 14:04:03 +02:00
Drew Willcoxon
197941aadc Bug 1355322 - Add anchor button to urlbar for action menu. r=Gijs
MozReview-Commit-ID: CajXNdGt9cZ

--HG--
extra : rebase_source : 18df66d122108ebba769ed3cada7a8c0847b206f
2017-04-27 18:17:29 -07:00
Wes Kocher
5e8bdb175d Merge inbound to m-c a=merge
MozReview-Commit-ID: A85cs7Yriqj
2017-04-25 13:53:00 -07:00
Florian Queze
b6597dcb0c Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws. 2017-04-25 09:21:49 +02:00
Shawn Huang
a776ab68f5 Bug 1358160 - Get usage from subject instead of data field, r=Fischer
MozReview-Commit-ID: 5UNttoq1jiX

--HG--
extra : rebase_source : b629cf3c33b54fe9a20ceb6e7d996d71917757fe
2017-04-24 21:18:32 +08:00
Ehsan Akhgari
6399dc4d9a Bug 1356922 - Part 1: Replace the next TabParent global pointer with per-window/tab next TabParent ID; r=billm,mconley
This patch replaces the usage of sNextTabParent pointer to store the next
PBrowser parent actor to be used by the next frame loader with the
following information:

  * In the case where the content JS has requested a new tab, the ID of the
    next TabParent will be stored on the <xul:browser> element.
  * In the case where the content JS has requested a new window, the ID of
    the next TabParent will be stored on the created nsXULWindow.
2017-04-24 14:18:29 -04:00
Wes Kocher
4f3c2d9829 Merge m-c to autoland, a=merge
MozReview-Commit-ID: DPzfAm14Tdx
2017-04-20 15:52:28 -07:00
Dão Gottwald
5e74d85f79 Backed out changeset 3edd47730527
MozReview-Commit-ID: AESEl0ht2Gi
2017-04-20 12:41:20 +02:00
Sam Foster
1ce685a8c2 Bug 1334642 - Cache luminance values for each toolbar in ToolbarIconColor. r=dao,mconley
* Track window states: active, fullscreen and tabsintitlebar for each window
* Use toolbar.id and window state to store and retrieve values from cache
* Note: As each window has its own ToolbarIconColor object, the cache is not currently shared across windows
* inferFromText callers pass in a reason and associated value, which is used to update the state we track, and potentially clear out the cache
* Create new windows test directory for browser-window-specific tests like this
* Test for the ToolbarIconColor changes to avoid sync style flushes when windows activate/deactivate

MozReview-Commit-ID: JDJ3RtL4Lge

--HG--
extra : rebase_source : f944ccd1c2340a5d2973bf47480a6eb78b2aae3b
2017-04-06 10:50:09 -07:00
Wes Kocher
9f7208991b Backed out changeset 6404057679f4 (bug 1332386) for frequent failures in browser_preview_switch_print_selected.js a=backout 2017-04-18 16:21:58 -07:00