Граф коммитов

66 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky cf35c3398f Bug 1273203. Remove the getStructuredData API from BrowserElement. r=kanru 2016-05-18 02:51:49 -04:00
Boris Zbarsky d78dc504bd Bug 1255830. Change nsBrowserElement code to properly propagate out JS exceptions from some of its API methods. r=bholley 2016-03-14 20:47:45 -04:00
J. Ryan Stinnett a6d2c487b5 Bug 1238160 - Set tab context's isolation from frame attr. r=smaug
Renames existing nsFrameLoader::OwnerIsBrowser* methods to add "Moz" prefix for
clarity.

Adds nsFrameLoader::OwnerIsIsolatedMozBrowserFrame which checks the noisolation
attribute of mozbrowser frames, if present.

This is used to set isolation in nsFrameLoader::GetNewTabContext only when true.

MozReview-Commit-ID: Dz02xBoKh1P
2016-03-02 10:35:56 -06:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Andrea Marchesini 52e65f89d8 Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-11 11:17:33 -05:00
Carsten "Tomcat" Book cccfedda81 Backed out changeset afe3d65b74b6 (bug 1214148) on developers request for causing regressions 2015-12-15 14:45:06 +01:00
Andrea Marchesini 7271d1d622 Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-11 11:17:33 -05:00
Phil Ringnalda 631f58c4f9 Back out 3 changesets (bug 1214148) for b2g test_browserElement_inproc_AudioPlayback.html, test_browserElement_oop_AudioChannel.html, etc. failures
CLOSED TREE

Backed out changeset e716d9ac93d7 (bug 1214148)
Backed out changeset 5f693237c8c1 (bug 1214148)
Backed out changeset 3a4865d79416 (bug 1214148)
2015-12-09 18:19:33 -08:00
Andrea Marchesini f342b66a2e Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-09 16:46:25 -05:00
Alastor Wu f49b90a02f Bug 1222902 - Create log system for the AudioChannel. r=baku.
--HG--
extra : transplant_source : %BD%FF%8EH%08%97%3AC%C6%85%BC%F1%10%CB%07%AA%0E%90%85A
2015-11-10 18:32:00 +08:00
Carsten "Tomcat" Book d756fc5496 Backed out changeset 9b2c15970aa0 (bug 1222902) for bustage
--HG--
extra : rebase_source : 87c28b1944bba96e5f4d3a9ced86bc7b805dbb18
2015-11-10 11:23:06 +01:00
Alastor Wu ec3ce5062b Bug 1222902 - Create log system for the AudioChannel. r=baku
--HG--
extra : transplant_source : o%B2y%E2%04%D9%C09%92%D3m%40%DFn%BC%E2%1B%B0%C6%8E
2015-11-10 14:43:59 +08:00
Alastor Wu b9ace4602b Bug 1206581 - Implement notifyChannel() on AudioChannel API. r=kanru, r=baku.
--HG--
extra : transplant_source : Jz%11%82%60%AF%AA%82%F1%A5%EB%A5%05%7C%EBS%EF%89%3C%8A
2015-11-06 00:32:04 +08:00
Marcos Caceres 9859867e5b Bug 1169633 - [Browser API] getWebManifest(). r=kanru, r=bholley 2015-11-03 03:52:00 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrea Marchesini 5bd948cce6 Bug 1167465 - Exposing Allowed Audio Channels in System App's Window, r=alwu, r=fabrice 2015-09-23 08:12:52 +01:00
Ted Clancy 4b2d44ae11 Bug 1195801 - Add GetStructuredData() method to Browser API. r=kanru, r=bholley 2015-09-22 23:02:10 -07:00
Wes Kocher 3bc0233be8 Backed out changeset dca7021e514a (bug 1169633) for test_browserElement_inproc_getWebManifest.html failures CLOSED TREE 2015-09-17 13:08:32 -07:00
Marcos Caceres 346978573f Bug 1169633 - [Browser API] getWebManifest(). r=kanru,bholley 2015-09-16 06:55:00 +02:00
Carsten "Tomcat" Book c5551bace9 Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
Marcos Caceres 1e387b4675 Bug 1169633 - [Browser API] getWebManifest(). r=kanru, r=bholley 2015-09-16 06:55:00 +02:00
Kan-Ru Chen 57f614afaf Bug 1170894 - Implement nsIFrameLoader::SwitchProcessAndLoadURI. r=smaug 2015-09-03 13:21:21 +08:00
Carsten "Tomcat" Book 5fc6f6bfbb Backed out changeset e4e12583c280 (bug 1170894) for various mochitest testfailures on a CLOSED TREE 2015-09-01 09:39:25 +02:00
Kan-Ru Chen 5c7496d286 Bug 1170894 - Implement nsIFrameLoader::SwitchProcessAndLoadURI. r=smaug 2015-09-01 12:54:36 +08:00
Brian R. Bondy b96697e95d Bug 1188487 - Add API to BrowserElement to mute and set volume. r=fabrice
It's already possible to get mute/volume at the audio channel level, but
this adds it at the iframe level so that audio channels can be created
and destroyed and the setting will be preserved.
2015-07-31 13:21:18 -04:00
Alastor Wu 2e0c92c43d Bug 1183301 - GetAllowedAudioChannels should not throw an exception if nsIFrameElement is not ready. r=baku 2015-07-16 10:19:55 +08:00
Kan-Ru Chen 2b5296d9cb Bug 1184821 - Use CheckAllPermissions in BrowserElement.webidl r=bz 2015-07-17 13:46:54 +08:00
Kan-Ru Chen abd5560402 Bug 1179718 - Convert BrowserElement.webidl to use CheckAllPermissions. r=bz 2015-07-17 11:06:30 +08:00
Paul Rouget dfe7fcd341 Bug 1174733 - Browser API: iframe.executeScript. r=kanru, r=bholley 2015-07-16 03:56:00 -04:00
Andrea Marchesini 24422a4be6 Bug 1113086 - AudioChannel policy in Browser API - patch 7 - Support non-app iframe, r=alwu 2015-07-10 17:40:24 +01:00
Andrea Marchesini db14826639 Bug 1113086 - AudioChannel policy in Browser API - patch 1 - BrowserElementAudioChannel, r=ehsan
--HG--
rename : dom/audiochannel/AudioChannelAgent.h => dom/browser-element/BrowserElementAudioChannel.h
rename : dom/audiochannel/tests/file_telephonyPolicy.html => dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html
rename : dom/audiochannel/tests/file_telephonyPolicy.html => dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html
rename : dom/audiochannel/AudioChannelCommon.h => dom/webidl/BrowserElementAudioChannel.webidl
2015-07-10 17:38:44 +01:00
Carsten "Tomcat" Book c07e36b612 Backed out changeset bcfbdb934c37 (bug 1113086) for breaking cpp tests with timeouts in TestAudioChannelService.exe
--HG--
rename : dom/webidl/BrowserElementAudioChannel.webidl => dom/audiochannel/AudioChannelCommon.h
rename : dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html => dom/audiochannel/tests/file_telephonyPolicy.html
2015-07-11 14:14:58 +02:00
Carsten "Tomcat" Book c17af9311e Backed out changeset 200c185e4d71 (bug 1113086) 2015-07-11 14:13:41 +02:00
Andrea Marchesini 2668d9c803 Bug 1113086 - AudioChannel policy in Browser API - patch 7 - Support non-app iframe, r=alwu 2015-07-10 21:08:53 -04:00
Andrea Marchesini 3050bc370c Bug 1113086 - AudioChannel policy in Browser API - patch 1 - BrowserElementAudioChannel, r=ehsan
--HG--
rename : dom/audiochannel/AudioChannelAgent.h => dom/browser-element/BrowserElementAudioChannel.h
rename : dom/audiochannel/tests/file_telephonyPolicy.html => dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html
rename : dom/audiochannel/tests/file_telephonyPolicy.html => dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html
rename : dom/audiochannel/AudioChannelCommon.h => dom/webidl/BrowserElementAudioChannel.webidl
2015-07-10 21:08:43 -04:00
Xidorn Quan f23d866f51 Backed out 8 changesets (bug 1113086) for build bustage
Backed out changeset a20839dfd439 (bug 1113086)
Backed out changeset 675ea719b91c (bug 1113086)
Backed out changeset cfb34138bb9f (bug 1113086)
Backed out changeset b9525c60a737 (bug 1113086)
Backed out changeset 380859ae955b (bug 1113086)
Backed out changeset 5ec088f0892f (bug 1113086)
Backed out changeset caf57ae8cbce (bug 1113086)
Backed out changeset 0fc4dec6cd81 (bug 1113086)

