Closed Bug 1240896 Opened 9 years ago Closed 9 years ago

Switch to iframe mozbrowser

Categories

(DevTools :: Responsive Design Mode, defect, P1)

defect

Tracking

(firefox46 affected, firefox48 fixed)

RESOLVED FIXED
Firefox 48
Iteration:
48.3 - Apr 25
Tracking Status
firefox46 --- affected
firefox48 --- fixed

People

(Reporter: jryans, Assigned: jryans)

References

(Depends on 1 open bug)

Details

(Whiteboard: [multiviewport] [mvp-rdm])

Attachments

(6 files)

The initial shell in bug 1239437 uses a regular <iframe> to display the web content. This is not what we want to actually ship. Instead, we need to change to <iframe mozbrowser>, which gives a truly separate browser runtime (similar to <xul:browser>), allows running in a child process, etc. Bug 1238160 tracks enabling this feature on desktop. Once it is, we can enable it in RDM here.
Priority: -- → P2
Blocks: 1239461
Priority: P2 → P1
Whiteboard: [multiviewport] → [multiviewport] [mvp-rdm]
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Iteration: --- → 48.1 - Mar 21
Iteration: 48.1 - Mar 21 → 48.2 - Apr 4
I'm removing swapFrameLoaders (bug 1242644) from the scope of this bug, as it's making things too complex to switch to mozbrowser *and* use swapFrameLoaders in the same task. Bug 1240913 is likely where we'll make use of swapFrameLoaders.
No longer depends on: 1242644
No longer blocks: 1239461
Comment on attachment 8737437 [details] MozReview Request: Bug 1240896 - Use iframe mozbrowser in RDM. r=gl https://reviewboard.mozilla.org/r/43973/#review40693
Attachment #8737437 - Flags: review?(gl) → review+
Comment on attachment 8737438 [details] MozReview Request: Bug 1240896 - Uplift dimensions to avoid recreating iframe. r=gl https://reviewboard.mozilla.org/r/43975/#review40711
Attachment #8737438 - Flags: review?(gl) → review+
Comment on attachment 8737439 [details] MozReview Request: Bug 1240896 - Reorder imports to match style. r=gl https://reviewboard.mozilla.org/r/43977/#review40713
Attachment #8737439 - Flags: review?(gl) → review+
Comment on attachment 8737440 [details] MozReview Request: Bug 1240896 - Port browser_resize_cmd.js, add resize to support. r=gl https://reviewboard.mozilla.org/r/43979/#review40729 I think the commit msg should be: Port browser_responsive_cmd.js, add gcli resize support
Attachment #8737440 - Flags: review?(gl) → review+
Attachment #8737441 - Flags: review?(gl) → review+
Comment on attachment 8737441 [details] MozReview Request: Bug 1240896 - Load frame script into RDM browser. r=gl https://reviewboard.mozilla.org/r/43981/#review40757
Comment on attachment 8737442 [details] MozReview Request: Bug 1240896 - Port browser_device_width.js to new RDM. r=gl https://reviewboard.mozilla.org/r/43983/#review40803
Attachment #8737442 - Flags: review?(gl) → review+
I noticed that we will get an error for google.com with these patches applied. STR: 1. Navigate to http://google.com/ 2. Open RDM 3. Observe console error DOMException [SyntaxError: "An invalid or illegal string was specified" code: 12 nsresult: 0x8053000c index.js:125:5
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #12) > Comment on attachment 8737440 [details] > MozReview Request: Bug 1240896 - Port browser_resize_cmd.js, add resize to > support. r=gl > > https://reviewboard.mozilla.org/r/43979/#review40729 > > I think the commit msg should be: Port browser_responsive_cmd.js, add gcli > resize support Okay, renamed.
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #15) > I noticed that we will get an error for google.com with these patches > applied. > > STR: > 1. Navigate to http://google.com/ > 2. Open RDM > 3. Observe console error > DOMException [SyntaxError: "An invalid or illegal string was specified" > code: 12 > nsresult: 0x8053000c > index.js:125:5 Ah, good catch, I needed to escape any instances of & in the URL.
Iteration: 48.2 - Apr 4 → 48.3 - Apr 18
Depends on: 1287808
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: