Closed
Bug 918004
Opened 11 years ago
Closed 11 years ago
B2G: Can't see remote stylesheets in Style Editor
Categories
(DevTools Graveyard :: WebIDE, defect, P1)
DevTools Graveyard
WebIDE
Tracking
(firefox26 fixed, firefox27 fixed)
RESOLVED
FIXED
Firefox 27
People
(Reporter: jryans, Assigned: paul)
References
Details
Attachments
(1 file, 1 obsolete file)
1.33 KB,
patch
|
ehsan.akhgari
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
While debugging bug 917306, I noticed that currently the Style Editor can't display remote stylesheets inside B2G apps.
When the actor attempts to run _loadSourceFromCache for a remote (http[s]) stylesheet, asyncOpen on the channel fails.
My current suspicion for why this happens is that for B2G apps, the actor code is loaded into the same context as the app itself, and so the B2G security model is blocking the actor from making this request, just as it would for some types of apps.
I have seen this issue in at least two apps so far:
* Marketplace app (app://marketplace.firefox.com/index.html)
* 1 app:// sheet (this usually loads, but see bug 917306)
* <iframe src="https://marketplace.firefox.com/?mcc=&mnc="></iframe>
* 2 https:// sheets inside (these fail to load)
* Twitter app (sign in page) (https://mobile.twitter.com/)
* 1 inline sheet (loads fine)
* 1 https:// sheet directly on page (this fails to load)
Reporter | ||
Comment 1•11 years ago
|
||
Here's my workaround to show the remote sheets. Seems bad, since I assume |setPrivate| needs to stay there... :)
Assignee | ||
Comment 2•11 years ago
|
||
Heather, can you take a quick look at this? Is there an easy way to work around that?
Flags: needinfo?(fayearthur)
Assignee | ||
Comment 3•11 years ago
|
||
(also look at bug 917306 comment 5)
Comment 4•11 years ago
|
||
Are these iframes regular iframes with just a `src` attribute, or are they using mozbrowser and/or mozapp attribute(s)? If they don't, we should have same kind of limitations than in firefox desktop. The actor still loads in chrome sandboxes.
But mozbrowser iframes introduce security limitation that can't be bypassed by chrome priviledges.
And if they use mozapp, the iframe will run in another process...
So, if these iframes use mozbrowser API, it would be easier to implement iframe target support rather than working around b2g security model. If they don't, it sounds like there is a bug to fix.
Assignee | ||
Updated•11 years ago
|
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Alexandre Poirot (:ochameau) from comment #4)
> Are these iframes regular iframes with just a `src` attribute, or are they
> using mozbrowser and/or mozapp attribute(s)?
In the case of the Marketplace app, it is just a regular iframe with a src.
For the Twitter app, there is no iframe involved, but the app itself is a hosted app, not a packaged app on the device.
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → paul
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•11 years ago
|
||
http://bugmotodo.org has the same problem.
Assignee | ||
Comment 7•11 years ago
|
||
Using the same loadGroup as the window.
Attachment #806869 -
Attachment is obsolete: true
Attachment #808604 -
Flags: review?(ehsan)
Flags: needinfo?(fayearthur)
Assignee | ||
Comment 8•11 years ago
|
||
jryans came up with this solution. Ehsan confirmed that might be a good-enough way to do it.
Assignee | ||
Updated•11 years ago
|
Component: Developer Tools: Style Editor → Developer Tools: App Manager
Assignee | ||
Updated•11 years ago
|
Priority: -- → P1
Updated•11 years ago
|
Attachment #808604 -
Flags: review?(ehsan) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Whiteboard: [needed-in-aurora-26]
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 808604 [details] [diff] [review]
Patch v1
[Approval Request Comment]
Bug caused by (feature/regressing bug #): new feature (app manager)
User impact if declined: can't correctly use the style editor with apps
Testing completed (on m-c, etc.): locally
Risk to taking this patch (and alternatives if risky): low
String or IDL/UUID changes made by this patch: none
Attachment #808604 -
Flags: approval-mozilla-aurora?
Comment 10•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [needed-in-aurora-26] → [needed-in-aurora-26][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [needed-in-aurora-26][fixed-in-fx-team] → [needed-in-aurora-26]
Target Milestone: --- → Firefox 27
Updated•11 years ago
|
Attachment #808604 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Updated•11 years ago
|
Whiteboard: [needed-in-aurora-26] → [land-in-aurora-26]
Assignee | ||
Comment 12•11 years ago
|
||
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•