--HG--
extra : histedit_source : d8dfd75d9dae36b7309ce78e3b4488faf57003da%2C48081711b7067191d8e4749fd3b572db59bc03f9
2015-07-11 10:55:59 +10:00
Xidorn Quan 291696aa87 Backed out 7 changesets (Bug 1113086) for build bustage 2015-07-11 10:45:21 +10:00
Andrea Marchesini b5cb67aaf7 Bug 1113086 - AudioChannel policy in Browser API - patch 7 - Support non-app iframe, r=alwu 2015-07-10 17:40:24 +01:00
Andrea Marchesini bbb0a11f31 Bug 1113086 - AudioChannel policy in Browser API - patch 1 - BrowserElementAudioChannel, r=ehsan
--HG--
rename : dom/browser-element/mochitest/test_browserElement_inproc_GetContentDimensions.html => dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html
rename : dom/browser-element/mochitest/test_browserElement_oop_GetContentDimensions.html => dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html
2015-07-10 17:38:44 +01:00
Paul Rouget 53184296fe Bug 1163961 - Browser API: Page search. r=kchen, r=ehsan 2015-06-09 20:04:00 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ting-Yu Chou 534f594bd0 Bug 1127189 part 2 - Initialize browser API directly to get rid of nsBrowserElement observers. r=kanru 2015-02-09 15:04:18 +08:00
Dimi Lee a09be7bb0a Bug 1105666 - [BrowserAPI] Add an API to indicate this iframe could receive NFC event. r=smaug, kanru, yoshi 2015-01-22 17:40:17 +08:00
Ehsan Akhgari 550e972d13 Bug 1109694 - Fix more bad implicit constructors in DOM; r=baku 2014-12-10 17:49:09 -05:00
Kan-Ru Chen (陳侃如) 220e6d7376 Bug 1098145 - Fix BrowserElement::Download crash. r=smaug 2014-11-21 18:56:28 +08:00
Kan-Ru Chen (陳侃如) b61618c420 Bug 1044736 - Part 6. Widget should only require embed-widgets permission. r=fabrice
As discussed on dev-webapi[1] the app that wants to use widgets only
need the "embed-widgets" permission to use <iframe mozbrowser mozwidget>

If the app also wants to implement a browser, it could request the
"browser" separately. A <iframe mozbrowser mozwidget> will have
restricted mozbrowser API defined on the prototype if the embedder has
the "brower" permission; they will always throw when used.

[1]: https://groups.google.com/d/msg/mozilla.dev.webapi/uQweGWtVKRA/Bj1jZq3LN-0J

--HG--
rename : dom/apps/tests/test_widget.html => dom/apps/tests/test_widget_browser.html
2014-11-21 18:56:28 +08:00
Kan-Ru Chen (陳侃如) c7d83676ec Bug 1044736 - Part 2. Add nsIBrowserElementAPI.idl and implement nsBrowserElement. r=bz 2014-11-21 18:56:27 +08:00
Kan-Ru Chen (陳侃如) 81a829d8ee Bug 1044736 - Part 1. Add BrowserElement.webidl and stub implementation. r=bz 2014-11-21 18:56:27 +08:00
Wes Kocher 863eff1d0e Backed out changeset 78aacc35b4e7 (bug 1044736) for breaking statusbar in b2g, take two a=backout 2014-11-17 22:49:39 -08:00
Wes Kocher d99359e04b Backed out changeset c7c9170ab299 (bug 1044736) 2014-11-17 22:44:13 -08:00